path: root/ldscripts
diff options
authorNishanth Aravamudan <nacc@us.ibm.com>2007-06-26 19:20:24 -0700
committerNishanth Aravamudan <nacc@us.ibm.com>2007-07-02 14:54:20 -0700
commit2b303162e20f2a205ff3a2db313b4be5292125b5 (patch)
treee892a54ebc1c221d31656ffd0e4cc30edcbeedf4 /ldscripts
parentb36c971edc39153223ee8b3fc9a20325c02be006 (diff)
elf64ppc.B: fix eh_frame_hdr placement be with the text not data
For some reason, I made the ppc64 B-only linker script place the eh_frame_hdr with the data, while every other arch placed it with the text. This led to segfault of bwaves from SPECCPU in the B-only 64-bit configuration. Fix this by placing the eh_frame_hdr in the text like all the other scripts. 64-bit B-only bwaves completes successfully with this patch applied. Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com> Acked-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'ldscripts')
1 files changed, 1 insertions, 1 deletions
diff --git a/ldscripts/elf64ppc.xB b/ldscripts/elf64ppc.xB
index fc98cc4..030840e 100644
--- a/ldscripts/elf64ppc.xB
+++ b/ldscripts/elf64ppc.xB
@@ -94,7 +94,7 @@ SECTIONS
*(.sdata2 .sdata2.* .gnu.linkonce.s2.*)
.sbss2 : { *(.sbss2 .sbss2.* .gnu.linkonce.sb2.*) }
- .eh_frame_hdr : { *(.eh_frame_hdr) } :data :eh_frame_hdr
+ .eh_frame_hdr : { *(.eh_frame_hdr) } :text :eh_frame_hdr
/* .eh_frame : ONLY_IF_RO { KEEP (*(.eh_frame)) }*/
/* .gcc_except_table : ONLY_IF_RO { *(.gcc_except_table .gcc_except_table.*) }*/
/* Adjust the address for the data segment. We want to adjust up to