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