[PATCH] D17252: [ELF, Bug 26360] - allows undefines that are referenced from garbage collected sections.

Rafael EspĂ­ndola via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 15 08:13:21 PST 2016


Is this really desirable?

It looks like an optimization option changing the semantics. What do
you get with gold?

Cheers,
Rafael


On 15 February 2016 at 01:48, George Rimar <grimar at accesssoftek.com> wrote:
> grimar created this revision.
> grimar added reviewers: ruiu, rafael.
> grimar added subscribers: llvm-commits, grimar.
>
> This fixes the https://llvm.org/bugs/show_bug.cgi?id=26360.
>
> If code is unreferenced and is about to be pruned away by --gc-sections, it is allowed to contain references to undefined symbols.
>
> http://reviews.llvm.org/D17252
>
> Files:
>   ELF/Symbols.cpp
>   ELF/Symbols.h
>   ELF/Writer.cpp
>   test/ELF/gc-sections-unref-undef.s
>   test/ELF/gc-sections-unref-undef2.s
>


More information about the llvm-commits mailing list