11203e4515
OBS-URL: https://build.opensuse.org/package/show/devel:gcc/binutils?expand=0&rev=30bdcdf01676d704cb1d357d78d1160b
44 lines
1.7 KiB
Diff
44 lines
1.7 KiB
Diff
Index: ld/ldmain.c
|
|
===================================================================
|
|
--- ld/ldmain.c.orig 2009-11-23 14:03:08.000000000 +0100
|
|
+++ ld/ldmain.c 2009-11-23 14:03:09.000000000 +0100
|
|
@@ -266,6 +266,7 @@ main (int argc, char **argv)
|
|
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
|
|
Index: ld/testsuite/config/default.exp
|
|
===================================================================
|
|
--- ld/testsuite/config/default.exp.orig 2009-11-23 14:03:09.000000000 +0100
|
|
+++ ld/testsuite/config/default.exp 2009-11-23 14:03:09.000000000 +0100
|
|
@@ -23,7 +23,7 @@
|
|
#
|
|
|
|
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 {
|
|
@@ -68,7 +68,7 @@ if {![file isdirectory tmpdir/ld]} then
|
|
catch "exec mkdir tmpdir/ld" status
|
|
catch "exec ln -s ../../ld-new tmpdir/ld/ld" status
|
|
}
|
|
-set gcc_ld_flag "-B[pwd]/tmpdir/ld/ -Wl,-z,norelro"
|
|
+set gcc_ld_flag "-B[pwd]/tmpdir/ld/ -Wl,-z,norelro -Wl,--hash-style=sysv"
|
|
|
|
# load the linker path
|
|
if {[file exists tmpdir/libpath.exp]} {
|
|
@@ -270,7 +270,7 @@ if ![info exists READELFFLAGS] then {
|
|
}
|
|
|
|
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 {
|