This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] S/390 Reverting the jmp_buf/ucontext_t ABI change
- From: Andreas Schwab <schwab at suse dot de>
- To: Stefan Liebler <stli at linux dot vnet dot ibm dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Tue, 29 Jul 2014 12:45:50 +0200
- Subject: Re: [PATCH] S/390 Reverting the jmp_buf/ucontext_t ABI change
- Authentication-results: sourceware.org; auth=none
- References: <201407221441 dot s6MEfA1P017456 at d06av02 dot portsmouth dot uk dot ibm dot com> <53D29DDF dot 3040108 at linux dot vnet dot ibm dot com> <lr7sn7$aen$1 at ger dot gmane dot org>
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."