This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] S/390 Reverting the jmp_buf/ucontext_t ABI change


Stefan Liebler <stli@linux.vnet.ibm.com> writes:

> On 07/28/2014 05:30 PM, Andreas Schwab wrote:
>> Stefan Liebler <stli@linux.vnet.ibm.com> writes:
>>
>>> +weak_extern (__sigsetjmp);
>>
>> That should not be here.
>>
>> Andreas.
>>
>
> simply removing weak_extern leads to
> gcc -nostdlib -nostartfiles -r -o build/elf/librtld.map.o '-Wl,-('
> build/elf/dl-allobjs.os build/libc_pic.a -lgcc '-Wl,-)'
> -Wl,-Map,build/elf/librtld.mapT
> build/libc_pic.a(setjmp.os):(*IND*+0x0): multiple definition of
> `__sigsetjmp'
> build/libc_pic.a(setjmp.os):(.text+0x18): first defined here
> collect2: error: ld returned 1 exit status

The implementation of the function needs to have a unique name.

Andreas.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]