lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Mon, 13 Jan 2014 18:03:03 +0900
From:	Namhyung Kim <namhyung@...nel.org>
To:	Jiri Olsa <jolsa@...hat.com>
Cc:	Andi Kleen <andi@...stfloor.org>, acme@...radead.org,
	mingo@...nel.org, dsahern@...il.com, fweisbec@...il.com,
	adrian.hunter@...el.com, linux-kernel@...r.kernel.org,
	Andi Kleen <ak@...ux.intel.com>
Subject: Re: [PATCH 1/9] perf, tools: fix BFD detection on opensuse

On Sun, 12 Jan 2014 16:16:15 +0100, Jiri Olsa wrote:
> On Sat, Jan 11, 2014 at 11:42:51AM -0800, Andi Kleen wrote:
>> From: Andi Kleen <ak@...ux.intel.com>
>> 
>> opensuse libbfd requires -lz -liberty to build. Add those
>> to the BFD feature detection.
>> 
>> Signed-off-by: Andi Kleen <ak@...ux.intel.com>
>> ---
>>  tools/perf/config/Makefile                | 2 +-
>>  tools/perf/config/feature-checks/Makefile | 2 +-
>>  2 files changed, 2 insertions(+), 2 deletions(-)
>> 
>> diff --git a/tools/perf/config/Makefile b/tools/perf/config/Makefile
>> index 01dd43d..d86d33c 100644
>> --- a/tools/perf/config/Makefile
>> +++ b/tools/perf/config/Makefile
>> @@ -478,7 +478,7 @@ else
>>  endif
>>  
>>  ifeq ($(feature-libbfd), 1)
>> -  EXTLIBS += -lbfd
>> +  EXTLIBS += -lbfd -lz -liberty
>>  endif
>
> ok, Fedora is using linker script in place of libbfd.so which
> adds those anyway..
>
> ---
> [jolsa@...va perf]$ cat /usr/lib64/libbfd.so 
> /* GNU ld script */
>
> /* Ensure this .so library will not be used by a link for a different format
>    on a multi-architecture system.  */
> OUTPUT_FORMAT(elf64-x86-64)
>
> /* The libz dependency is unexpected by legacy build scripts.  */
> /* The libdl dependency is for plugin support.  (BZ 889134)  */
> INPUT ( /usr/lib64/libbfd.a -liberty -lz -ldl )
> ---
>
> we also need to check and probably get rid of follow up settings of
> EXTLIBS which seems useless now:
>
> ...
>     ifneq ($(feature-libbfd), 1)
>       $(call feature_check,liberty)
>       ifeq ($(feature-liberty), 1)
>         EXTLIBS += -lbfd -liberty
>       else
>         $(call feature_check,liberty-z)
>         ifeq ($(feature-liberty-z), 1)
>           EXTLIBS += -lbfd -liberty -lz
> ...

Agreed.  I think it's only for keeping dependency minimal.  But no need
to do it if it's always called with -liberty and -lz.

Thanks,
Namhyung
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ