1 diff -cpr ../binutils-2.22.52.0.1.orig/ld/testsuite/config/default.exp ld/testsuite/config/default.exp
2 *** ../binutils-2.22.52.0.1.orig/ld/testsuite/config/default.exp 2012-03-06 14:00:31.141957656 +0000
3 --- ld/testsuite/config/default.exp 2012-03-06 14:09:33.492940503 +0000
8 if ![info exists ld] then {
9 ! set ld [findfile $base_dir/ld-new $base_dir/ld-new [transform ld]]
12 if ![info exists as] then {
16 if ![info exists ld] then {
17 ! set ld "[findfile $base_dir/ld-new $base_dir/ld-new [transform ld]] -znorelro"
20 if ![info exists as] then {
21 *************** if {![file isdirectory tmpdir/ld]} then
23 catch "exec ln -s ../../ld-new tmpdir/ld/ld" status
24 catch "exec ln -s ld tmpdir/ld/collect-ld" status
26 ! set gcc_ld_flag "-B[pwd]/tmpdir/ld/"
28 # load the linker path
29 if {[file exists tmpdir/libpath.exp]} {
31 catch "exec ln -s ../../ld-new tmpdir/ld/ld" status
32 catch "exec ln -s ld tmpdir/ld/collect-ld" status
34 ! set gcc_ld_flag "-B[pwd]/tmpdir/ld/ -Wl,-z,norelro"
36 # load the linker path
37 if {[file exists tmpdir/libpath.exp]} {
38 *************** if ![info exists READELFFLAGS] then {
42 if ![info exists LD] then {
43 ! set LD [findfile $base_dir/ld-new ./ld-new [transform ld]]
46 if ![info exists LDFLAGS] then {
50 if ![info exists LD] then {
51 ! set LD "[findfile $base_dir/ld-new ./ld-new [transform ld]] -znorelro"
54 if ![info exists LDFLAGS] then {
55 diff -cpr ../binutils-2.22.52.0.1.orig/ld/testsuite/ld-bootstrap/bootstrap.exp ld/testsuite/ld-bootstrap/bootstrap.exp
56 *** ../binutils-2.22.52.0.1.orig/ld/testsuite/ld-bootstrap/bootstrap.exp 2012-03-06 14:00:30.503957676 +0000
57 --- ld/testsuite/ld-bootstrap/bootstrap.exp 2012-03-06 15:03:33.949837926 +0000
58 *************** foreach flags {"" "strip" "--static" "--
61 # This test can only be run if we have the ld build directory,
62 # since we need the object files.
63 ! if {$ld != "$objdir/ld-new"} {
69 # This test can only be run if we have the ld build directory,
70 # since we need the object files.
72 ! set ldparm [string first " " $ld]
73 ! if { $ldparm > 0 } then {
74 ! set ldparm [expr $ldparm - 1]
75 ! set ldexe [string range $ld 0 $ldparm]
77 ! if {$ldexe != "$objdir/ld-new"} {
81 *** ../binutils-2.22.52.0.2.orig/ld/emultempl/elf32.em 2012-04-30 16:12:52.642766221 +0100
82 --- ld/emultempl/elf32.em 2012-04-30 16:13:13.869766905 +0100
83 *************** gld${EMULATION_NAME}_before_parse (void)
86 input_flags.dynamic = ${DYNAMIC_LINK-TRUE};
87 config.has_shared = `if test -n "$GENERATE_SHLIB_SCRIPT" ; then echo TRUE ; else echo FALSE ; fi`;
88 link_info.sharable_sections = `if test "$SHARABLE_SECTIONS" = "yes" ; then echo TRUE ; else echo FALSE ; fi`;
89 + link_info.relro = TRUE;