[PATCH] install: Delete scripts/output-format.sed and support lld

Fāng-ruì Sòng maskray@google.com
Tue Sep 1 16:12:13 GMT 2020


On Tue, Sep 1, 2020 at 3:38 AM Florian Weimer <fweimer@redhat.com> wrote:
>
> * Fāng-ruì Sòng via Libc-alpha:
>
> > On Mon, Aug 31, 2020 at 11:07 AM Florian Weimer <fw@deneb.enyo.de> wrote:
> >>
> >> * Fāng-ruì Sòng:
> >>
> >> > LLD will not support --print-output-format.
> >> >
> >> > OUTPUT_FORMAT might be useful at some point and is still needed for
> >> > unified i386/x86-64 directory trees, but not when distributions use
> >> > different directory trees for multiarch.
> >>
> >> Sorry, I think it's not worthwhile to support LLD for building glibc
> >> if it produces output that offers different functionality.  Bitwise
> >> identical output is of course not necessary, but disabling parts of
> >> the build output because it is inconvenient to build them using LLD is
> >> not the right direction, in my opinion.
> >
> > Grabbing elf64-x86-64 from objdump -f libc.so.6 . Is this acceptable?
>
> It sounds reasonable.  Does LLVM have its own objdump implementation
> which provides this functionality?
>
> Thanks,
> Florian
>

Yes. I changed llvm-objdump to use bfd names in LLVM>=11.0.0
(https://reviews.llvm.org/D76046)

% llvm-objdump -f /lib/x86_64-linux-gnu/libc.so.6

/lib/x86_64-linux-gnu/libc.so.6:        file format elf64-x86-64    ###### here

architecture: x86_64
start address: 0x0000000000026e00


More information about the Libc-alpha mailing list