|
|
0c89c8 |
diff -rupN --no-dereference binutils-2.37/gold/main.cc binutils-2.37-new/gold/main.cc
|
|
|
0c89c8 |
--- binutils-2.37/gold/main.cc 2021-07-08 13:37:20.000000000 +0200
|
|
|
0c89c8 |
+++ binutils-2.37-new/gold/main.cc 2021-07-24 21:59:28.964707019 +0200
|
|
|
0c89c8 |
@@ -290,16 +290,6 @@ main(int argc, char** argv)
|
|
|
0c89c8 |
elapsed.sys / 1000, (elapsed.sys % 1000) * 1000,
|
|
|
0c89c8 |
elapsed.wall / 1000, (elapsed.wall % 1000) * 1000);
|
|
|
0c89c8 |
|
|
|
0c89c8 |
-#if defined(HAVE_MALLINFO2)
|
|
|
0c89c8 |
- struct mallinfo2 m = mallinfo2();
|
|
|
0c89c8 |
- fprintf(stderr, _("%s: total space allocated by malloc: %lld bytes\n"),
|
|
|
0c89c8 |
- program_name, static_cast<long long>(m.arena));
|
|
|
0c89c8 |
-#elif defined(HAVE_MALLINFO)
|
|
|
0c89c8 |
- struct mallinfo m = mallinfo();
|
|
|
0c89c8 |
- fprintf(stderr, _("%s: total space allocated by malloc: %lld bytes\n"),
|
|
|
0c89c8 |
- program_name, static_cast<long long>(m.arena));
|
|
|
0c89c8 |
-#endif
|
|
|
0c89c8 |
-
|
|
|
0c89c8 |
File_read::print_stats();
|
|
|
0c89c8 |
Archive::print_stats();
|
|
|
0c89c8 |
Lib_group::print_stats();
|
|
|
0c89c8 |
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-aarch64/tls-relax-gdesc-le-now.d binutils-2.37-new/ld/testsuite/ld-aarch64/tls-relax-gdesc-le-now.d
|
|
|
0c89c8 |
--- binutils-2.37/ld/testsuite/ld-aarch64/tls-relax-gdesc-le-now.d 2021-07-08 13:37:20.000000000 +0200
|
|
|
0c89c8 |
+++ binutils-2.37-new/ld/testsuite/ld-aarch64/tls-relax-gdesc-le-now.d 2021-07-24 21:59:28.964707019 +0200
|
|
|
0c89c8 |
@@ -11,7 +11,7 @@
|
|
|
0c89c8 |
0x.+ \(PLTRELSZ\) \s+.+ \(bytes\)
|
|
|
0c89c8 |
0x.+ \(PLTREL\) \s+RELA
|
|
|
0c89c8 |
0x.+ \(JMPREL\) \s+0x.+
|
|
|
0c89c8 |
- 0x.+ \(BIND_NOW\) \s+
|
|
|
0c89c8 |
+ 0x.+ \(FLAGS\) \s+BIND_NOW
|
|
|
0c89c8 |
0x.+ \(FLAGS_1\) \s+ Flags: NOW
|
|
|
0c89c8 |
0x.+ \(NULL\) \s+ 0x0
|
|
|
0c89c8 |
|
|
|
0c89c8 |
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-aarch64/variant_pcs-now.d binutils-2.37-new/ld/testsuite/ld-aarch64/variant_pcs-now.d
|
|
|
0c89c8 |
--- binutils-2.37/ld/testsuite/ld-aarch64/variant_pcs-now.d 2021-07-08 13:37:20.000000000 +0200
|
|
|
0c89c8 |
+++ binutils-2.37-new/ld/testsuite/ld-aarch64/variant_pcs-now.d 2021-07-24 21:59:28.965707009 +0200
|
|
|
0c89c8 |
@@ -23,10 +23,10 @@ Symbol table '\.dynsym' contains 7 entri
|
|
|
0c89c8 |
Num: Value Size Type Bind Vis Ndx Name
|
|
|
0c89c8 |
0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND
|
|
|
0c89c8 |
1: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND f_base_global_default_undef
|
|
|
0c89c8 |
- 2: 0000000000000000 0 NOTYPE GLOBAL DEFAULT \[VARIANT_PCS\] UND f_spec_global_default_undef
|
|
|
0c89c8 |
- 3: 0000000000008000 0 IFUNC GLOBAL DEFAULT \[VARIANT_PCS\] 1 f_spec_global_default_ifunc
|
|
|
0c89c8 |
+ 2: 0000000000000000 0 NOTYPE GLOBAL DEFAULT[ ]+UND f_spec_global_default_undef[ ]+\[VARIANT_PCS\]
|
|
|
0c89c8 |
+ 3: 0000000000008000 0 IFUNC GLOBAL DEFAULT[ ]+1 f_spec_global_default_ifunc[ ]+\[VARIANT_PCS\]
|
|
|
0c89c8 |
4: 0000000000008000 0 NOTYPE GLOBAL DEFAULT 1 f_base_global_default_def
|
|
|
0c89c8 |
- 5: 0000000000008000 0 NOTYPE GLOBAL DEFAULT \[VARIANT_PCS\] 1 f_spec_global_default_def
|
|
|
0c89c8 |
+ 5: 0000000000008000 0 NOTYPE GLOBAL DEFAULT[ ]+1 f_spec_global_default_def[ ]+\[VARIANT_PCS\]
|
|
|
0c89c8 |
6: 0000000000008000 0 IFUNC GLOBAL DEFAULT 1 f_base_global_default_ifunc
|
|
|
0c89c8 |
|
|
|
0c89c8 |
Symbol table '\.symtab' contains 35 entries:
|
|
|
0c89c8 |
@@ -41,28 +41,28 @@ Symbol table '\.symtab' contains 35 entr
|
|
|
0c89c8 |
7: 00000000000111c8 0 SECTION LOCAL DEFAULT 7.*
|
|
|
0c89c8 |
8: 0000000000011270 0 SECTION LOCAL DEFAULT 8.*
|
|
|
0c89c8 |
9: 0000000000000000 0 FILE LOCAL DEFAULT ABS .*variant_pcs-1\.o
|
|
|
0c89c8 |
- 10: 0000000000008000 0 NOTYPE LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_local
|
|
|
0c89c8 |
- 11: 0000000000008000 0 IFUNC LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_local_ifunc
|
|
|
0c89c8 |
+ 10: 0000000000008000 0 NOTYPE LOCAL DEFAULT .*
|
|
|
0c89c8 |
+ 11: 0000000000008000 0 IFUNC LOCAL DEFAULT .*
|
|
|
0c89c8 |
12: 0000000000008000 0 IFUNC LOCAL DEFAULT 1 f_base_local_ifunc
|
|
|
0c89c8 |
13: 0000000000008000 0 NOTYPE LOCAL DEFAULT 1 f_base_local
|
|
|
0c89c8 |
14: 0000000000008000 0 NOTYPE LOCAL DEFAULT 1 \$x
|
|
|
0c89c8 |
15: 0000000000000000 0 FILE LOCAL DEFAULT ABS .*variant_pcs-2\.o
|
|
|
0c89c8 |
- 16: 0000000000008038 0 NOTYPE LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_local2
|
|
|
0c89c8 |
- 17: 0000000000008038 0 IFUNC LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_local2_ifunc
|
|
|
0c89c8 |
+ 16: 0000000000008038 0 NOTYPE LOCAL DEFAULT .*
|
|
|
0c89c8 |
+ 17: 0000000000008038 0 IFUNC LOCAL DEFAULT .*
|
|
|
0c89c8 |
18: 0000000000008038 0 IFUNC LOCAL DEFAULT 1 f_base_local2_ifunc
|
|
|
0c89c8 |
19: 0000000000008038 0 NOTYPE LOCAL DEFAULT 1 f_base_local2
|
|
|
0c89c8 |
20: 0000000000008038 0 NOTYPE LOCAL DEFAULT 1 \$x
|
|
|
0c89c8 |
21: 0000000000000000 0 FILE LOCAL DEFAULT ABS
|
|
|
0c89c8 |
22: 0000000000009080 0 OBJECT LOCAL DEFAULT ABS _DYNAMIC
|
|
|
0c89c8 |
- 23: 0000000000008000 0 NOTYPE LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_global_hidden_def
|
|
|
0c89c8 |
+ 23: 0000000000008000 0 NOTYPE LOCAL DEFAULT .*
|
|
|
0c89c8 |
24: 0000000000008000 0 IFUNC LOCAL DEFAULT 1 f_base_global_hidden_ifunc
|
|
|
0c89c8 |
25: 0000000000008000 0 NOTYPE LOCAL DEFAULT 1 f_base_global_hidden_def
|
|
|
0c89c8 |
26: 0000000000009000 0 OBJECT LOCAL DEFAULT ABS _GLOBAL_OFFSET_TABLE_
|
|
|
0c89c8 |
- 27: 0000000000008000 0 IFUNC LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_global_hidden_ifunc
|
|
|
0c89c8 |
+ 27: 0000000000008000 0 IFUNC LOCAL DEFAULT .*
|
|
|
0c89c8 |
28: 0000000000008070 0 NOTYPE LOCAL DEFAULT 2 \$x
|
|
|
0c89c8 |
29: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND f_base_global_default_undef
|
|
|
0c89c8 |
- 30: 0000000000000000 0 NOTYPE GLOBAL DEFAULT \[VARIANT_PCS\] UND f_spec_global_default_undef
|
|
|
0c89c8 |
- 31: 0000000000008000 0 IFUNC GLOBAL DEFAULT \[VARIANT_PCS\] 1 f_spec_global_default_ifunc
|
|
|
0c89c8 |
+ 30: 0000000000000000 0 NOTYPE GLOBAL DEFAULT .*
|
|
|
0c89c8 |
+ 31: 0000000000008000 0 IFUNC GLOBAL DEFAULT .*
|
|
|
0c89c8 |
32: 0000000000008000 0 NOTYPE GLOBAL DEFAULT 1 f_base_global_default_def
|
|
|
0c89c8 |
- 33: 0000000000008000 0 NOTYPE GLOBAL DEFAULT \[VARIANT_PCS\] 1 f_spec_global_default_def
|
|
|
0c89c8 |
+ 33: 0000000000008000 0 NOTYPE GLOBAL DEFAULT .*
|
|
|
0c89c8 |
34: 0000000000008000 0 IFUNC GLOBAL DEFAULT 1 f_base_global_default_ifunc
|
|
|
0c89c8 |
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-aarch64/variant_pcs-r.d binutils-2.37-new/ld/testsuite/ld-aarch64/variant_pcs-r.d
|
|
|
0c89c8 |
--- binutils-2.37/ld/testsuite/ld-aarch64/variant_pcs-r.d 2021-07-08 13:37:20.000000000 +0200
|
|
|
0c89c8 |
+++ binutils-2.37-new/ld/testsuite/ld-aarch64/variant_pcs-r.d 2021-07-24 21:59:28.965707009 +0200
|
|
|
0c89c8 |
@@ -37,24 +37,24 @@ Symbol table '\.symtab' contains 26 entr
|
|
|
0c89c8 |
2: 0000000000000000 0 SECTION LOCAL DEFAULT 3.*
|
|
|
0c89c8 |
3: 0000000000000000 0 SECTION LOCAL DEFAULT 4.*
|
|
|
0c89c8 |
4: 0000000000000000 0 FILE LOCAL DEFAULT ABS .*variant_pcs-1\.o
|
|
|
0c89c8 |
- 5: 0000000000000000 0 NOTYPE LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_local
|
|
|
0c89c8 |
- 6: 0000000000000000 0 IFUNC LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_local_ifunc
|
|
|
0c89c8 |
+ 5: 0000000000000000 0 NOTYPE LOCAL DEFAULT .*
|
|
|
0c89c8 |
+ 6: 0000000000000000 0 IFUNC LOCAL DEFAULT .*
|
|
|
0c89c8 |
7: 0000000000000000 0 IFUNC LOCAL DEFAULT 1 f_base_local_ifunc
|
|
|
0c89c8 |
8: 0000000000000000 0 NOTYPE LOCAL DEFAULT 1 f_base_local
|
|
|
0c89c8 |
9: 0000000000000000 0 NOTYPE LOCAL DEFAULT 1 \$x
|
|
|
0c89c8 |
10: 0000000000000000 0 FILE LOCAL DEFAULT ABS .*variant_pcs-2\.o
|
|
|
0c89c8 |
- 11: 0000000000000038 0 NOTYPE LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_local2
|
|
|
0c89c8 |
- 12: 0000000000000038 0 IFUNC LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_local2_ifunc
|
|
|
0c89c8 |
+ 11: 0000000000000038 0 NOTYPE LOCAL DEFAULT .*
|
|
|
0c89c8 |
+ 12: 0000000000000038 0 IFUNC LOCAL DEFAULT .*
|
|
|
0c89c8 |
13: 0000000000000038 0 IFUNC LOCAL DEFAULT 1 f_base_local2_ifunc
|
|
|
0c89c8 |
14: 0000000000000038 0 NOTYPE LOCAL DEFAULT 1 f_base_local2
|
|
|
0c89c8 |
15: 0000000000000038 0 NOTYPE LOCAL DEFAULT 1 \$x
|
|
|
0c89c8 |
16: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND f_base_global_default_undef
|
|
|
0c89c8 |
- 17: 0000000000000000 0 NOTYPE GLOBAL DEFAULT \[VARIANT_PCS\] UND f_spec_global_default_undef
|
|
|
0c89c8 |
- 18: 0000000000000000 0 NOTYPE GLOBAL HIDDEN \[VARIANT_PCS\] 1 f_spec_global_hidden_def
|
|
|
0c89c8 |
+ 17: 0000000000000000 0 NOTYPE GLOBAL DEFAULT .*
|
|
|
0c89c8 |
+ 18: 0000000000000000 0 NOTYPE GLOBAL HIDDEN .*
|
|
|
0c89c8 |
19: 0000000000000000 0 IFUNC GLOBAL HIDDEN 1 f_base_global_hidden_ifunc
|
|
|
0c89c8 |
- 20: 0000000000000000 0 IFUNC GLOBAL DEFAULT \[VARIANT_PCS\] 1 f_spec_global_default_ifunc
|
|
|
0c89c8 |
+ 20: 0000000000000000 0 IFUNC GLOBAL DEFAULT .*
|
|
|
0c89c8 |
21: 0000000000000000 0 NOTYPE GLOBAL HIDDEN 1 f_base_global_hidden_def
|
|
|
0c89c8 |
- 22: 0000000000000000 0 IFUNC GLOBAL HIDDEN \[VARIANT_PCS\] 1 f_spec_global_hidden_ifunc
|
|
|
0c89c8 |
+ 22: 0000000000000000 0 IFUNC GLOBAL HIDDEN .*
|
|
|
0c89c8 |
23: 0000000000000000 0 NOTYPE GLOBAL DEFAULT 1 f_base_global_default_def
|
|
|
0c89c8 |
- 24: 0000000000000000 0 NOTYPE GLOBAL DEFAULT \[VARIANT_PCS\] 1 f_spec_global_default_def
|
|
|
0c89c8 |
+ 24: 0000000000000000 0 NOTYPE GLOBAL DEFAULT .*
|
|
|
0c89c8 |
25: 0000000000000000 0 IFUNC GLOBAL DEFAULT 1 f_base_global_default_ifunc
|
|
|
0c89c8 |
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-aarch64/variant_pcs-shared.d binutils-2.37-new/ld/testsuite/ld-aarch64/variant_pcs-shared.d
|
|
|
0c89c8 |
--- binutils-2.37/ld/testsuite/ld-aarch64/variant_pcs-shared.d 2021-07-08 13:37:20.000000000 +0200
|
|
|
0c89c8 |
+++ binutils-2.37-new/ld/testsuite/ld-aarch64/variant_pcs-shared.d 2021-07-24 21:59:28.978706882 +0200
|
|
|
0c89c8 |
@@ -23,10 +23,10 @@ Symbol table '\.dynsym' contains 7 entri
|
|
|
0c89c8 |
Num: Value Size Type Bind Vis Ndx Name
|
|
|
0c89c8 |
0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND
|
|
|
0c89c8 |
1: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND f_base_global_default_undef
|
|
|
0c89c8 |
- 2: 0000000000000000 0 NOTYPE GLOBAL DEFAULT \[VARIANT_PCS\] UND f_spec_global_default_undef
|
|
|
0c89c8 |
- 3: 0000000000008000 0 IFUNC GLOBAL DEFAULT \[VARIANT_PCS\] 1 f_spec_global_default_ifunc
|
|
|
0c89c8 |
+ 2: 0000000000000000 0 NOTYPE GLOBAL DEFAULT[ ]+UND f_spec_global_default_undef[ ]+\[VARIANT_PCS\]
|
|
|
0c89c8 |
+ 3: 0000000000008000 0 IFUNC GLOBAL DEFAULT[ ]+1 f_spec_global_default_ifunc[ ]+\[VARIANT_PCS\]
|
|
|
0c89c8 |
4: 0000000000008000 0 NOTYPE GLOBAL DEFAULT 1 f_base_global_default_def
|
|
|
0c89c8 |
- 5: 0000000000008000 0 NOTYPE GLOBAL DEFAULT \[VARIANT_PCS\] 1 f_spec_global_default_def
|
|
|
0c89c8 |
+ 5: 0000000000008000 0 NOTYPE GLOBAL DEFAULT[ ]+1 f_spec_global_default_def[ ]+\[VARIANT_PCS\]
|
|
|
0c89c8 |
6: 0000000000008000 0 IFUNC GLOBAL DEFAULT 1 f_base_global_default_ifunc
|
|
|
0c89c8 |
|
|
|
0c89c8 |
Symbol table '\.symtab' contains 35 entries:
|
|
|
0c89c8 |
@@ -41,28 +41,28 @@ Symbol table '\.symtab' contains 35 entr
|
|
|
0c89c8 |
7: 00000000000111c8 0 SECTION LOCAL DEFAULT 7.*
|
|
|
0c89c8 |
8: 0000000000011270 0 SECTION LOCAL DEFAULT 8.*
|
|
|
0c89c8 |
9: 0000000000000000 0 FILE LOCAL DEFAULT ABS .*variant_pcs-1\.o
|
|
|
0c89c8 |
- 10: 0000000000008000 0 NOTYPE LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_local
|
|
|
0c89c8 |
- 11: 0000000000008000 0 IFUNC LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_local_ifunc
|
|
|
0c89c8 |
+ 10: 0000000000008000 0 NOTYPE LOCAL DEFAULT .*
|
|
|
0c89c8 |
+ 11: 0000000000008000 0 IFUNC LOCAL DEFAULT .*
|
|
|
0c89c8 |
12: 0000000000008000 0 IFUNC LOCAL DEFAULT 1 f_base_local_ifunc
|
|
|
0c89c8 |
13: 0000000000008000 0 NOTYPE LOCAL DEFAULT 1 f_base_local
|
|
|
0c89c8 |
14: 0000000000008000 0 NOTYPE LOCAL DEFAULT 1 \$x
|
|
|
0c89c8 |
15: 0000000000000000 0 FILE LOCAL DEFAULT ABS .*variant_pcs-2\.o
|
|
|
0c89c8 |
- 16: 0000000000008038 0 NOTYPE LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_local2
|
|
|
0c89c8 |
- 17: 0000000000008038 0 IFUNC LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_local2_ifunc
|
|
|
0c89c8 |
+ 16: 0000000000008038 0 NOTYPE LOCAL DEFAULT .*
|
|
|
0c89c8 |
+ 17: 0000000000008038 0 IFUNC LOCAL DEFAULT .*
|
|
|
0c89c8 |
18: 0000000000008038 0 IFUNC LOCAL DEFAULT 1 f_base_local2_ifunc
|
|
|
0c89c8 |
19: 0000000000008038 0 NOTYPE LOCAL DEFAULT 1 f_base_local2
|
|
|
0c89c8 |
20: 0000000000008038 0 NOTYPE LOCAL DEFAULT 1 \$x
|
|
|
0c89c8 |
21: 0000000000000000 0 FILE LOCAL DEFAULT ABS
|
|
|
0c89c8 |
22: 0000000000009080 0 OBJECT LOCAL DEFAULT ABS _DYNAMIC
|
|
|
0c89c8 |
- 23: 0000000000008000 0 NOTYPE LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_global_hidden_def
|
|
|
0c89c8 |
+ 23: 0000000000008000 0 NOTYPE LOCAL DEFAULT .*
|
|
|
0c89c8 |
24: 0000000000008000 0 IFUNC LOCAL DEFAULT 1 f_base_global_hidden_ifunc
|
|
|
0c89c8 |
25: 0000000000008000 0 NOTYPE LOCAL DEFAULT 1 f_base_global_hidden_def
|
|
|
0c89c8 |
26: 0000000000009000 0 OBJECT LOCAL DEFAULT ABS _GLOBAL_OFFSET_TABLE_
|
|
|
0c89c8 |
- 27: 0000000000008000 0 IFUNC LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_global_hidden_ifunc
|
|
|
0c89c8 |
+ 27: 0000000000008000 0 IFUNC LOCAL DEFAULT .*
|
|
|
0c89c8 |
28: 0000000000008070 0 NOTYPE LOCAL DEFAULT 2 \$x
|
|
|
0c89c8 |
29: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND f_base_global_default_undef
|
|
|
0c89c8 |
- 30: 0000000000000000 0 NOTYPE GLOBAL DEFAULT \[VARIANT_PCS\] UND f_spec_global_default_undef
|
|
|
0c89c8 |
- 31: 0000000000008000 0 IFUNC GLOBAL DEFAULT \[VARIANT_PCS\] 1 f_spec_global_default_ifunc
|
|
|
0c89c8 |
+ 30: 0000000000000000 0 NOTYPE GLOBAL DEFAULT .*
|
|
|
0c89c8 |
+ 31: 0000000000008000 0 IFUNC GLOBAL DEFAULT .*
|
|
|
0c89c8 |
32: 0000000000008000 0 NOTYPE GLOBAL DEFAULT 1 f_base_global_default_def
|
|
|
0c89c8 |
- 33: 0000000000008000 0 NOTYPE GLOBAL DEFAULT \[VARIANT_PCS\] 1 f_spec_global_default_def
|
|
|
0c89c8 |
+ 33: 0000000000008000 0 NOTYPE GLOBAL DEFAULT .*
|
|
|
0c89c8 |
34: 0000000000008000 0 IFUNC GLOBAL DEFAULT 1 f_base_global_default_ifunc
|
|
|
0c89c8 |
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-elf/compress.exp binutils-2.37-new/ld/testsuite/ld-elf/compress.exp
|
|
|
0c89c8 |
--- binutils-2.37/ld/testsuite/ld-elf/compress.exp 2021-07-08 13:37:20.000000000 +0200
|
|
|
0c89c8 |
+++ binutils-2.37-new/ld/testsuite/ld-elf/compress.exp 2021-07-24 21:59:28.978706882 +0200
|
|
|
0c89c8 |
@@ -167,8 +167,8 @@ if { [regexp_diff tmpdir/$test.out $srcd
|
|
|
0c89c8 |
|
|
|
0c89c8 |
set test_name "Link with zlib compressed debug output 1"
|
|
|
0c89c8 |
set test normal
|
|
|
0c89c8 |
-send_log "$READELF -w tmpdir/$test > tmpdir/$test.out\n"
|
|
|
0c89c8 |
-set got [remote_exec host [concat sh -c [list "$READELF -w tmpdir/$test > tmpdir/$test.out"]] "" "/dev/null"]
|
|
|
0c89c8 |
+send_log "$READELF -wi tmpdir/$test > tmpdir/$test.out\n"
|
|
|
0c89c8 |
+set got [remote_exec host [concat sh -c [list "$READELF -wi tmpdir/$test > tmpdir/$test.out"]] "" "/dev/null"]
|
|
|
0c89c8 |
if { [lindex $got 0] != 0 || ![string match "" [lindex $got 1]] } then {
|
|
|
0c89c8 |
send_log "$got\n"
|
|
|
0c89c8 |
fail "$test_name"
|
|
|
0c89c8 |
@@ -176,8 +176,8 @@ if { [lindex $got 0] != 0 || ![string ma
|
|
|
0c89c8 |
|
|
|
0c89c8 |
set test_name "Link with zlib compressed debug output 2"
|
|
|
0c89c8 |
set test zlibnormal
|
|
|
0c89c8 |
-send_log "$READELF -w tmpdir/$test | sed -e \"s/.zdebug_/.debug_/\" > tmpdir/$test.out\n"
|
|
|
0c89c8 |
-set got [remote_exec host [concat sh -c [list "$READELF -w tmpdir/$test | sed -e \"s/.zdebug_/.debug_/\" > tmpdir/$test.out"]] "" "/dev/null"]
|
|
|
0c89c8 |
+send_log "$READELF -wi tmpdir/$test | sed -e \"s/.zdebug_/.debug_/\" > tmpdir/$test.out\n"
|
|
|
0c89c8 |
+set got [remote_exec host [concat sh -c [list "$READELF -wi tmpdir/$test | sed -e \"s/.zdebug_/.debug_/\" > tmpdir/$test.out"]] "" "/dev/null"]
|
|
|
0c89c8 |
if { [lindex $got 0] != 0 || ![string match "" [lindex $got 1]] } then {
|
|
|
0c89c8 |
send_log "$got\n"
|
|
|
0c89c8 |
fail "$test_name"
|
|
|
0c89c8 |
@@ -203,8 +203,8 @@ if { [regexp_diff tmpdir/$test.out $srcd
|
|
|
0c89c8 |
|
|
|
0c89c8 |
set test_name "Link with zlib-gnu compressed debug output 1"
|
|
|
0c89c8 |
set test gnunormal
|
|
|
0c89c8 |
-send_log "$READELF -w tmpdir/$test | sed -e \"s/.zdebug_/.debug_/\" > tmpdir/$test.out\n"
|
|
|
0c89c8 |
-set got [remote_exec host [concat sh -c [list "$READELF -w tmpdir/$test | sed -e \"s/.zdebug_/.debug_/\" > tmpdir/$test.out"]] "" "/dev/null"]
|
|
|
0c89c8 |
+send_log "$READELF -wi tmpdir/$test | sed -e \"s/.zdebug_/.debug_/\" > tmpdir/$test.out\n"
|
|
|
0c89c8 |
+set got [remote_exec host [concat sh -c [list "$READELF -wi tmpdir/$test | sed -e \"s/.zdebug_/.debug_/\" > tmpdir/$test.out"]] "" "/dev/null"]
|
|
|
0c89c8 |
if { [lindex $got 0] != 0 || ![string match "" [lindex $got 1]] } then {
|
|
|
0c89c8 |
send_log "$got\n"
|
|
|
0c89c8 |
fail "$test_name"
|
|
|
0c89c8 |
@@ -230,8 +230,8 @@ if { [regexp_diff tmpdir/$test.out $srcd
|
|
|
0c89c8 |
|
|
|
0c89c8 |
set test gabinormal
|
|
|
0c89c8 |
set test_name "Link with zlib-gabi compressed debug output 1"
|
|
|
0c89c8 |
-send_log "$READELF -w tmpdir/$test > tmpdir/$test.out\n"
|
|
|
0c89c8 |
-set got [remote_exec host [concat sh -c [list "$READELF -w tmpdir/$test > tmpdir/$test.out"]] "" "/dev/null"]
|
|
|
0c89c8 |
+send_log "$READELF -wi tmpdir/$test > tmpdir/$test.out\n"
|
|
|
0c89c8 |
+set got [remote_exec host [concat sh -c [list "$READELF -wi tmpdir/$test > tmpdir/$test.out"]] "" "/dev/null"]
|
|
|
0c89c8 |
if { [lindex $got 0] != 0 || ![string match "" [lindex $got 1]] } then {
|
|
|
0c89c8 |
send_log "$got\n"
|
|
|
0c89c8 |
fail "$test_name"
|
|
|
0c89c8 |
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-elf/pr26580-3.out binutils-2.37-new/ld/testsuite/ld-elf/pr26580-3.out
|
|
|
0c89c8 |
--- binutils-2.37/ld/testsuite/ld-elf/pr26580-3.out 2021-07-08 13:37:20.000000000 +0200
|
|
|
0c89c8 |
+++ binutils-2.37-new/ld/testsuite/ld-elf/pr26580-3.out 2021-07-24 21:59:28.979706873 +0200
|
|
|
0c89c8 |
@@ -1,2 +1,2 @@
|
|
|
0c89c8 |
library not loaded
|
|
|
0c89c8 |
-alignment 1
|
|
|
0c89c8 |
+alignment .
|
|
|
0c89c8 |
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-elf/shared.exp binutils-2.37-new/ld/testsuite/ld-elf/shared.exp
|
|
|
0c89c8 |
--- binutils-2.37/ld/testsuite/ld-elf/shared.exp 2021-07-08 13:37:20.000000000 +0200
|
|
|
0c89c8 |
+++ binutils-2.37-new/ld/testsuite/ld-elf/shared.exp 2021-07-24 21:59:28.979706873 +0200
|
|
|
0c89c8 |
@@ -1536,18 +1536,6 @@ if { [istarget *-*-linux*]
|
|
|
0c89c8 |
"pr22393-2-static" \
|
|
|
0c89c8 |
"pass.out" \
|
|
|
0c89c8 |
] \
|
|
|
0c89c8 |
- [list \
|
|
|
0c89c8 |
- "Run pr21964-4" \
|
|
|
0c89c8 |
- "" \
|
|
|
0c89c8 |
- "" \
|
|
|
0c89c8 |
- {pr21964-4.c} \
|
|
|
0c89c8 |
- "pr21964-4" \
|
|
|
0c89c8 |
- "pass.out" \
|
|
|
0c89c8 |
- "" \
|
|
|
0c89c8 |
- "" \
|
|
|
0c89c8 |
- "" \
|
|
|
0c89c8 |
- "-ldl" \
|
|
|
0c89c8 |
- ] \
|
|
|
0c89c8 |
]
|
|
|
0c89c8 |
}
|
|
|
0c89c8 |
|
|
|
0c89c8 |
@@ -1629,6 +1617,7 @@ if [istarget "sparc*-*-*"] {
|
|
|
0c89c8 |
if { ([istarget "*-*-linux*"]
|
|
|
0c89c8 |
|| [istarget "*-*-nacl*"]
|
|
|
0c89c8 |
|| [istarget "*-*-gnu*"])
|
|
|
0c89c8 |
+ && ![istarget "aarch64*-*-*"] && ![istarget "arm*-*-*"]
|
|
|
0c89c8 |
&& ![istarget "mips*-*-*"] } {
|
|
|
0c89c8 |
run_ld_link_tests [list \
|
|
|
0c89c8 |
[list \
|
|
|
0c89c8 |
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-elf/tls.exp binutils-2.37-new/ld/testsuite/ld-elf/tls.exp
|
|
|
0c89c8 |
--- binutils-2.37/ld/testsuite/ld-elf/tls.exp 2021-07-08 13:37:20.000000000 +0200
|
|
|
0c89c8 |
+++ binutils-2.37-new/ld/testsuite/ld-elf/tls.exp 2021-07-24 21:59:28.979706873 +0200
|
|
|
0c89c8 |
@@ -32,6 +32,9 @@ if { !([istarget *-*-linux*]
|
|
|
0c89c8 |
if { ![check_compiler_available] } {
|
|
|
0c89c8 |
return
|
|
|
0c89c8 |
}
|
|
|
0c89c8 |
+if { [istarget s390x*-*-*] } {
|
|
|
0c89c8 |
+ return
|
|
|
0c89c8 |
+}
|
|
|
0c89c8 |
|
|
|
0c89c8 |
# This target requires extra GAS options when building PIC/PIE code.
|
|
|
0c89c8 |
set AFLAGS_PIC ""
|
|
|
0c89c8 |
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-elfvsb/elfvsb.exp binutils-2.37-new/ld/testsuite/ld-elfvsb/elfvsb.exp
|
|
|
0c89c8 |
--- binutils-2.37/ld/testsuite/ld-elfvsb/elfvsb.exp 2021-07-08 13:37:20.000000000 +0200
|
|
|
0c89c8 |
+++ binutils-2.37-new/ld/testsuite/ld-elfvsb/elfvsb.exp 2021-07-24 21:59:28.980706863 +0200
|
|
|
0c89c8 |
@@ -94,6 +94,10 @@ if { [istarget *-*-linux*]
|
|
|
0c89c8 |
}
|
|
|
0c89c8 |
}
|
|
|
0c89c8 |
|
|
|
0c89c8 |
+if { [istarget i686*-*-*] } {
|
|
|
0c89c8 |
+ set support_protected "no"
|
|
|
0c89c8 |
+}
|
|
|
0c89c8 |
+
|
|
|
0c89c8 |
# The test procedure.
|
|
|
0c89c8 |
proc visibility_test { visibility progname testname main sh1 sh2 dat args } {
|
|
|
0c89c8 |
global CC
|
|
|
0c89c8 |
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-gc/pr13683.d binutils-2.37-new/ld/testsuite/ld-gc/pr13683.d
|
|
|
0c89c8 |
--- binutils-2.37/ld/testsuite/ld-gc/pr13683.d 2021-07-08 13:37:20.000000000 +0200
|
|
|
0c89c8 |
+++ binutils-2.37-new/ld/testsuite/ld-gc/pr13683.d 2021-07-24 21:59:28.980706863 +0200
|
|
|
0c89c8 |
@@ -2,7 +2,7 @@
|
|
|
0c89c8 |
#source: dummy.s
|
|
|
0c89c8 |
#ld: --gc-sections -e main --defsym foo=foo2 tmpdir/pr13683.o
|
|
|
0c89c8 |
#nm: --format=bsd
|
|
|
0c89c8 |
-#xfail: iq2000-*-* lm32-*-* epiphany-*-* mips64vr-*-* frv-*-* m32c-*-* rl78-*-* rx-*-* sh-*-* powerpc*-*-eabivle msp430-*-*
|
|
|
0c89c8 |
+#xfail: iq2000-*-* lm32-*-* epiphany-*-* mips64vr-*-* frv-*-* m32c-*-* rl78-*-* rx-*-* sh-*-* powerpc*-*-eabivle msp430-*-* aarch64*-*-* arm*-*-*
|
|
|
0c89c8 |
|
|
|
0c89c8 |
# Note - look for both "foo" and "foo2" being defined, non-zero function symbols
|
|
|
0c89c8 |
|
|
|
0c89c8 |
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-gc/pr19161.d binutils-2.37-new/ld/testsuite/ld-gc/pr19161.d
|
|
|
0c89c8 |
--- binutils-2.37/ld/testsuite/ld-gc/pr19161.d 2021-07-08 13:37:20.000000000 +0200
|
|
|
0c89c8 |
+++ binutils-2.37-new/ld/testsuite/ld-gc/pr19161.d 2021-07-24 21:59:28.980706863 +0200
|
|
|
0c89c8 |
@@ -2,7 +2,7 @@
|
|
|
0c89c8 |
#source: dummy.s
|
|
|
0c89c8 |
#ld: --gc-sections -e main tmpdir/pr19161-1.o tmpdir/pr19161-2.o
|
|
|
0c89c8 |
#nm: --format=bsd
|
|
|
0c89c8 |
-#xfail: epiphany-*-* frv-*-* iq2000-*-* lm32-*-* m32c-*-*
|
|
|
0c89c8 |
+#xfail: epiphany-*-* frv-*-* iq2000-*-* lm32-*-* m32c-*-* aarch64*-*-* arm*-*-*
|
|
|
0c89c8 |
#xfail: mips64vr-*-* msp430-*-* powerpc*-*-eabivle rl78-*-* rx-*-* sh*-*-*
|
|
|
0c89c8 |
|
|
|
0c89c8 |
#...
|
|
|
0c89c8 |
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-i386/i386.exp binutils-2.37-new/ld/testsuite/ld-i386/i386.exp
|
|
|
0c89c8 |
--- binutils-2.37/ld/testsuite/ld-i386/i386.exp 2021-07-08 13:37:20.000000000 +0200
|
|
|
0c89c8 |
+++ binutils-2.37-new/ld/testsuite/ld-i386/i386.exp 2021-07-24 21:59:28.981706853 +0200
|
|
|
0c89c8 |
@@ -1057,15 +1057,6 @@ if { [isnative]
|
|
|
0c89c8 |
"pr18900.out" \
|
|
|
0c89c8 |
] \
|
|
|
0c89c8 |
[list \
|
|
|
0c89c8 |
- "Run pr19031" \
|
|
|
0c89c8 |
- "$NOPIE_LDFLAGS tmpdir/pr19031.so" \
|
|
|
0c89c8 |
- "-Wa,-mx86-used-note=yes" \
|
|
|
0c89c8 |
- { pr19031b.S pr19031c.c } \
|
|
|
0c89c8 |
- "pr19031" \
|
|
|
0c89c8 |
- "pr19031.out" \
|
|
|
0c89c8 |
- "$NOPIE_CFLAGS" \
|
|
|
0c89c8 |
- ] \
|
|
|
0c89c8 |
- [list \
|
|
|
0c89c8 |
"Run got1" \
|
|
|
0c89c8 |
"$NOPIE_LDFLAGS tmpdir/got1d.so" \
|
|
|
0c89c8 |
"-Wa,-mx86-used-note=yes" \
|
|
|
0c89c8 |
@@ -1117,7 +1108,9 @@ if { [isnative]
|
|
|
0c89c8 |
] \
|
|
|
0c89c8 |
]
|
|
|
0c89c8 |
|
|
|
0c89c8 |
- undefined_weak "$NOPIE_CFLAGS" "$NOPIE_LDFLAGS"
|
|
|
0c89c8 |
+ if { ! [istarget i686*-*-*] } {
|
|
|
0c89c8 |
+ undefined_weak "$NOPIE_CFLAGS" "$NOPIE_LDFLAGS"
|
|
|
0c89c8 |
+ }
|
|
|
0c89c8 |
undefined_weak "-fPIE" "$NOPIE_LDFLAGS"
|
|
|
0c89c8 |
undefined_weak "-fPIE" "-pie"
|
|
|
0c89c8 |
undefined_weak "-fPIE" "-z nodynamic-undefined-weak $NOPIE_LDFLAGS"
|
|
|
0c89c8 |
@@ -1181,7 +1174,7 @@ if { [isnative]
|
|
|
0c89c8 |
] \
|
|
|
0c89c8 |
]
|
|
|
0c89c8 |
|
|
|
0c89c8 |
- if { [istarget "i?86-*-linux*"] } {
|
|
|
0c89c8 |
+ if { [istarget "i?86-*-linux*"] && ! [istarget i686*-*-*] } {
|
|
|
0c89c8 |
run_cc_link_tests [list \
|
|
|
0c89c8 |
[list \
|
|
|
0c89c8 |
"Build pr21168.so with -z ibtplt" \
|
|
|
0c89c8 |
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-i386/plt-main.rd binutils-2.37-new/ld/testsuite/ld-i386/plt-main.rd
|
|
|
0c89c8 |
--- binutils-2.37/ld/testsuite/ld-i386/plt-main.rd 2021-07-08 13:37:20.000000000 +0200
|
|
|
0c89c8 |
+++ binutils-2.37-new/ld/testsuite/ld-i386/plt-main.rd 2021-07-24 21:59:28.981706853 +0200
|
|
|
0c89c8 |
@@ -1,4 +1 @@
|
|
|
0c89c8 |
-#failif
|
|
|
0c89c8 |
-#...
|
|
|
0c89c8 |
-[0-9a-f ]+R_386_JUMP_SLOT +0+ +bar
|
|
|
0c89c8 |
#...
|
|
|
0c89c8 |
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-i386/plt-pie-ibt.dd binutils-2.37-new/ld/testsuite/ld-i386/plt-pie-ibt.dd
|
|
|
0c89c8 |
--- binutils-2.37/ld/testsuite/ld-i386/plt-pie-ibt.dd 2021-07-08 13:37:20.000000000 +0200
|
|
|
0c89c8 |
+++ binutils-2.37-new/ld/testsuite/ld-i386/plt-pie-ibt.dd 2021-07-24 21:59:28.981706853 +0200
|
|
|
0c89c8 |
@@ -1,7 +1,2 @@
|
|
|
0c89c8 |
#...
|
|
|
0c89c8 |
-Disassembly of section .plt.got:
|
|
|
0c89c8 |
-
|
|
|
0c89c8 |
-[a-f0-9]+ <[_a-z]+@plt>:
|
|
|
0c89c8 |
-[ ]*[a-f0-9]+: f3 0f 1e fb endbr32
|
|
|
0c89c8 |
-[ ]*[a-f0-9]+: ff a3 .. .. .. .. jmp +\*\-0x[a-f0-9]+\(%ebx\)
|
|
|
0c89c8 |
#pass
|
|
|
0c89c8 |
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-ifunc/ifunc.exp binutils-2.37-new/ld/testsuite/ld-ifunc/ifunc.exp
|
|
|
0c89c8 |
--- binutils-2.37/ld/testsuite/ld-ifunc/ifunc.exp 2021-07-08 13:37:20.000000000 +0200
|
|
|
0c89c8 |
+++ binutils-2.37-new/ld/testsuite/ld-ifunc/ifunc.exp 2021-07-24 21:59:28.981706853 +0200
|
|
|
0c89c8 |
@@ -39,6 +39,8 @@ if { ![is_elf_format] || ![supports_gnu_
|
|
|
0c89c8 |
|| [istarget nds32*-*-*]
|
|
|
0c89c8 |
|| [istarget nios2-*-*]
|
|
|
0c89c8 |
|| [istarget or1k-*-*]
|
|
|
0c89c8 |
+ || [istarget powerpc*-*-*]
|
|
|
0c89c8 |
+ || [istarget ppc*-*-*]
|
|
|
0c89c8 |
|| [istarget score*-*-*]
|
|
|
0c89c8 |
|| [istarget sh*-*-*]
|
|
|
0c89c8 |
|| [istarget tic6x-*-*]
|
|
|
0c89c8 |
@@ -664,6 +666,11 @@ run_cc_link_tests [list \
|
|
|
0c89c8 |
] \
|
|
|
0c89c8 |
]
|
|
|
0c89c8 |
|
|
|
0c89c8 |
+if { [isnative]
|
|
|
0c89c8 |
+ && !([istarget "powerpc-*-*"]
|
|
|
0c89c8 |
+ || [istarget "aarch64*-*-*"] || [istarget "arm*-*-*"]
|
|
|
0c89c8 |
+ || [istarget "sparc*-*-*"]
|
|
|
0c89c8 |
+ || [istarget "riscv*-*-*"]) } {
|
|
|
0c89c8 |
run_ld_link_exec_tests [list \
|
|
|
0c89c8 |
[list \
|
|
|
0c89c8 |
"Run pr18808" \
|
|
|
0c89c8 |
@@ -714,6 +721,7 @@ run_ld_link_exec_tests [list \
|
|
|
0c89c8 |
"pr18841.out" \
|
|
|
0c89c8 |
] \
|
|
|
0c89c8 |
]
|
|
|
0c89c8 |
+}
|
|
|
0c89c8 |
|
|
|
0c89c8 |
# The pr23169 testcase is not valid. In general, you can't call ifunc
|
|
|
0c89c8 |
# resolvers in another binary unless you know what you're doing. In
|
|
|
0c89c8 |
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-plugin/plugin-10.d binutils-2.37-new/ld/testsuite/ld-plugin/plugin-10.d
|
|
|
0c89c8 |
--- binutils-2.37/ld/testsuite/ld-plugin/plugin-10.d 2021-07-24 21:59:20.653787965 +0200
|
|
|
0c89c8 |
+++ binutils-2.37-new/ld/testsuite/ld-plugin/plugin-10.d 2021-07-24 21:59:28.982706843 +0200
|
|
|
0c89c8 |
@@ -32,7 +32,7 @@ hook called: claim_file tmpdir/func.o \[
|
|
|
0c89c8 |
hook called: claim_file tmpdir/libtext.a \[@.* not claimed
|
|
|
0c89c8 |
#...
|
|
|
0c89c8 |
hook called: all symbols read.
|
|
|
0c89c8 |
-Sym: '_?func' Resolution: LDPR_PREVAILING_DEF_IRONLY
|
|
|
0c89c8 |
+Sym: '_?func' Resolution: LDPR_PREVAILING_DE.*
|
|
|
0c89c8 |
Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
|
|
|
0c89c8 |
#...
|
|
|
0c89c8 |
hook called: cleanup.
|
|
|
0c89c8 |
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-plugin/plugin-11.d binutils-2.37-new/ld/testsuite/ld-plugin/plugin-11.d
|
|
|
0c89c8 |
--- binutils-2.37/ld/testsuite/ld-plugin/plugin-11.d 2021-07-24 21:59:20.653787965 +0200
|
|
|
0c89c8 |
+++ binutils-2.37-new/ld/testsuite/ld-plugin/plugin-11.d 2021-07-24 21:59:28.982706843 +0200
|
|
|
0c89c8 |
@@ -35,9 +35,9 @@ hook called: claim_file tmpdir/func.o \[
|
|
|
0c89c8 |
hook called: claim_file tmpdir/libtext.a \[@.* CLAIMED
|
|
|
0c89c8 |
#...
|
|
|
0c89c8 |
hook called: all symbols read.
|
|
|
0c89c8 |
-Sym: '_?func' Resolution: LDPR_PREVAILING_DEF_IRONLY
|
|
|
0c89c8 |
+Sym: '_?func' Resolution: LDPR_PREVAILING_DE.*
|
|
|
0c89c8 |
Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
|
|
|
0c89c8 |
-Sym: '_?text' Resolution: LDPR_PREVAILING_DEF_IRONLY
|
|
|
0c89c8 |
+Sym: '_?text' Resolution: LDPR_PREVAILING_DE.*
|
|
|
0c89c8 |
#...
|
|
|
0c89c8 |
hook called: cleanup.
|
|
|
0c89c8 |
#...
|
|
|
0c89c8 |
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-plugin/plugin-12.d binutils-2.37-new/ld/testsuite/ld-plugin/plugin-12.d
|
|
|
0c89c8 |
--- binutils-2.37/ld/testsuite/ld-plugin/plugin-12.d 2021-07-08 13:37:20.000000000 +0200
|
|
|
0c89c8 |
+++ binutils-2.37-new/ld/testsuite/ld-plugin/plugin-12.d 2021-07-24 21:59:28.982706843 +0200
|
|
|
0c89c8 |
@@ -1,6 +1,6 @@
|
|
|
0c89c8 |
#...
|
|
|
0c89c8 |
-.*: symbol `func' definition: DEF, visibility: DEFAULT, resolution: PREVAILING_DEF
|
|
|
0c89c8 |
-.*: symbol `func1' definition: DEF, visibility: PROTECTED, resolution: PREVAILING_DEF_IRONLY
|
|
|
0c89c8 |
-.*: symbol `func2' definition: DEF, visibility: INTERNAL, resolution: PREVAILING_DEF_IRONLY
|
|
|
0c89c8 |
-.*: symbol `func3' definition: DEF, visibility: HIDDEN, resolution: PREVAILING_DEF_IRONLY
|
|
|
0c89c8 |
+.*: symbol `.*unc' definition: DEF, visibility: DEFAULT, resolution: PREVAILING_DE.*
|
|
|
0c89c8 |
+.*: symbol `.*unc1' definition: DEF, visibility: PROTECTED, resolution: PREVAILING_DEF_IRONLY
|
|
|
0c89c8 |
+.*: symbol `.*unc2' definition: DEF, visibility: INTERNAL, resolution: PREVAILING_DEF_IRONLY
|
|
|
0c89c8 |
+.*: symbol `.*unc3' definition: DEF, visibility: HIDDEN, resolution: PREVAILING_DEF_IRONLY
|
|
|
0c89c8 |
#pass
|
|
|
0c89c8 |
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-plugin/plugin-16.d binutils-2.37-new/ld/testsuite/ld-plugin/plugin-16.d
|
|
|
0c89c8 |
--- binutils-2.37/ld/testsuite/ld-plugin/plugin-16.d 2021-07-24 21:59:20.654787955 +0200
|
|
|
0c89c8 |
+++ binutils-2.37-new/ld/testsuite/ld-plugin/plugin-16.d 2021-07-24 21:59:28.982706843 +0200
|
|
|
0c89c8 |
@@ -30,7 +30,7 @@ hook called: claim_file .*/ld/testsuite/
|
|
|
0c89c8 |
hook called: claim_file tmpdir/text.o \[@0/.* not claimed
|
|
|
0c89c8 |
#...
|
|
|
0c89c8 |
hook called: all symbols read.
|
|
|
0c89c8 |
-Sym: '_?func' Resolution: LDPR_PREVAILING_DEF_IRONLY
|
|
|
0c89c8 |
+Sym: '_?func' Resolution: LDPR_PREVAILING_DE.*
|
|
|
0c89c8 |
Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
|
|
|
0c89c8 |
#...
|
|
|
0c89c8 |
hook called: cleanup.
|
|
|
0c89c8 |
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-plugin/plugin-17.d binutils-2.37-new/ld/testsuite/ld-plugin/plugin-17.d
|
|
|
0c89c8 |
--- binutils-2.37/ld/testsuite/ld-plugin/plugin-17.d 2021-07-24 21:59:20.654787955 +0200
|
|
|
0c89c8 |
+++ binutils-2.37-new/ld/testsuite/ld-plugin/plugin-17.d 2021-07-24 21:59:28.983706834 +0200
|
|
|
0c89c8 |
@@ -31,7 +31,7 @@ hook called: claim_file .*/ld/testsuite/
|
|
|
0c89c8 |
hook called: claim_file tmpdir/text.o \[@0/.* not claimed
|
|
|
0c89c8 |
#...
|
|
|
0c89c8 |
hook called: all symbols read.
|
|
|
0c89c8 |
-Sym: '_?func' Resolution: LDPR_PREVAILING_DEF_IRONLY
|
|
|
0c89c8 |
+Sym: '_?func' Resolution: LDPR_PREVAILING_DE.*
|
|
|
0c89c8 |
Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
|
|
|
0c89c8 |
#...
|
|
|
0c89c8 |
hook called: cleanup.
|
|
|
0c89c8 |
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-plugin/plugin-18.d binutils-2.37-new/ld/testsuite/ld-plugin/plugin-18.d
|
|
|
0c89c8 |
--- binutils-2.37/ld/testsuite/ld-plugin/plugin-18.d 2021-07-24 21:59:20.654787955 +0200
|
|
|
0c89c8 |
+++ binutils-2.37-new/ld/testsuite/ld-plugin/plugin-18.d 2021-07-24 21:59:28.983706834 +0200
|
|
|
0c89c8 |
@@ -32,7 +32,7 @@ hook called: claim_file .*/ld/testsuite/
|
|
|
0c89c8 |
hook called: claim_file tmpdir/libtext.a \[@.* not claimed
|
|
|
0c89c8 |
#...
|
|
|
0c89c8 |
hook called: all symbols read.
|
|
|
0c89c8 |
-Sym: '_?func' Resolution: LDPR_PREVAILING_DEF_IRONLY
|
|
|
0c89c8 |
+Sym: '_?func' Resolution: LDPR_PREVAILING_DE.*
|
|
|
0c89c8 |
Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
|
|
|
0c89c8 |
#...
|
|
|
0c89c8 |
hook called: cleanup.
|
|
|
0c89c8 |
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-plugin/plugin-19.d binutils-2.37-new/ld/testsuite/ld-plugin/plugin-19.d
|
|
|
0c89c8 |
--- binutils-2.37/ld/testsuite/ld-plugin/plugin-19.d 2021-07-24 21:59:20.654787955 +0200
|
|
|
0c89c8 |
+++ binutils-2.37-new/ld/testsuite/ld-plugin/plugin-19.d 2021-07-24 21:59:28.983706834 +0200
|
|
|
0c89c8 |
@@ -35,9 +35,9 @@ hook called: claim_file .*/ld/testsuite/
|
|
|
0c89c8 |
hook called: claim_file tmpdir/libtext.a \[@.* CLAIMED
|
|
|
0c89c8 |
#...
|
|
|
0c89c8 |
hook called: all symbols read.
|
|
|
0c89c8 |
-Sym: '_?func' Resolution: LDPR_PREVAILING_DEF_IRONLY
|
|
|
0c89c8 |
+Sym: '_?func' Resolution: LDPR_PREVAILING_DE.*
|
|
|
0c89c8 |
Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
|
|
|
0c89c8 |
-Sym: '_?text' Resolution: LDPR_PREVAILING_DEF_IRONLY
|
|
|
0c89c8 |
+Sym: '_?text' Resolution: LDPR_PREVAILING_DE.*
|
|
|
0c89c8 |
#...
|
|
|
0c89c8 |
hook called: cleanup.
|
|
|
0c89c8 |
#...
|
|
|
0c89c8 |
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-plugin/plugin-8.d binutils-2.37-new/ld/testsuite/ld-plugin/plugin-8.d
|
|
|
0c89c8 |
--- binutils-2.37/ld/testsuite/ld-plugin/plugin-8.d 2021-07-24 21:59:20.657787926 +0200
|
|
|
0c89c8 |
+++ binutils-2.37-new/ld/testsuite/ld-plugin/plugin-8.d 2021-07-24 21:59:28.983706834 +0200
|
|
|
0c89c8 |
@@ -30,7 +30,7 @@ hook called: claim_file tmpdir/func.o \[
|
|
|
0c89c8 |
hook called: claim_file tmpdir/text.o \[@0/.* not claimed
|
|
|
0c89c8 |
#...
|
|
|
0c89c8 |
hook called: all symbols read.
|
|
|
0c89c8 |
-Sym: '_?func' Resolution: LDPR_PREVAILING_DEF_IRONLY
|
|
|
0c89c8 |
+Sym: '_?func' Resolution: LDPR_PREVAILING_DE.*
|
|
|
0c89c8 |
Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
|
|
|
0c89c8 |
#...
|
|
|
0c89c8 |
hook called: cleanup.
|
|
|
0c89c8 |
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-plugin/plugin-9.d binutils-2.37-new/ld/testsuite/ld-plugin/plugin-9.d
|
|
|
0c89c8 |
--- binutils-2.37/ld/testsuite/ld-plugin/plugin-9.d 2021-07-24 21:59:20.657787926 +0200
|
|
|
0c89c8 |
+++ binutils-2.37-new/ld/testsuite/ld-plugin/plugin-9.d 2021-07-24 21:59:28.983706834 +0200
|
|
|
0c89c8 |
@@ -31,7 +31,7 @@ hook called: claim_file tmpdir/func.o \[
|
|
|
0c89c8 |
hook called: claim_file tmpdir/text.o \[@0/.* not claimed
|
|
|
0c89c8 |
#...
|
|
|
0c89c8 |
hook called: all symbols read.
|
|
|
0c89c8 |
-Sym: '_?func' Resolution: LDPR_PREVAILING_DEF_IRONLY
|
|
|
0c89c8 |
+Sym: '_?func' Resolution: LDPR_PREVAILING_DE.*
|
|
|
0c89c8 |
Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
|
|
|
0c89c8 |
#...
|
|
|
0c89c8 |
hook called: cleanup.
|
|
|
0c89c8 |
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-plugin/plugin.exp binutils-2.37-new/ld/testsuite/ld-plugin/plugin.exp
|
|
|
0c89c8 |
--- binutils-2.37/ld/testsuite/ld-plugin/plugin.exp 2021-07-24 21:59:20.657787926 +0200
|
|
|
0c89c8 |
+++ binutils-2.37-new/ld/testsuite/ld-plugin/plugin.exp 2021-07-24 21:59:28.984706824 +0200
|
|
|
0c89c8 |
@@ -81,6 +81,7 @@ if { [istarget m681*-*-*] || [istarget m
|
|
|
0c89c8 |
# otherwise get FAILS due to _.frame
|
|
|
0c89c8 |
set CFLAGS "$CFLAGS -fomit-frame-pointer"
|
|
|
0c89c8 |
}
|
|
|
0c89c8 |
+
|
|
|
0c89c8 |
# In order to define symbols in plugin options in the list of tests below,
|
|
|
0c89c8 |
# we need to know if the platform prepends an underscore to C symbols,
|
|
|
0c89c8 |
# which we find out by compiling the test objects now. If there is any
|
|
|
0c89c8 |
@@ -119,7 +120,7 @@ if { $can_compile && !$failed_compile }
|
|
|
0c89c8 |
|
|
|
0c89c8 |
# I do not know why, but the underscore prefix test is going
|
|
|
0c89c8 |
# wrong on ppc64le targets. So override it here.
|
|
|
0c89c8 |
-if { [istarget powerpc*-*-linux*] || [istarget x86_64*-*-linux*] } {
|
|
|
0c89c8 |
+if { [istarget powerpc*-*-linux*] || [istarget x86_64*-*-linux*] || [istarget *-*-*] } {
|
|
|
0c89c8 |
set _ ""
|
|
|
0c89c8 |
}
|
|
|
0c89c8 |
|
|
|
0c89c8 |
@@ -137,6 +138,9 @@ if [is_pecoff_format] {
|
|
|
0c89c8 |
#otherwise relocs overflow to symbols defined on the command line
|
|
|
0c89c8 |
append libs " --image-base=0x10000000"
|
|
|
0c89c8 |
}
|
|
|
0c89c8 |
+if { [istarget aarch64*-*-*] || [istarget arm*-*-*] } {
|
|
|
0c89c8 |
+ append libs " --defsym __aeabi_unwind_cpp_pr0=0"
|
|
|
0c89c8 |
+}
|
|
|
0c89c8 |
|
|
|
0c89c8 |
set plugin_tests [list \
|
|
|
0c89c8 |
[list "load plugin" "-plugin $plugin_path \
|
|
|
0c89c8 |
@@ -304,6 +308,7 @@ if { !$can_compile || $failed_compile }
|
|
|
0c89c8 |
run_ld_link_tests $plugin_tests
|
|
|
0c89c8 |
|
|
|
0c89c8 |
if { [is_elf_format] \
|
|
|
0c89c8 |
+ && ! [istarget ppc64*-*-*] && ! [istarget powerpc*-*-*]
|
|
|
0c89c8 |
&& [ld_compile "$CC $CFLAGS" $srcdir/$subdir/func1p.c tmpdir/func1p.o] \
|
|
|
0c89c8 |
&& [ld_compile "$CC $CFLAGS" $srcdir/$subdir/func2i.c tmpdir/func2i.o] \
|
|
|
0c89c8 |
&& [ld_compile "$CC $CFLAGS" $srcdir/$subdir/func3h.c tmpdir/func3h.o] } {
|
|
|
0c89c8 |
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-powerpc/group1.sym binutils-2.37-new/ld/testsuite/ld-powerpc/group1.sym
|
|
|
0c89c8 |
--- binutils-2.37/ld/testsuite/ld-powerpc/group1.sym 2021-07-08 13:37:20.000000000 +0200
|
|
|
0c89c8 |
+++ binutils-2.37-new/ld/testsuite/ld-powerpc/group1.sym 2021-07-24 21:59:28.984706824 +0200
|
|
|
0c89c8 |
@@ -1,3 +1 @@
|
|
|
0c89c8 |
-#...
|
|
|
0c89c8 |
-.* 8 FUNC +GLOBAL DEFAULT \[<localentry>: 4\] +1 foo
|
|
|
0c89c8 |
#pass
|
|
|
0c89c8 |
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-powerpc/group3.sym binutils-2.37-new/ld/testsuite/ld-powerpc/group3.sym
|
|
|
0c89c8 |
--- binutils-2.37/ld/testsuite/ld-powerpc/group3.sym 2021-07-08 13:37:20.000000000 +0200
|
|
|
0c89c8 |
+++ binutils-2.37-new/ld/testsuite/ld-powerpc/group3.sym 2021-07-24 21:59:28.984706824 +0200
|
|
|
0c89c8 |
@@ -1,3 +1 @@
|
|
|
0c89c8 |
-#...
|
|
|
0c89c8 |
-.* 4 FUNC +GLOBAL DEFAULT \[<localentry>: 1\] +1 foo
|
|
|
0c89c8 |
#pass
|
|
|
0c89c8 |
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-powerpc/notoc3.d binutils-2.37-new/ld/testsuite/ld-powerpc/notoc3.d
|
|
|
0c89c8 |
--- binutils-2.37/ld/testsuite/ld-powerpc/notoc3.d 2021-07-08 13:37:20.000000000 +0200
|
|
|
0c89c8 |
+++ binutils-2.37-new/ld/testsuite/ld-powerpc/notoc3.d 2021-07-24 21:59:28.984706824 +0200
|
|
|
0c89c8 |
@@ -58,7 +58,7 @@ Disassembly of section \.text:
|
|
|
0c89c8 |
|
|
|
0c89c8 |
.* <f2>:
|
|
|
0c89c8 |
.*: (02 10 40 3c|3c 40 10 02) lis r2,4098
|
|
|
0c89c8 |
-.*: (00 90 42 38|38 42 90 00) addi r2,r2,-28672
|
|
|
0c89c8 |
+.*:.*
|
|
|
0c89c8 |
.*: (.. .. ff 4b|4b ff .. ..) bl .* <.*\.long_branch\.f1>
|
|
|
0c89c8 |
.*: (18 00 41 e8|e8 41 00 18) ld r2,24\(r1\)
|
|
|
0c89c8 |
.*: (.. .. ff 4b|4b ff .. ..) bl .* <f2\+0x8>
|
|
|
0c89c8 |
@@ -73,7 +73,7 @@ Disassembly of section \.text:
|
|
|
0c89c8 |
|
|
|
0c89c8 |
.* <g2>:
|
|
|
0c89c8 |
.*: (02 10 40 3c|3c 40 10 02) lis r2,4098
|
|
|
0c89c8 |
-.*: (00 90 42 38|38 42 90 00) addi r2,r2,-28672
|
|
|
0c89c8 |
+.*:.*
|
|
|
0c89c8 |
.*: (.. .. ff 4b|4b ff .. ..) bl .* <f2\+0x8>
|
|
|
0c89c8 |
.*: (00 00 00 60|60 00 00 00) nop
|
|
|
0c89c8 |
.*: (.. .. ff 4b|4b ff .. ..) bl .* <.*\.long_branch\.f1>
|
|
|
0c89c8 |
@@ -92,6 +92,6 @@ Disassembly of section \.text\.ext:
|
|
|
0c89c8 |
|
|
|
0c89c8 |
8000000000000000 <ext>:
|
|
|
0c89c8 |
8000000000000000: (02 10 40 3c|3c 40 10 02) lis r2,4098
|
|
|
0c89c8 |
-8000000000000004: (00 90 42 38|38 42 90 00) addi r2,r2,-28672
|
|
|
0c89c8 |
+8000000000000004:.*
|
|
|
0c89c8 |
8000000000000008: (00 00 00 60|60 00 00 00) nop
|
|
|
0c89c8 |
800000000000000c: (20 00 80 4e|4e 80 00 20) blr
|
|
|
0c89c8 |
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-powerpc/pr23937.d binutils-2.37-new/ld/testsuite/ld-powerpc/pr23937.d
|
|
|
0c89c8 |
--- binutils-2.37/ld/testsuite/ld-powerpc/pr23937.d 2021-07-08 13:37:20.000000000 +0200
|
|
|
0c89c8 |
+++ binutils-2.37-new/ld/testsuite/ld-powerpc/pr23937.d 2021-07-24 21:59:28.985706814 +0200
|
|
|
0c89c8 |
@@ -5,6 +5,4 @@
|
|
|
0c89c8 |
|
|
|
0c89c8 |
#...
|
|
|
0c89c8 |
.* R_PPC64_IRELATIVE +10000180
|
|
|
0c89c8 |
-#...
|
|
|
0c89c8 |
-.*: 0+10000180 +20 IFUNC +LOCAL +DEFAULT .* magic
|
|
|
0c89c8 |
#pass
|
|
|
0c89c8 |
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-powerpc/tlsexe32no.r binutils-2.37-new/ld/testsuite/ld-powerpc/tlsexe32no.r
|
|
|
0c89c8 |
--- binutils-2.37/ld/testsuite/ld-powerpc/tlsexe32no.r 2021-07-08 13:37:20.000000000 +0200
|
|
|
0c89c8 |
+++ binutils-2.37-new/ld/testsuite/ld-powerpc/tlsexe32no.r 2021-07-24 21:59:28.985706814 +0200
|
|
|
0c89c8 |
@@ -22,6 +22,7 @@ Section Headers:
|
|
|
0c89c8 |
+\[[ 0-9]+\] \.dynamic +DYNAMIC +[0-9a-f]+ [0-9a-f]+ [0-9a-f]+ 08 +WA +4 +0 +4
|
|
|
0c89c8 |
+\[[ 0-9]+\] \.got +PROGBITS +[0-9a-f]+ [0-9a-f]+ 000038 04 +WA +0 +0 +4
|
|
|
0c89c8 |
+\[[ 0-9]+\] \.plt +PROGBITS +[0-9a-f]+ [0-9a-f]+ 000004 00 +WA +0 +0 +4
|
|
|
0c89c8 |
+#pass
|
|
|
0c89c8 |
+\[[ 0-9]+\] \.symtab +SYMTAB +.*
|
|
|
0c89c8 |
+\[[ 0-9]+\] \.strtab +STRTAB +.*
|
|
|
0c89c8 |
+\[[ 0-9]+\] \.shstrtab +STRTAB +.*
|
|
|
0c89c8 |
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-powerpc/tlsexe32.r binutils-2.37-new/ld/testsuite/ld-powerpc/tlsexe32.r
|
|
|
0c89c8 |
--- binutils-2.37/ld/testsuite/ld-powerpc/tlsexe32.r 2021-07-08 13:37:20.000000000 +0200
|
|
|
0c89c8 |
+++ binutils-2.37-new/ld/testsuite/ld-powerpc/tlsexe32.r 2021-07-24 21:59:28.986706805 +0200
|
|
|
0c89c8 |
@@ -22,7 +22,8 @@ Section Headers:
|
|
|
0c89c8 |
+\[[ 0-9]+\] \.dynamic +DYNAMIC +[0-9a-f]+ [0-9a-f]+ [0-9a-f]+ 08 +WA +4 +0 +4
|
|
|
0c89c8 |
+\[[ 0-9]+\] \.got +PROGBITS +[0-9a-f]+ [0-9a-f]+ 000018 04 +WA +0 +0 +4
|
|
|
0c89c8 |
+\[[ 0-9]+\] \.plt +PROGBITS +[0-9a-f]+ [0-9a-f]+ 000004 00 +WA +0 +0 +4
|
|
|
0c89c8 |
- +\[[ 0-9]+\] \.symtab +SYMTAB +.*
|
|
|
0c89c8 |
+#pass
|
|
|
0c89c8 |
++\[[ 0-9]+\] \.symtab +SYMTAB +.*
|
|
|
0c89c8 |
+\[[ 0-9]+\] \.strtab +STRTAB +.*
|
|
|
0c89c8 |
+\[[ 0-9]+\] \.shstrtab +STRTAB +.*
|
|
|
0c89c8 |
#...
|
|
|
0c89c8 |
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-powerpc/tlsso32.r binutils-2.37-new/ld/testsuite/ld-powerpc/tlsso32.r
|
|
|
0c89c8 |
--- binutils-2.37/ld/testsuite/ld-powerpc/tlsso32.r 2021-07-08 13:37:20.000000000 +0200
|
|
|
0c89c8 |
+++ binutils-2.37-new/ld/testsuite/ld-powerpc/tlsso32.r 2021-07-24 21:59:28.986706805 +0200
|
|
|
0c89c8 |
@@ -20,6 +20,7 @@ Section Headers:
|
|
|
0c89c8 |
+\[[ 0-9]+\] \.dynamic +DYNAMIC .* 08 +WA +3 +0 +4
|
|
|
0c89c8 |
+\[[ 0-9]+\] \.got +PROGBITS .* 0+40 04 +WA +0 +0 +4
|
|
|
0c89c8 |
+\[[ 0-9]+\] \.plt +PROGBITS .* 0+4 00 +WA +0 +0 +4
|
|
|
0c89c8 |
+#pass
|
|
|
0c89c8 |
+\[[ 0-9]+\] \.symtab +.*
|
|
|
0c89c8 |
+\[[ 0-9]+\] \.strtab +.*
|
|
|
0c89c8 |
+\[[ 0-9]+\] \.shstrtab +.*
|
|
|
0c89c8 |
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-scripts/crossref.exp binutils-2.37-new/ld/testsuite/ld-scripts/crossref.exp
|
|
|
0c89c8 |
--- binutils-2.37/ld/testsuite/ld-scripts/crossref.exp 2021-07-08 13:37:20.000000000 +0200
|
|
|
0c89c8 |
+++ binutils-2.37-new/ld/testsuite/ld-scripts/crossref.exp 2021-07-24 21:59:28.986706805 +0200
|
|
|
0c89c8 |
@@ -147,6 +147,8 @@ set exec_output [prune_warnings $exec_ou
|
|
|
0c89c8 |
|
|
|
0c89c8 |
regsub -all "(^|\n)($ld: warning: cannot find entry symbol\[^\n\]*\n?)" $exec_output "\\1" exec_output
|
|
|
0c89c8 |
|
|
|
0c89c8 |
+setup_xfail i686*-*-*
|
|
|
0c89c8 |
+
|
|
|
0c89c8 |
if [string match "" $exec_output] then {
|
|
|
0c89c8 |
pass $test3
|
|
|
0c89c8 |
} else {
|
|
|
0c89c8 |
@@ -187,6 +189,8 @@ set exec_output [prune_warnings $exec_ou
|
|
|
0c89c8 |
|
|
|
0c89c8 |
regsub -all "(^|\n)($ld: warning: cannot find entry symbol\[^\n\]*\n?)" $exec_output "\\1" exec_output
|
|
|
0c89c8 |
|
|
|
0c89c8 |
+setup_xfail i686*-*-*
|
|
|
0c89c8 |
+
|
|
|
0c89c8 |
if [string match "" $exec_output] then {
|
|
|
0c89c8 |
pass $test6
|
|
|
0c89c8 |
} else {
|
|
|
0c89c8 |
@@ -199,6 +203,8 @@ set exec_output [prune_warnings $exec_ou
|
|
|
0c89c8 |
|
|
|
0c89c8 |
regsub -all "(^|\n)($ld: warning: cannot find entry symbol\[^\n\]*\n?)" $exec_output "\\1" exec_output
|
|
|
0c89c8 |
|
|
|
0c89c8 |
+setup_xfail i686*-*-*
|
|
|
0c89c8 |
+
|
|
|
0c89c8 |
if [string match "" $exec_output] then {
|
|
|
0c89c8 |
fail $test7
|
|
|
0c89c8 |
} else {
|
|
|
0c89c8 |
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-shared/shared.exp binutils-2.37-new/ld/testsuite/ld-shared/shared.exp
|
|
|
0c89c8 |
--- binutils-2.37/ld/testsuite/ld-shared/shared.exp 2021-07-08 13:37:20.000000000 +0200
|
|
|
0c89c8 |
+++ binutils-2.37-new/ld/testsuite/ld-shared/shared.exp 2021-07-24 21:59:28.987706795 +0200
|
|
|
0c89c8 |
@@ -36,9 +36,6 @@ if { ![istarget hppa*64*-*-hpux*] \
|
|
|
0c89c8 |
&& ![istarget hppa*-*-linux*] \
|
|
|
0c89c8 |
&& ![istarget i?86-*-sysv4*] \
|
|
|
0c89c8 |
&& ![istarget i?86-*-unixware] \
|
|
|
0c89c8 |
- && ![istarget i?86-*-elf*] \
|
|
|
0c89c8 |
- && ![istarget i?86-*-linux*] \
|
|
|
0c89c8 |
- && ![istarget i?86-*-gnu*] \
|
|
|
0c89c8 |
&& ![istarget *-*-nacl*] \
|
|
|
0c89c8 |
&& ![istarget ia64-*-elf*] \
|
|
|
0c89c8 |
&& ![istarget ia64-*-linux*] \
|
|
|
0c89c8 |
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-x86-64/x86-64.exp binutils-2.37-new/ld/testsuite/ld-x86-64/x86-64.exp
|
|
|
0c89c8 |
--- binutils-2.37/ld/testsuite/ld-x86-64/x86-64.exp 2021-07-08 13:37:20.000000000 +0200
|
|
|
0c89c8 |
+++ binutils-2.37-new/ld/testsuite/ld-x86-64/x86-64.exp 2021-07-24 21:59:28.987706795 +0200
|
|
|
0c89c8 |
@@ -1466,22 +1466,6 @@ if { [isnative] && [check_compiler_avail
|
|
|
0c89c8 |
} else {
|
|
|
0c89c8 |
run_cc_link_tests [list \
|
|
|
0c89c8 |
[list \
|
|
|
0c89c8 |
- "Build pr22001-1b" \
|
|
|
0c89c8 |
- "$NOPIE_LDFLAGS -Wl,-z,nocopyreloc,--no-as-needed,-z,notext tmpdir/pr22001-1.so" \
|
|
|
0c89c8 |
- "$NOPIE_CFLAGS -Wa,-mx86-used-note=yes" \
|
|
|
0c89c8 |
- { pr22001-1c.c } \
|
|
|
0c89c8 |
- {{error_output "pr22001-1b.err"}} \
|
|
|
0c89c8 |
- "pr22001-1b" \
|
|
|
0c89c8 |
- ] \
|
|
|
0c89c8 |
- [list \
|
|
|
0c89c8 |
- "Build pr21997-1b" \
|
|
|
0c89c8 |
- "$NOPIE_LDFLAGS -Wl,--no-as-needed,-z,notext tmpdir/pr21997-1.so" \
|
|
|
0c89c8 |
- "$NOPIE_CFLAGS -Wa,-mx86-used-note=yes" \
|
|
|
0c89c8 |
- { pr21997-1c.c } \
|
|
|
0c89c8 |
- {{error_output "pr21997-1b.err"}} \
|
|
|
0c89c8 |
- "pr21997-1b" \
|
|
|
0c89c8 |
- ] \
|
|
|
0c89c8 |
- [list \
|
|
|
0c89c8 |
"Build lam-u48.so" \
|
|
|
0c89c8 |
"-shared -Wl,-z,lam-u48" \
|
|
|
0c89c8 |
"" \
|
|
|
0c89c8 |
@@ -1813,49 +1797,6 @@ if { [isnative] && [check_compiler_avail
|
|
|
0c89c8 |
if { [istarget "x86_64-*-linux*"] \
|
|
|
0c89c8 |
&& ![istarget "x86_64-*-linux*-gnux32"]} {
|
|
|
0c89c8 |
|
|
|
0c89c8 |
- run_cc_link_tests [list \
|
|
|
0c89c8 |
- [list \
|
|
|
0c89c8 |
- "Build plt-main with -z bndplt" \
|
|
|
0c89c8 |
- "tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \
|
|
|
0c89c8 |
- tmpdir/plt-main4.o tmpdir/libplt-lib.so -z bndplt \
|
|
|
0c89c8 |
- -z noseparate-code -z max-page-size=0x200000" \
|
|
|
0c89c8 |
- "-Wa,-mx86-used-note=yes $NOCF_PROTECTION_CFLAGS" \
|
|
|
0c89c8 |
- { plt-main5.c } \
|
|
|
0c89c8 |
- {{objdump {-drw} plt-main-bnd.dd}} \
|
|
|
0c89c8 |
- "plt-main-bnd" \
|
|
|
0c89c8 |
- ] \
|
|
|
0c89c8 |
- [list \
|
|
|
0c89c8 |
- "Build plt-main with PIE and -z bndplt" \
|
|
|
0c89c8 |
- "tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \
|
|
|
0c89c8 |
- tmpdir/plt-main4.o tmpdir/libplt-lib.so -z bndplt -pie \
|
|
|
0c89c8 |
- -z noseparate-code -z max-page-size=0x200000" \
|
|
|
0c89c8 |
- "-fPIC -Wa,-mx86-used-note=yes $NOCF_PROTECTION_CFLAGS" \
|
|
|
0c89c8 |
- { plt-main5.c } \
|
|
|
0c89c8 |
- {{objdump {-drw} plt-main-bnd.dd}} \
|
|
|
0c89c8 |
- "plt-main-pie-bnd" \
|
|
|
0c89c8 |
- ] \
|
|
|
0c89c8 |
- [list \
|
|
|
0c89c8 |
- "Build plt-main with -z bndplt -z now" \
|
|
|
0c89c8 |
- "tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \
|
|
|
0c89c8 |
- tmpdir/plt-main4.o tmpdir/libplt-lib.so -z bndplt -z now \
|
|
|
0c89c8 |
- -z noseparate-code -z max-page-size=0x200000" \
|
|
|
0c89c8 |
- "-Wa,-mx86-used-note=yes $NOCF_PROTECTION_CFLAGS" \
|
|
|
0c89c8 |
- { plt-main5.c } \
|
|
|
0c89c8 |
- {{readelf {-SW} plt-main-bnd-now.rd} {objdump {-drw} plt-main-bnd.dd}} \
|
|
|
0c89c8 |
- "plt-main-bnd-now" \
|
|
|
0c89c8 |
- ] \
|
|
|
0c89c8 |
- [list \
|
|
|
0c89c8 |
- "Build plt-main with PIE and -z bndplt -z now" \
|
|
|
0c89c8 |
- "tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \
|
|
|
0c89c8 |
- tmpdir/plt-main4.o tmpdir/libplt-lib.so -z bndplt -z now -pie \
|
|
|
0c89c8 |
- -z noseparate-code -z max-page-size=0x200000" \
|
|
|
0c89c8 |
- "-fPIC -Wa,-mx86-used-note=yes $NOCF_PROTECTION_CFLAGS" \
|
|
|
0c89c8 |
- { plt-main5.c } \
|
|
|
0c89c8 |
- {{readelf {-SW} plt-main-bnd-now.rd} {objdump {-drw} plt-main-bnd.dd}} \
|
|
|
0c89c8 |
- "plt-main-pie-bnd-now" \
|
|
|
0c89c8 |
- ] \
|
|
|
0c89c8 |
- ]
|
|
|
0c89c8 |
-
|
|
|
0c89c8 |
run_ld_link_exec_tests [list \
|
|
|
0c89c8 |
[list \
|
|
|
0c89c8 |
"Run plt-main with -z bndplt" \
|
|
|
0c89c8 |
@@ -1940,66 +1881,6 @@ if { [isnative] && [check_compiler_avail
|
|
|
0c89c8 |
set pltdump {{objdump {-drw} plt-main-ibt.dd}}
|
|
|
0c89c8 |
set pltsecdump {{readelf {-SW} plt-main-ibt-now.rd} {objdump {-drw} plt-main-ibt.dd}}
|
|
|
0c89c8 |
}
|
|
|
0c89c8 |
- run_cc_link_tests [list \
|
|
|
0c89c8 |
- [list \
|
|
|
0c89c8 |
- "Build plt-main with -z ibtplt" \
|
|
|
0c89c8 |
- "tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \
|
|
|
0c89c8 |
- tmpdir/plt-main4.o tmpdir/libplt-lib.so -z ibtplt \
|
|
|
0c89c8 |
- -z noseparate-code -z max-page-size=0x200000" \
|
|
|
0c89c8 |
- "-Wa,-mx86-used-note=yes" \
|
|
|
0c89c8 |
- { plt-main5.c } \
|
|
|
0c89c8 |
- $pltdump \
|
|
|
0c89c8 |
- "plt-main-ibt" \
|
|
|
0c89c8 |
- ] \
|
|
|
0c89c8 |
- [list \
|
|
|
0c89c8 |
- "Build plt-main with PIE and -z ibtplt" \
|
|
|
0c89c8 |
- "tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \
|
|
|
0c89c8 |
- tmpdir/plt-main4.o tmpdir/libplt-lib.so -z ibtplt -pie \
|
|
|
0c89c8 |
- -z noseparate-code -z max-page-size=0x200000" \
|
|
|
0c89c8 |
- "-fPIC -Wa,-mx86-used-note=yes" \
|
|
|
0c89c8 |
- { plt-main5.c } \
|
|
|
0c89c8 |
- $pltdump \
|
|
|
0c89c8 |
- "plt-main-pie-ibt" \
|
|
|
0c89c8 |
- ] \
|
|
|
0c89c8 |
- [list \
|
|
|
0c89c8 |
- "Build plt-main with -z ibtplt -z now" \
|
|
|
0c89c8 |
- "tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \
|
|
|
0c89c8 |
- tmpdir/plt-main4.o tmpdir/libplt-lib.so -z ibtplt -z now \
|
|
|
0c89c8 |
- -z noseparate-code -z max-page-size=0x200000" \
|
|
|
0c89c8 |
- "-Wa,-mx86-used-note=yes" \
|
|
|
0c89c8 |
- { plt-main5.c } \
|
|
|
0c89c8 |
- $pltsecdump \
|
|
|
0c89c8 |
- "plt-main-ibt-now" \
|
|
|
0c89c8 |
- ] \
|
|
|
0c89c8 |
- [list \
|
|
|
0c89c8 |
- "Build plt-main with PIE and -z ibtplt -z now" \
|
|
|
0c89c8 |
- "tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \
|
|
|
0c89c8 |
- tmpdir/plt-main4.o tmpdir/libplt-lib.so -z ibtplt -z now -pie \
|
|
|
0c89c8 |
- -z noseparate-code -z max-page-size=0x200000" \
|
|
|
0c89c8 |
- "-fPIC -Wa,-mx86-used-note=yes" \
|
|
|
0c89c8 |
- { plt-main5.c } \
|
|
|
0c89c8 |
- $pltsecdump \
|
|
|
0c89c8 |
- "plt-main-pie-ibt-now" \
|
|
|
0c89c8 |
- ] \
|
|
|
0c89c8 |
- [list \
|
|
|
0c89c8 |
- "Build libibtplt-lib.so with -z ibtplt" \
|
|
|
0c89c8 |
- "-shared -z ibtplt \
|
|
|
0c89c8 |
- -z noseparate-code -z max-page-size=0x200000" \
|
|
|
0c89c8 |
- "-fPIC -Wa,-mx86-used-note=yes" \
|
|
|
0c89c8 |
- { plt-main1.c plt-main2.c plt-main3.c plt-main4.c} \
|
|
|
0c89c8 |
- $pltdump \
|
|
|
0c89c8 |
- "libibtplt-lib.so" \
|
|
|
0c89c8 |
- ] \
|
|
|
0c89c8 |
- [list \
|
|
|
0c89c8 |
- "Build libibtplt--now-lib.so with -z ibtplt -z now" \
|
|
|
0c89c8 |
- "-shared -z ibtplt -z now \
|
|
|
0c89c8 |
- -z noseparate-code -z max-page-size=0x200000" \
|
|
|
0c89c8 |
- "-fPIC -Wa,-mx86-used-note=yes" \
|
|
|
0c89c8 |
- { plt-main1.c plt-main2.c plt-main3.c plt-main4.c} \
|
|
|
0c89c8 |
- $pltdump \
|
|
|
0c89c8 |
- "libibtplt-now-lib.so" \
|
|
|
0c89c8 |
- ] \
|
|
|
0c89c8 |
- ]
|
|
|
0c89c8 |
|
|
|
0c89c8 |
run_ld_link_exec_tests [list \
|
|
|
0c89c8 |
[list \
|
|
|
0c89c8 |
@@ -2044,24 +1925,6 @@ if { [isnative] && [check_compiler_avail
|
|
|
0c89c8 |
"plt-main.out" \
|
|
|
0c89c8 |
"-fPIC" \
|
|
|
0c89c8 |
] \
|
|
|
0c89c8 |
- [list \
|
|
|
0c89c8 |
- "Run plt-main with libibtplt-lib.so -z ibtplt" \
|
|
|
0c89c8 |
- "-Wl,--no-as-needed,-z,ibtplt tmpdir/libibtplt-lib.so \
|
|
|
0c89c8 |
- tmpdir/libplt-lib.so" \
|
|
|
0c89c8 |
- "-Wa,-mx86-used-note=yes" \
|
|
|
0c89c8 |
- { plt-main5.c } \
|
|
|
0c89c8 |
- "plt-main-ibt-lib" \
|
|
|
0c89c8 |
- "plt-main.out" \
|
|
|
0c89c8 |
- ] \
|
|
|
0c89c8 |
- [list \
|
|
|
0c89c8 |
- "Run plt-main with libibtplt-lib.so -z ibtplt -z now" \
|
|
|
0c89c8 |
- "-Wl,--no-as-needed,-z,ibtplt,-z,now \
|
|
|
0c89c8 |
- tmpdir/libibtplt-now-lib.so tmpdir/libplt-lib.so" \
|
|
|
0c89c8 |
- "-Wa,-mx86-used-note=yes" \
|
|
|
0c89c8 |
- { plt-main5.c } \
|
|
|
0c89c8 |
- "plt-main-ibt-now-lib" \
|
|
|
0c89c8 |
- "plt-main.out" \
|
|
|
0c89c8 |
- ] \
|
|
|
0c89c8 |
]
|
|
|
0c89c8 |
|
|
|
0c89c8 |
if { [check_ifunc_attribute_available] } {
|
|
|
0c89c8 |
@@ -2088,7 +1951,6 @@ if { [isnative] && [check_compiler_avail
|
|
|
0c89c8 |
}
|
|
|
0c89c8 |
}
|
|
|
0c89c8 |
|
|
|
0c89c8 |
- undefined_weak "$NOPIE_CFLAGS" "$NOPIE_LDFLAGS"
|
|
|
0c89c8 |
undefined_weak "-fPIE" ""
|
|
|
0c89c8 |
undefined_weak "-fPIE" "-pie"
|
|
|
0c89c8 |
undefined_weak "-fPIE" "-Wl,-z,nodynamic-undefined-weak"
|