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