ldscripts: Fix .note.SuSE and .note.ABI-tag sections Signed-off-by: Steve Fox <[EMAIL PROTECTED]> ---
This caused un-runnable binaries to be generated on x86_64 on SUSE. ldscripts/elf32ppclinux.xB | 2 +- ldscripts/elf32ppclinux.xBDT | 2 +- ldscripts/elf64ppc.xB | 2 +- ldscripts/elf64ppc.xBDT | 2 +- ldscripts/elf_x86_64.xB | 2 ++ ldscripts/elf_x86_64.xBDT | 2 ++ 6 files changed, 8 insertions(+), 4 deletions(-) diff --git a/ldscripts/elf32ppclinux.xB b/ldscripts/elf32ppclinux.xB index 06dd5cb..c3c925f 100644 --- a/ldscripts/elf32ppclinux.xB +++ b/ldscripts/elf32ppclinux.xB @@ -21,7 +21,7 @@ SECTIONS /* Read-only sections, merged into text segment: */ __executable_start = 0x10000000; . = 0x10000000 + SIZEOF_HEADERS; .interp : { *(.interp) } :text :interp - .note.SuSE : { *(.note.ABI-tag) } :text :note + .note.SuSE : { *(.note.SuSE) } :text :note .note.ABI-tag : { *(.note.ABI-tag) } :text :note .hash : { *(.hash) } :text .dynsym : { *(.dynsym) } :text diff --git a/ldscripts/elf32ppclinux.xBDT b/ldscripts/elf32ppclinux.xBDT index 92cd1f7..f30bd3b 100644 --- a/ldscripts/elf32ppclinux.xBDT +++ b/ldscripts/elf32ppclinux.xBDT @@ -20,7 +20,7 @@ SECTIONS /* Read-only sections, merged into text segment: */ __executable_start = 0x10000000; . = 0x10000000 + SIZEOF_HEADERS; .interp : { *(.interp) } :htext :interp - .note.SuSE : { *(.note.ABI-tag) } :htext :note + .note.SuSE : { *(.note.SuSE) } :htext :note .note.ABI-tag : { *(.note.ABI-tag) } :htext :note .hash : { *(.hash) } :htext .dynsym : { *(.dynsym) } :htext diff --git a/ldscripts/elf64ppc.xB b/ldscripts/elf64ppc.xB index 073735f..c630ca9 100644 --- a/ldscripts/elf64ppc.xB +++ b/ldscripts/elf64ppc.xB @@ -20,7 +20,7 @@ SECTIONS /* Read-only sections, merged into text segment: */ __executable_start = 0x10000000; . = 0x10000000 + SIZEOF_HEADERS; .interp : { *(.interp) } :text :interp - .note.SuSE : { *(.note.ABI-tag) } :text :note + .note.SuSE : { *(.note.SuSE) } :text :note .note.ABI-tag : { *(.note.ABI-tag) } :text :note .hash : { *(.hash) } :text .dynsym : { *(.dynsym) } diff --git a/ldscripts/elf64ppc.xBDT b/ldscripts/elf64ppc.xBDT index 31aed1e..68abf09 100644 --- a/ldscripts/elf64ppc.xBDT +++ b/ldscripts/elf64ppc.xBDT @@ -19,7 +19,7 @@ SECTIONS /* Read-only sections, merged into text segment: */ __executable_start = 0x10000000; . = 0x10000000 + SIZEOF_HEADERS; .interp : { *(.interp) } :interp :htext - .note.SuSE : { *(.note.ABI-tag) } :htext :note + .note.SuSE : { *(.note.SuSE) } :htext :note .note.ABI-tag : { *(.note.ABI-tag) } :htext :note .hash : { *(.hash) } :htext .dynsym : { *(.dynsym) } :htext diff --git a/ldscripts/elf_x86_64.xB b/ldscripts/elf_x86_64.xB index 2f74fb2..f57bdda 100644 --- a/ldscripts/elf_x86_64.xB +++ b/ldscripts/elf_x86_64.xB @@ -23,6 +23,8 @@ SECTIONS /* Read-only sections, merged into text segment: */ __executable_start = 0x400000; . = 0x400000 + SIZEOF_HEADERS; .interp : { *(.interp) } :text :interp + .note.SuSE : { *(.note.SuSE) } :text :note + .note.ABI-tag : { *(.note.ABI-tag) } :text :note .hash : { *(.hash) } :text .dynsym : { *(.dynsym) } :text .dynstr : { *(.dynstr) } :text diff --git a/ldscripts/elf_x86_64.xBDT b/ldscripts/elf_x86_64.xBDT index c857a3c..cbe00b4 100644 --- a/ldscripts/elf_x86_64.xBDT +++ b/ldscripts/elf_x86_64.xBDT @@ -25,6 +25,8 @@ SECTIONS __executable_start = 0x1000000; . = 0x1000000 + SIZEOF_HEADERS; .interp : { *(.interp) } :interp :text .hash : { *(.hash) } :text + .note.SuSE : { *(.note.SuSE) } :text :note + .note.ABI-tag : { *(.note.ABI-tag) } :text :note .dynsym : { *(.dynsym) } :text .dynstr : { *(.dynstr) } :text .gnu.version : { *(.gnu.version) } :text -- 1.4.2.4 -- Steve Fox IBM Linux Technology Center ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Libhugetlbfs-devel mailing list Libhugetlbfs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel