This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: A symbol version patch for glibc 2.x compatibility
- To: binutils at sourceware dot cygnus dot com
- Subject: Re: A symbol version patch for glibc 2.x compatibility
- From: "H . J . Lu" <hjl at valinux dot com>
- Date: Sat, 11 Nov 2000 23:45:23 -0800
> That said, I do not think it would be incorrect to set the EI_OSABI
> field to ELFOSABI_LINUX when the binutils are configured for a
> GNU/Linux target.
That may be true. However, we, Linux, use elf_i386. I don't see we
need to change. We have told David how to tell a Linux binrary from
a special ".note.ABI-tag" section. We even did this in ld:
/* Decide which segment the section should go in based on the
section name and section flags. We put loadable .note sections
right after the .interp section, so that the PT_NOTE segment is
stored right after the program headers where the OS can read it
in the first page. */
# objdump -h /bin/ls
...
Sections:
Idx Name Size VMA LMA File off Algn
0 .interp 00000013 080480f4 080480f4 000000f4 2**0
CONTENTS, ALLOC, LOAD, READONLY, DATA
1 .note.ABI-tag 00000020 08048108 08048108 00000108 2**2
CONTENTS, ALLOC, LOAD, READONLY, DATA
I don't understand why David kept asking for Linux to change.
--
H.J. Lu (hjl@valinux.com)