2009-11-27 12:33:30 +01:00
|
|
|
Index: ld/ldmain.c
|
|
|
|
===================================================================
|
2014-12-01 18:04:10 +01:00
|
|
|
--- ld/ldmain.c.orig 2014-10-14 17:52:24.000000000 +0200
|
|
|
|
+++ ld/ldmain.c 2014-10-14 17:52:24.000000000 +0200
|
|
|
|
@@ -280,6 +280,7 @@ main (int argc, char **argv)
|
2007-10-09 04:28:58 +02:00
|
|
|
link_info.combreloc = TRUE;
|
|
|
|
link_info.strip_discarded = TRUE;
|
|
|
|
link_info.emit_hash = TRUE;
|
|
|
|
+ link_info.emit_gnu_hash = TRUE;
|
|
|
|
link_info.callbacks = &link_callbacks;
|
|
|
|
link_info.input_bfds_tail = &link_info.input_bfds;
|
|
|
|
/* SVR4 linkers seem to set DT_INIT and DT_FINI based on magic _init
|
2009-11-27 12:33:30 +01:00
|
|
|
Index: ld/testsuite/config/default.exp
|
|
|
|
===================================================================
|
2014-12-01 18:04:10 +01:00
|
|
|
--- ld/testsuite/config/default.exp.orig 2014-10-14 17:52:24.000000000 +0200
|
|
|
|
+++ ld/testsuite/config/default.exp 2014-10-14 17:52:24.000000000 +0200
|
|
|
|
@@ -22,7 +22,7 @@
|
2007-10-09 04:28:58 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
if ![info exists ld] then {
|
|
|
|
- set ld "[findfile $base_dir/ld-new $base_dir/ld-new [transform ld]] -znorelro"
|
|
|
|
+ set ld "[findfile $base_dir/ld-new $base_dir/ld-new [transform ld]] -znorelro --hash-style=sysv"
|
|
|
|
}
|
|
|
|
|
|
|
|
if ![info exists as] then {
|
2014-12-01 18:04:10 +01:00
|
|
|
@@ -60,7 +60,7 @@ if {![file isdirectory tmpdir/ld]} then
|
2012-09-14 14:12:28 +02:00
|
|
|
catch "exec ln -s ld tmpdir/ld/collect-ld" status
|
2014-12-01 18:04:10 +01:00
|
|
|
catch "exec ln -s ../../../gas/as-new tmpdir/ld/as" status
|
2007-10-09 04:28:58 +02:00
|
|
|
}
|
2014-12-01 18:04:10 +01:00
|
|
|
-set gcc_B_opt "-B[pwd]/tmpdir/ld/ -Wl,-z,norelro"
|
|
|
|
+set gcc_B_opt "-B[pwd]/tmpdir/ld/ -Wl,-z,norelro -Wl,--hash-style=sysv"
|
2007-10-09 04:28:58 +02:00
|
|
|
|
|
|
|
# load the linker path
|
2014-12-01 18:04:10 +01:00
|
|
|
set ld_L_opt ""
|
|
|
|
@@ -272,7 +272,7 @@ if ![info exists READELFFLAGS] then {
|
2007-10-09 04:28:58 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
if ![info exists LD] then {
|
|
|
|
- set LD "[findfile $base_dir/ld-new ./ld-new [transform ld]] -znorelro"
|
|
|
|
+ set LD "[findfile $base_dir/ld-new ./ld-new [transform ld]] -znorelro --hash-style=sysv"
|
|
|
|
}
|
|
|
|
|
|
|
|
if ![info exists LDFLAGS] then {
|