This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
RE: [COMMITTED PATCH] Use __ehdr_start, if available, as fallback for AT_PHDR.
- From: Roland McGrath <roland at hack dot frob dot com>
- To: Steve Ellcey <Steve dot Ellcey at imgtec dot com>
- Cc: "GNU C. Library" <libc-alpha at sourceware dot org>
- Date: Mon, 8 Apr 2013 15:47:18 -0700 (PDT)
- Subject: RE: [COMMITTED PATCH] Use __ehdr_start, if available, as fallback for AT_PHDR.
- References: <20130328231733 dot 3F8F12C0A5 at topped-with-meat dot com> <1C0E790D7E4C75418622FD04CC2A1172015DEBEF at bamail02 dot ba dot imgtec dot org>
Sorry for the delay. (I still have a mountain of backlog.)
Such an error is by definition a bug in binutils. If it occurs in
released versions of binutils, then we would consider trying to work
around it somehow. But the thing to do first is to find a reduced
test case that demonstrates the linker bug and take it up with the
binutils maintainers. (I would guess that any simple static link
making use of __ehdr_start with a weak reference would hit the same
problem, but you'll have to see what you get.) Once it's resolved
for trunk binutils, we'll know much more about the details and be in
a better position to consider the situation for any older binutils
versions that are affected.
Thanks,
Roland