This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCHv2,HURD] Add fork hooks for pthread_atfork
- From: Samuel Thibault <samuel dot thibault at gnu dot org>
- To: Roland McGrath <roland at hack dot frob dot com>
- Cc: Thomas Schwinge <thomas at codesourcery dot com>, Justus Winter <4winter at informatik dot uni-hamburg dot de>, bug-hurd at gnu dot org, libc-alpha at sources dot redhat dot com, alicia at ion dot nu
- Date: Tue, 25 Feb 2014 00:55:09 -0500
- Subject: Re: [PATCHv2,HURD] Add fork hooks for pthread_atfork
- Authentication-results: sourceware.org; auth=none
- References: <20110619130724 dot GV6349 at const dot famille dot thibault dot fr> <20130921212355 dot GV30838 at type dot youpi dot perso dot aquilenet dot fr> <20130924210815 dot GA31468 at type dot youpi dot perso dot aquilenet dot fr> <20120510233252 dot GO4259 at type dot famille dot thibault dot fr> <878uvfmwvs dot fsf at kepler dot schwinge dot homeip dot net> <20131220210542 dot 9CD707442F at topped-with-meat dot com>
Hello,
Roland McGrath, le Fri 20 Dec 2013 13:05:42 -0800, a Ãcrit :
> The linker is supposed to define those symbols automagically.
> Did it break?
We have been having
â
checking for sufficient default -shared layout... no
â
at least since 2.17, yes. (I don't have logs between 2.13 and 2.17)
Note that this is a Debian build, and also happens on Linux ports.
Here is the config.log output from 2.17:
configure:6644: checking for sufficient default -shared layout
configure:6663: i486-gnu-gcc-4.7 -shared -o conftest.so conftest.s 1>&5
configure:6666: $? = 0
nono from:
NOTE .note.gnu.build-i
GNU_HASH .gnu.hash
DYNSYM .dynsym
STRTAB .dynstr
VERSYM .gnu.version
VERNEED .gnu.version_r
REL .rel.dyn
REL .rel.plt
PROGBITS .init
PROGBITS .plt
PROGBITS .text
PROGBITS .fini
NOTE .note.a
NOTE .note.b
PROGBITS .eh_frame
INIT_ARRAY .init_array
FINI_ARRAY .fini_array
PROGBITS .jcr
DYNAMIC .dynamic
PROGBITS .got
PROGBITS .got.plt
PROGBITS .data
NOBITS .bss
PROGBITS .comment
STRTAB .shstrtab
SYMTAB .symtab
STRTAB .strtab
configure:6698: result: no
So the NOTEs are indeed not put at the beginning by the debian linker.
Samuel