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