]>
Commit | Line | Data |
---|---|---|
e5e21531 MT |
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 | |
4 | *************** | |
5 | *** 23,29 **** | |
6 | # | |
7 | ||
8 | if ![info exists ld] then { | |
9 | ! set ld [findfile $base_dir/ld-new $base_dir/ld-new [transform ld]] | |
10 | } | |
11 | ||
12 | if ![info exists as] then { | |
13 | --- 23,29 ---- | |
14 | # | |
15 | ||
16 | if ![info exists ld] then { | |
17 | ! set ld "[findfile $base_dir/ld-new $base_dir/ld-new [transform ld]] -znorelro" | |
18 | } | |
19 | ||
20 | if ![info exists as] then { | |
21 | *************** if {![file isdirectory tmpdir/ld]} then | |
22 | *** 69,75 **** | |
23 | catch "exec ln -s ../../ld-new tmpdir/ld/ld" status | |
24 | catch "exec ln -s ld tmpdir/ld/collect-ld" status | |
25 | } | |
26 | ! set gcc_ld_flag "-B[pwd]/tmpdir/ld/" | |
27 | ||
28 | # load the linker path | |
29 | if {[file exists tmpdir/libpath.exp]} { | |
30 | --- 69,75 ---- | |
31 | catch "exec ln -s ../../ld-new tmpdir/ld/ld" status | |
32 | catch "exec ln -s ld tmpdir/ld/collect-ld" status | |
33 | } | |
34 | ! set gcc_ld_flag "-B[pwd]/tmpdir/ld/ -Wl,-z,norelro" | |
35 | ||
36 | # load the linker path | |
37 | if {[file exists tmpdir/libpath.exp]} { | |
38 | *************** if ![info exists READELFFLAGS] then { | |
39 | *** 279,285 **** | |
40 | } | |
41 | ||
42 | if ![info exists LD] then { | |
43 | ! set LD [findfile $base_dir/ld-new ./ld-new [transform ld]] | |
44 | } | |
45 | ||
46 | if ![info exists LDFLAGS] then { | |
47 | --- 279,285 ---- | |
48 | } | |
49 | ||
50 | if ![info exists LD] then { | |
51 | ! set LD "[findfile $base_dir/ld-new ./ld-new [transform ld]] -znorelro" | |
52 | } | |
53 | ||
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" "-- | |
59 | *** 71,77 **** | |
60 | ||
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"} { | |
64 | untested $testname | |
65 | continue | |
66 | } | |
67 | --- 71,83 ---- | |
68 | ||
69 | # This test can only be run if we have the ld build directory, | |
70 | # since we need the object files. | |
71 | ! set ldexe $ld | |
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] | |
76 | ! } | |
77 | ! if {$ldexe != "$objdir/ld-new"} { | |
78 | untested $testname | |
79 | continue | |
80 | } | |
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) | |
84 | *** 106,111 **** | |
85 | --- 106,112 ---- | |
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; | |
90 | } | |
91 | ||
92 | EOF |