|
|
e0bdd4 |
diff -rup binutils.orig/binutils/objcopy.c binutils-2.36.1/binutils/objcopy.c
|
|
|
e0bdd4 |
--- binutils.orig/binutils/objcopy.c 2021-02-11 10:53:45.582148696 +0000
|
|
|
e0bdd4 |
+++ binutils-2.36.1/binutils/objcopy.c 2021-02-11 10:54:25.226852733 +0000
|
|
|
e0bdd4 |
@@ -3769,7 +3769,7 @@ copy_file (const char *input_filename, c
|
|
|
e0bdd4 |
/* To allow us to do "strip *" without dying on the first
|
|
|
e0bdd4 |
non-object file, failures are nonfatal. */
|
|
|
e0bdd4 |
ibfd = bfd_openr (input_filename, input_target);
|
|
|
e0bdd4 |
- if (ibfd == NULL || fstat (fileno (ibfd->iostream), in_stat) != 0)
|
|
|
e0bdd4 |
+ if (ibfd == NULL || bfd_stat (ibfd, in_stat) != 0)
|
|
|
e0bdd4 |
{
|
|
|
e0bdd4 |
bfd_nonfatal_message (input_filename, NULL, NULL, NULL);
|
|
|
e0bdd4 |
status = 1;
|
|
|
e0bdd4 |
diff -rup binutils.orig/ld/testsuite/ld-i386/i386.exp binutils-2.36.1/ld/testsuite/ld-i386/i386.exp
|
|
|
e0bdd4 |
--- binutils.orig/ld/testsuite/ld-i386/i386.exp 2021-02-11 10:53:45.739147527 +0000
|
|
|
e0bdd4 |
+++ binutils-2.36.1/ld/testsuite/ld-i386/i386.exp 2021-02-11 10:55:36.505320591 +0000
|
|
|
e0bdd4 |
@@ -1105,69 +1105,6 @@ if { [isnative]
|
|
|
e0bdd4 |
{pass.c property-stack.S} \
|
|
|
e0bdd4 |
"property-3-static" "pass.out" \
|
|
|
e0bdd4 |
] \
|
|
|
e0bdd4 |
- [list \
|
|
|
e0bdd4 |
- "Run property 3" \
|
|
|
e0bdd4 |
- "" \
|
|
|
e0bdd4 |
- "-Wa,-mx86-used-note=yes" \
|
|
|
e0bdd4 |
- {pass.c property-stack.S property-x86-1.S} \
|
|
|
e0bdd4 |
- "property-3" "pass.out" \
|
|
|
e0bdd4 |
- ] \
|
|
|
e0bdd4 |
- [list \
|
|
|
e0bdd4 |
- "Run property 3 (PIE)" \
|
|
|
e0bdd4 |
- "-pie" \
|
|
|
e0bdd4 |
- "-Wa,-mx86-used-note=yes" \
|
|
|
e0bdd4 |
- {pass.c property-x86-1.S property-stack.S} \
|
|
|
e0bdd4 |
- "property-3-pie" "pass.out" "-fPIE" \
|
|
|
e0bdd4 |
- ] \
|
|
|
e0bdd4 |
- [list \
|
|
|
e0bdd4 |
- "Run property 3 (static)" \
|
|
|
e0bdd4 |
- "-static" \
|
|
|
e0bdd4 |
- "-Wa,-mx86-used-note=yes" \
|
|
|
e0bdd4 |
- {property-x86-1.S pass.c property-stack.S} \
|
|
|
e0bdd4 |
- "property-3-static" "pass.out" \
|
|
|
e0bdd4 |
- ] \
|
|
|
e0bdd4 |
- [list \
|
|
|
e0bdd4 |
- "Run property 4" \
|
|
|
e0bdd4 |
- "" \
|
|
|
e0bdd4 |
- "-Wa,-mx86-used-note=yes" \
|
|
|
e0bdd4 |
- {pass.c property-stack.S property-x86-1.S property-x86-2.S} \
|
|
|
e0bdd4 |
- "property-4" "pass.out" \
|
|
|
e0bdd4 |
- ] \
|
|
|
e0bdd4 |
- [list \
|
|
|
e0bdd4 |
- "Run property 4 (PIE)" \
|
|
|
e0bdd4 |
- "-pie" \
|
|
|
e0bdd4 |
- "-Wa,-mx86-used-note=yes" \
|
|
|
e0bdd4 |
- {pass.c property-x86-2.S property-x86-1.S property-stack.S} \
|
|
|
e0bdd4 |
- "property-4-pie" "pass.out" "-fPIE" \
|
|
|
e0bdd4 |
- ] \
|
|
|
e0bdd4 |
- [list \
|
|
|
e0bdd4 |
- "Run property 4 (static)" \
|
|
|
e0bdd4 |
- "-static" \
|
|
|
e0bdd4 |
- "-Wa,-mx86-used-note=yes" \
|
|
|
e0bdd4 |
- {property-x86-2.S property-x86-1.S pass.c property-stack.S} \
|
|
|
e0bdd4 |
- "property-4-static" "pass.out" \
|
|
|
e0bdd4 |
- ] \
|
|
|
e0bdd4 |
- [list \
|
|
|
e0bdd4 |
- "Run property 5" \
|
|
|
e0bdd4 |
- "-Wl,-z,stack-size=0x900000" \
|
|
|
e0bdd4 |
- "-Wa,-mx86-used-note=yes" \
|
|
|
e0bdd4 |
- {pass.c property-stack.S property-x86-1.S property-x86-2.S} \
|
|
|
e0bdd4 |
- "property-5" "pass.out" \
|
|
|
e0bdd4 |
- ] \
|
|
|
e0bdd4 |
- [list \
|
|
|
e0bdd4 |
- "Run property 5 (PIE)" \
|
|
|
e0bdd4 |
- "-pie -Wl,-z,stack-size=0x900000" \
|
|
|
e0bdd4 |
- "-Wa,-mx86-used-note=yes" \
|
|
|
e0bdd4 |
- {pass.c property-x86-2.S property-x86-1.S property-stack.S} \
|
|
|
e0bdd4 |
- "property-5-pie" "pass.out" "-fPIE" \
|
|
|
e0bdd4 |
- ] \
|
|
|
e0bdd4 |
- [list \
|
|
|
e0bdd4 |
- "Run property 5 (static)" \
|
|
|
e0bdd4 |
- "-static -Wl,-z,stack-size=0x900000" \
|
|
|
e0bdd4 |
- "-Wa,-mx86-used-note=yes" \
|
|
|
e0bdd4 |
- {property-x86-2.S property-x86-1.S pass.c property-stack.S} \
|
|
|
e0bdd4 |
- "property-5-static" "pass.out" \
|
|
|
e0bdd4 |
- ] \
|
|
|
e0bdd4 |
]
|
|
|
e0bdd4 |
|
|
|
e0bdd4 |
undefined_weak "$NOPIE_CFLAGS" "$NOPIE_LDFLAGS"
|
|
|
e0bdd4 |
diff -rup binutils.orig/ld/testsuite/ld-x86-64/x86-64.exp binutils-2.36.1/ld/testsuite/ld-x86-64/x86-64.exp
|
|
|
e0bdd4 |
--- binutils.orig/ld/testsuite/ld-x86-64/x86-64.exp 2021-02-11 10:53:45.702147802 +0000
|
|
|
e0bdd4 |
+++ binutils-2.36.1/ld/testsuite/ld-x86-64/x86-64.exp 2021-02-11 10:56:09.481074386 +0000
|
|
|
e0bdd4 |
@@ -1583,69 +1583,6 @@ if { [isnative] && [check_compiler_avail
|
|
|
e0bdd4 |
"property-3-static" "pass.out" \
|
|
|
e0bdd4 |
] \
|
|
|
e0bdd4 |
[list \
|
|
|
e0bdd4 |
- "Run property 3" \
|
|
|
e0bdd4 |
- "" \
|
|
|
e0bdd4 |
- "-Wa,-mx86-used-note=yes" \
|
|
|
e0bdd4 |
- {pass.c property-stack.S property-x86-1.S} \
|
|
|
e0bdd4 |
- "property-3" "pass.out" \
|
|
|
e0bdd4 |
- ] \
|
|
|
e0bdd4 |
- [list \
|
|
|
e0bdd4 |
- "Run property 3 (PIE)" \
|
|
|
e0bdd4 |
- "-pie" \
|
|
|
e0bdd4 |
- "-Wa,-mx86-used-note=yes" \
|
|
|
e0bdd4 |
- {pass.c property-x86-1.S property-stack.S} \
|
|
|
e0bdd4 |
- "property-3-pie" "pass.out" "-fPIE" \
|
|
|
e0bdd4 |
- ] \
|
|
|
e0bdd4 |
- [list \
|
|
|
e0bdd4 |
- "Run property 3 (static)" \
|
|
|
e0bdd4 |
- "-static" \
|
|
|
e0bdd4 |
- "-Wa,-mx86-used-note=yes" \
|
|
|
e0bdd4 |
- {property-x86-1.S pass.c property-stack.S} \
|
|
|
e0bdd4 |
- "property-3-static" "pass.out" \
|
|
|
e0bdd4 |
- ] \
|
|
|
e0bdd4 |
- [list \
|
|
|
e0bdd4 |
- "Run property 4" \
|
|
|
e0bdd4 |
- "" \
|
|
|
e0bdd4 |
- "-Wa,-mx86-used-note=yes" \
|
|
|
e0bdd4 |
- {pass.c property-stack.S property-x86-1.S property-x86-2.S} \
|
|
|
e0bdd4 |
- "property-4" "pass.out" \
|
|
|
e0bdd4 |
- ] \
|
|
|
e0bdd4 |
- [list \
|
|
|
e0bdd4 |
- "Run property 4 (PIE)" \
|
|
|
e0bdd4 |
- "-pie" \
|
|
|
e0bdd4 |
- "-Wa,-mx86-used-note=yes" \
|
|
|
e0bdd4 |
- {pass.c property-x86-2.S property-x86-1.S property-stack.S} \
|
|
|
e0bdd4 |
- "property-4-pie" "pass.out" "-fPIE" \
|
|
|
e0bdd4 |
- ] \
|
|
|
e0bdd4 |
- [list \
|
|
|
e0bdd4 |
- "Run property 4 (static)" \
|
|
|
e0bdd4 |
- "-static" \
|
|
|
e0bdd4 |
- "-Wa,-mx86-used-note=yes" \
|
|
|
e0bdd4 |
- {property-x86-2.S property-x86-1.S pass.c property-stack.S} \
|
|
|
e0bdd4 |
- "property-4-static" "pass.out" \
|
|
|
e0bdd4 |
- ] \
|
|
|
e0bdd4 |
- [list \
|
|
|
e0bdd4 |
- "Run property 5" \
|
|
|
e0bdd4 |
- "-Wl,-z,stack-size=0x900000" \
|
|
|
e0bdd4 |
- "-Wa,-mx86-used-note=yes" \
|
|
|
e0bdd4 |
- {pass.c property-stack.S property-x86-1.S property-x86-2.S} \
|
|
|
e0bdd4 |
- "property-5" "pass.out" \
|
|
|
e0bdd4 |
- ] \
|
|
|
e0bdd4 |
- [list \
|
|
|
e0bdd4 |
- "Run property 5 (PIE)" \
|
|
|
e0bdd4 |
- "-pie -Wl,-z,stack-size=0x900000" \
|
|
|
e0bdd4 |
- "-Wa,-mx86-used-note=yes" \
|
|
|
e0bdd4 |
- {pass.c property-x86-2.S property-x86-1.S property-stack.S} \
|
|
|
e0bdd4 |
- "property-5-pie" "pass.out" "-fPIE" \
|
|
|
e0bdd4 |
- ] \
|
|
|
e0bdd4 |
- [list \
|
|
|
e0bdd4 |
- "Run property 5 (static)" \
|
|
|
e0bdd4 |
- "-static -Wl,-z,stack-size=0x900000" \
|
|
|
e0bdd4 |
- "-Wa,-mx86-used-note=yes" \
|
|
|
e0bdd4 |
- {property-x86-2.S property-x86-1.S pass.c property-stack.S} \
|
|
|
e0bdd4 |
- "property-5-static" "pass.out" \
|
|
|
e0bdd4 |
- ] \
|
|
|
e0bdd4 |
- [list \
|
|
|
e0bdd4 |
"Run pr22001-1a (PIC 1)" \
|
|
|
e0bdd4 |
"$NOPIE_LDFLAGS -Wl,-z,nocopyreloc,--no-as-needed tmpdir/pr22001-1.so" \
|
|
|
e0bdd4 |
"-Wa,-mx86-used-note=yes" \
|