[lld] r249193 - [elf2] Add STB_GNU_UNIQUE support.
Michael Spencer via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 2 15:41:41 PDT 2015
On Fri, Oct 2, 2015 at 3:38 PM, Rafael EspĂndola
<rafael.espindola at gmail.com> wrote:
> On 2 October 2015 at 17:57, Michael J. Spencer via llvm-commits
> <llvm-commits at lists.llvm.org> wrote:
>> Author: mspencer
>> Date: Fri Oct 2 16:57:52 2015
>> New Revision: 249193
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=249193&view=rev
>> Log:
>> [elf2] Add STB_GNU_UNIQUE support.
>>
>> Added:
>> lld/trunk/test/elf2/gnu-unique.s
>> Modified:
>> lld/trunk/ELF/InputFiles.cpp
>>
>> Modified: lld/trunk/ELF/InputFiles.cpp
>> URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/InputFiles.cpp?rev=249193&r1=249192&r2=249193&view=diff
>> ==============================================================================
>> --- lld/trunk/ELF/InputFiles.cpp (original)
>> +++ lld/trunk/ELF/InputFiles.cpp Fri Oct 2 16:57:52 2015
>> @@ -181,6 +181,7 @@ SymbolBody *elf2::ObjectFile<ELFT>::crea
>> error("unexpected binding");
>> case STB_GLOBAL:
>> case STB_WEAK:
>> + case STB_GNU_UNIQUE:
>> return new (Alloc) DefinedRegular<ELFT>(Name, *Sym, *Sections[SecIndex]);
>> }
>> }
>>
>> Added: lld/trunk/test/elf2/gnu-unique.s
>> URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/elf2/gnu-unique.s?rev=249193&view=auto
>> ==============================================================================
>> --- lld/trunk/test/elf2/gnu-unique.s (added)
>> +++ lld/trunk/test/elf2/gnu-unique.s Fri Oct 2 16:57:52 2015
>> @@ -0,0 +1,24 @@
>> +// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t
>> +// RUN: lld -flavor gnu2 %t -shared -o %tout.so
>> +// RUN: llvm-readobj -t -dyn-symbols %tout.so | FileCheck %s
>
> You are not using the '-t'
>
> Cheers,
> Rafael
Fixed in r249204.
- Michael Spencer
More information about the llvm-commits
mailing list