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

Florian Weimer fweimer@redhat.com
Mon Sep 21 11:31:37 GMT 2020


* Fāng-ruì Sòng:

> 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

Okay, then a patch along these lines would make sense.

Thanks,
Florian
-- 
Red Hat GmbH, https://de.redhat.com/ , Registered seat: Grasbrunn,
Commercial register: Amtsgericht Muenchen, HRB 153243,
Managing Directors: Charles Cachera, Brian Klemm, Laurie Krebs, Michael O'Neill



More information about the Libc-alpha mailing list