|
|
f55871 |
diff -cpr ../binutils-2.22.52.0.1.orig/ld/testsuite/config/default.exp ld/testsuite/config/default.exp
|
|
|
f55871 |
*** ../binutils-2.22.52.0.1.orig/ld/testsuite/config/default.exp 2012-03-06 14:00:31.141957656 +0000
|
|
|
f55871 |
--- ld/testsuite/config/default.exp 2012-03-06 14:09:33.492940503 +0000
|
|
|
f55871 |
***************
|
|
|
f55871 |
*** 23,29 ****
|
|
|
f55871 |
#
|
|
|
f55871 |
|
|
|
f55871 |
if ![info exists ld] then {
|
|
|
f55871 |
! set ld [findfile $base_dir/ld-new $base_dir/ld-new [transform ld]]
|
|
|
f55871 |
}
|
|
|
f55871 |
|
|
|
f55871 |
if ![info exists as] then {
|
|
|
f55871 |
--- 23,29 ----
|
|
|
f55871 |
#
|
|
|
f55871 |
|
|
|
f55871 |
if ![info exists ld] then {
|
|
|
f55871 |
! set ld "[findfile $base_dir/ld-new $base_dir/ld-new [transform ld]] -znorelro"
|
|
|
f55871 |
}
|
|
|
f55871 |
|
|
|
f55871 |
if ![info exists as] then {
|
|
|
f55871 |
*************** if {![file isdirectory tmpdir/ld]} then
|
|
|
f55871 |
*** 69,75 ****
|
|
|
f55871 |
catch "exec ln -s ld tmpdir/ld/collect-ld" status
|
|
|
4910d4 |
catch "exec ln -s ../../../gas/as-new tmpdir/ld/as" status
|
|
|
f55871 |
}
|
|
|
4910d4 |
! set gcc_B_opt "-B[pwd]/tmpdir/ld/"
|
|
|
f55871 |
|
|
|
f55871 |
# load the linker path
|
|
|
4910d4 |
set ld_L_opt ""
|
|
|
f55871 |
--- 69,75 ----
|
|
|
f55871 |
catch "exec ln -s ld tmpdir/ld/collect-ld" status
|
|
|
4910d4 |
catch "exec ln -s ../../../gas/as-new tmpdir/ld/as" status
|
|
|
f55871 |
}
|
|
|
4910d4 |
! set gcc_B_opt "-B[pwd]/tmpdir/ld/ -Wl,-z,norelro"
|
|
|
f55871 |
|
|
|
f55871 |
# load the linker path
|
|
|
4910d4 |
set ld_L_opt ""
|
|
|
f55871 |
*************** if ![info exists READELFFLAGS] then {
|
|
|
f55871 |
*** 279,285 ****
|
|
|
f55871 |
}
|
|
|
f55871 |
|
|
|
f55871 |
if ![info exists LD] then {
|
|
|
f55871 |
! set LD [findfile $base_dir/ld-new ./ld-new [transform ld]]
|
|
|
f55871 |
}
|
|
|
f55871 |
|
|
|
f55871 |
if ![info exists LDFLAGS] then {
|
|
|
f55871 |
--- 279,285 ----
|
|
|
f55871 |
}
|
|
|
f55871 |
|
|
|
f55871 |
if ![info exists LD] then {
|
|
|
f55871 |
! set LD "[findfile $base_dir/ld-new ./ld-new [transform ld]] -znorelro"
|
|
|
f55871 |
}
|
|
|
f55871 |
|
|
|
f55871 |
if ![info exists LDFLAGS] then {
|
|
|
f55871 |
diff -cpr ../binutils-2.22.52.0.1.orig/ld/testsuite/ld-bootstrap/bootstrap.exp ld/testsuite/ld-bootstrap/bootstrap.exp
|
|
|
f55871 |
*** ../binutils-2.22.52.0.1.orig/ld/testsuite/ld-bootstrap/bootstrap.exp 2012-03-06 14:00:30.503957676 +0000
|
|
|
f55871 |
--- ld/testsuite/ld-bootstrap/bootstrap.exp 2012-03-06 15:03:33.949837926 +0000
|
|
|
f55871 |
*************** foreach flags {"" "strip" "--static" "--
|
|
|
f55871 |
*** 71,77 ****
|
|
|
f55871 |
|
|
|
f55871 |
# This test can only be run if we have the ld build directory,
|
|
|
f55871 |
# since we need the object files.
|
|
|
f55871 |
! if {$ld != "$objdir/ld-new"} {
|
|
|
f55871 |
untested $testname
|
|
|
f55871 |
continue
|
|
|
f55871 |
}
|
|
|
f55871 |
--- 71,83 ----
|
|
|
f55871 |
|
|
|
f55871 |
# This test can only be run if we have the ld build directory,
|
|
|
f55871 |
# since we need the object files.
|
|
|
f55871 |
! set ldexe $ld
|
|
|
f55871 |
! set ldparm [string first " " $ld]
|
|
|
f55871 |
! if { $ldparm > 0 } then {
|
|
|
f55871 |
! set ldparm [expr $ldparm - 1]
|
|
|
f55871 |
! set ldexe [string range $ld 0 $ldparm]
|
|
|
f55871 |
! }
|
|
|
f55871 |
! if {$ldexe != "$objdir/ld-new"} {
|
|
|
f55871 |
untested $testname
|
|
|
f55871 |
continue
|
|
|
f55871 |
}
|
|
|
f55871 |
*** ../binutils-2.22.52.0.2.orig/ld/emultempl/elf32.em 2012-04-30 16:12:52.642766221 +0100
|
|
|
f55871 |
--- ld/emultempl/elf32.em 2012-04-30 16:13:13.869766905 +0100
|
|
|
f55871 |
*************** gld${EMULATION_NAME}_before_parse (void)
|
|
|
f55871 |
*** 106,111 ****
|
|
|
f55871 |
--- 106,112 ----
|
|
|
4910d4 |
input_flags.dynamic = ${DYNAMIC_LINK-TRUE};
|
|
|
f55871 |
config.has_shared = `if test -n "$GENERATE_SHLIB_SCRIPT" ; then echo TRUE ; else echo FALSE ; fi`;
|
|
|
f55871 |
config.separate_code = `if test "x${SEPARATE_CODE}" = xyes ; then echo TRUE ; else echo FALSE ; fi`;
|
|
|
f55871 |
+ link_info.relro = TRUE;
|
|
|
f55871 |
}
|
|
|
f55871 |
|
|
|
f55871 |
EOF
|