News for hackers. Stuff that matters.
Re:60x speed-up of Linux “perf” by varajelle on Thursday September 09, 2021 @10:29AM (#28470072)
Is there not an exception in the license for "system libraries" which libbfd kind of is?
Re:60x speed-up of Linux “perf” by faho on Thursday September 09, 2021 @10:34AM (#28470133)
Is it? On my system the only things depending on binutils (which libbfd is part of) are gcc, clang and perf (seems archlinux doesn't care).

That makes it arguably not a system library, so it's fair that Debian would want to steer clear of that interpretation.

Re:60x speed-up of Linux “perf” by saagarjha on Thursday September 09, 2021 @11:20AM (#28470662)
What is Clang using it for? I thought it had its own suite of that.
Re:60x speed-up of Linux “perf” by faho on Thursday September 09, 2021 @11:30AM (#28470777)
This... is some weirdness in Arch's clang package.

It depends on gcc, for some reason, and that depends on binutils?

(and I have no idea if anything here uses libbfd, since it's just a part of the binutils package and not split out)

Re:60x speed-up of Linux “perf” by dharmab on Thursday September 09, 2021 @12:35PM (#28471571)
Clang uses part of the host compiler toolchain; gcc is the default compiler on Arch included in the base package.

https://stackoverflow.com/a/38291698/4179075

Re:60x speed-up of Linux “perf” by thayne on Thursday September 09, 2021 @11:51AM (#28471019)
Maybe it depends on gcc so it can use gcc's assebler for inline assembly?
Re:60x speed-up of Linux “perf” by marcthe12 on Friday September 10, 2021 @01:50AM (#28478226)
no its for linking. basically clang unless configured in the source it does not know what link options to give. Actually even rust uses gcc or clang to do same thing.
Re:60x speed-up of Linux “perf” by account42 on Friday September 10, 2021 @05:50AM (#28479469)
Clang will also use libgcc by default under Linux to allow e.g. stack unwinding to work in mixed Clang + GCC applications.