From 0b7e56ac2bd3378132f0ce3cb96ed747038d7788 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Tue, 30 Oct 2012 12:44:14 -0700 Subject: [PATCH] use hashtype both by default --- ld/ldmain.c | 1 + ld/testsuite/config/default.exp | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ld/ldmain.c b/ld/ldmain.c index 560daa6..7b2d703 100644 --- a/ld/ldmain.c +++ b/ld/ldmain.c @@ -280,6 +280,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 diff --git a/ld/testsuite/config/default.exp b/ld/testsuite/config/default.exp index aa6c13d..d0eb62d 100644 --- a/ld/testsuite/config/default.exp +++ b/ld/testsuite/config/default.exp @@ -22,7 +22,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 { @@ -60,7 +60,7 @@ if {![file isdirectory tmpdir/ld]} then { catch "exec ln -s ld tmpdir/ld/collect-ld" status catch "exec ln -s ../../../gas/as-new tmpdir/ld/as" status } -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" # load the linker path set ld_L_opt "" @@ -272,7 +272,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 { -- 2.7.4