aboutsummaryrefslogtreecommitdiff
path: root/ldscripts
diff options
context:
space:
mode:
authoraglitke <aglitke@aglitke.localdomain>2006-11-06 11:16:28 -0600
committeraglitke <aglitke@aglitke.localdomain>2006-11-06 11:16:28 -0600
commited4a02add2292733ce3e9162899b481b9d531234 (patch)
tree84d0ca51762db4f2f20ada01de8ade77313cec6e /ldscripts
parent17c61426b3fd53846b6e7bad33ba02ce16e9fef2 (diff)
downloadlibhugetlbfs-ed4a02add2292733ce3e9162899b481b9d531234.tar.gz
ldscripts: Fix .note.SuSE and .note.ABI-tag sections
Since we are explicitly placing things into output segments, we must include placement information for .note.SuSE and .note.ABI-tag sections. Otherwise, they can be incorrectly placed in the .interp segment, which makes an un-runnable binary. Signed-off-by: Steve Fox <drfickle@us.ibm.com>
Diffstat (limited to 'ldscripts')
-rw-r--r--ldscripts/elf32ppclinux.xB2
-rw-r--r--ldscripts/elf32ppclinux.xBDT2
-rw-r--r--ldscripts/elf64ppc.xB2
-rw-r--r--ldscripts/elf64ppc.xBDT2
-rw-r--r--ldscripts/elf_x86_64.xB2
-rw-r--r--ldscripts/elf_x86_64.xBDT2
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