159 lines
5.3 KiB
Diff
159 lines
5.3 KiB
Diff
diff -rupN --no-dereference binutils-2.36.1/binutils/objcopy.c binutils-2.36.1-new/binutils/objcopy.c
|
|
--- binutils-2.36.1/binutils/objcopy.c 2021-02-05 15:13:40.000000000 +0100
|
|
+++ binutils-2.36.1-new/binutils/objcopy.c 2021-02-13 18:13:20.401224360 +0100
|
|
@@ -3769,7 +3769,7 @@ copy_file (const char *input_filename, c
|
|
/* To allow us to do "strip *" without dying on the first
|
|
non-object file, failures are nonfatal. */
|
|
ibfd = bfd_openr (input_filename, input_target);
|
|
- if (ibfd == NULL || fstat (fileno (ibfd->iostream), in_stat) != 0)
|
|
+ if (ibfd == NULL || bfd_stat (ibfd, in_stat) != 0)
|
|
{
|
|
bfd_nonfatal_message (input_filename, NULL, NULL, NULL);
|
|
status = 1;
|
|
diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-i386/i386.exp binutils-2.36.1-new/ld/testsuite/ld-i386/i386.exp
|
|
--- binutils-2.36.1/ld/testsuite/ld-i386/i386.exp 2021-01-18 16:00:36.000000000 +0100
|
|
+++ binutils-2.36.1-new/ld/testsuite/ld-i386/i386.exp 2021-02-13 18:13:20.401224360 +0100
|
|
@@ -1105,69 +1105,6 @@ if { [isnative]
|
|
{pass.c property-stack.S} \
|
|
"property-3-static" "pass.out" \
|
|
] \
|
|
- [list \
|
|
- "Run property 3" \
|
|
- "" \
|
|
- "-Wa,-mx86-used-note=yes" \
|
|
- {pass.c property-stack.S property-x86-1.S} \
|
|
- "property-3" "pass.out" \
|
|
- ] \
|
|
- [list \
|
|
- "Run property 3 (PIE)" \
|
|
- "-pie" \
|
|
- "-Wa,-mx86-used-note=yes" \
|
|
- {pass.c property-x86-1.S property-stack.S} \
|
|
- "property-3-pie" "pass.out" "-fPIE" \
|
|
- ] \
|
|
- [list \
|
|
- "Run property 3 (static)" \
|
|
- "-static" \
|
|
- "-Wa,-mx86-used-note=yes" \
|
|
- {property-x86-1.S pass.c property-stack.S} \
|
|
- "property-3-static" "pass.out" \
|
|
- ] \
|
|
- [list \
|
|
- "Run property 4" \
|
|
- "" \
|
|
- "-Wa,-mx86-used-note=yes" \
|
|
- {pass.c property-stack.S property-x86-1.S property-x86-2.S} \
|
|
- "property-4" "pass.out" \
|
|
- ] \
|
|
- [list \
|
|
- "Run property 4 (PIE)" \
|
|
- "-pie" \
|
|
- "-Wa,-mx86-used-note=yes" \
|
|
- {pass.c property-x86-2.S property-x86-1.S property-stack.S} \
|
|
- "property-4-pie" "pass.out" "-fPIE" \
|
|
- ] \
|
|
- [list \
|
|
- "Run property 4 (static)" \
|
|
- "-static" \
|
|
- "-Wa,-mx86-used-note=yes" \
|
|
- {property-x86-2.S property-x86-1.S pass.c property-stack.S} \
|
|
- "property-4-static" "pass.out" \
|
|
- ] \
|
|
- [list \
|
|
- "Run property 5" \
|
|
- "-Wl,-z,stack-size=0x900000" \
|
|
- "-Wa,-mx86-used-note=yes" \
|
|
- {pass.c property-stack.S property-x86-1.S property-x86-2.S} \
|
|
- "property-5" "pass.out" \
|
|
- ] \
|
|
- [list \
|
|
- "Run property 5 (PIE)" \
|
|
- "-pie -Wl,-z,stack-size=0x900000" \
|
|
- "-Wa,-mx86-used-note=yes" \
|
|
- {pass.c property-x86-2.S property-x86-1.S property-stack.S} \
|
|
- "property-5-pie" "pass.out" "-fPIE" \
|
|
- ] \
|
|
- [list \
|
|
- "Run property 5 (static)" \
|
|
- "-static -Wl,-z,stack-size=0x900000" \
|
|
- "-Wa,-mx86-used-note=yes" \
|
|
- {property-x86-2.S property-x86-1.S pass.c property-stack.S} \
|
|
- "property-5-static" "pass.out" \
|
|
- ] \
|
|
]
|
|
|
|
undefined_weak "$NOPIE_CFLAGS" "$NOPIE_LDFLAGS"
|
|
diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-x86-64/x86-64.exp binutils-2.36.1-new/ld/testsuite/ld-x86-64/x86-64.exp
|
|
--- binutils-2.36.1/ld/testsuite/ld-x86-64/x86-64.exp 2021-01-11 13:43:47.000000000 +0100
|
|
+++ binutils-2.36.1-new/ld/testsuite/ld-x86-64/x86-64.exp 2021-02-13 18:13:20.401224360 +0100
|
|
@@ -1583,69 +1583,6 @@ if { [isnative] && [check_compiler_avail
|
|
"property-3-static" "pass.out" \
|
|
] \
|
|
[list \
|
|
- "Run property 3" \
|
|
- "" \
|
|
- "-Wa,-mx86-used-note=yes" \
|
|
- {pass.c property-stack.S property-x86-1.S} \
|
|
- "property-3" "pass.out" \
|
|
- ] \
|
|
- [list \
|
|
- "Run property 3 (PIE)" \
|
|
- "-pie" \
|
|
- "-Wa,-mx86-used-note=yes" \
|
|
- {pass.c property-x86-1.S property-stack.S} \
|
|
- "property-3-pie" "pass.out" "-fPIE" \
|
|
- ] \
|
|
- [list \
|
|
- "Run property 3 (static)" \
|
|
- "-static" \
|
|
- "-Wa,-mx86-used-note=yes" \
|
|
- {property-x86-1.S pass.c property-stack.S} \
|
|
- "property-3-static" "pass.out" \
|
|
- ] \
|
|
- [list \
|
|
- "Run property 4" \
|
|
- "" \
|
|
- "-Wa,-mx86-used-note=yes" \
|
|
- {pass.c property-stack.S property-x86-1.S property-x86-2.S} \
|
|
- "property-4" "pass.out" \
|
|
- ] \
|
|
- [list \
|
|
- "Run property 4 (PIE)" \
|
|
- "-pie" \
|
|
- "-Wa,-mx86-used-note=yes" \
|
|
- {pass.c property-x86-2.S property-x86-1.S property-stack.S} \
|
|
- "property-4-pie" "pass.out" "-fPIE" \
|
|
- ] \
|
|
- [list \
|
|
- "Run property 4 (static)" \
|
|
- "-static" \
|
|
- "-Wa,-mx86-used-note=yes" \
|
|
- {property-x86-2.S property-x86-1.S pass.c property-stack.S} \
|
|
- "property-4-static" "pass.out" \
|
|
- ] \
|
|
- [list \
|
|
- "Run property 5" \
|
|
- "-Wl,-z,stack-size=0x900000" \
|
|
- "-Wa,-mx86-used-note=yes" \
|
|
- {pass.c property-stack.S property-x86-1.S property-x86-2.S} \
|
|
- "property-5" "pass.out" \
|
|
- ] \
|
|
- [list \
|
|
- "Run property 5 (PIE)" \
|
|
- "-pie -Wl,-z,stack-size=0x900000" \
|
|
- "-Wa,-mx86-used-note=yes" \
|
|
- {pass.c property-x86-2.S property-x86-1.S property-stack.S} \
|
|
- "property-5-pie" "pass.out" "-fPIE" \
|
|
- ] \
|
|
- [list \
|
|
- "Run property 5 (static)" \
|
|
- "-static -Wl,-z,stack-size=0x900000" \
|
|
- "-Wa,-mx86-used-note=yes" \
|
|
- {property-x86-2.S property-x86-1.S pass.c property-stack.S} \
|
|
- "property-5-static" "pass.out" \
|
|
- ] \
|
|
- [list \
|
|
"Run pr22001-1a (PIC 1)" \
|
|
"$NOPIE_LDFLAGS -Wl,-z,nocopyreloc,--no-as-needed tmpdir/pr22001-1.so" \
|
|
"-Wa,-mx86-used-note=yes" \
|