aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2019-02-27 11:53:16 -0800
committerH.J. Lu <hjl.tools@gmail.com>2019-02-27 11:53:27 -0800
commit5cfe428cd1788be52a0af540f02b8f2705354d50 (patch)
tree0e1447ed315df9489fb256b01a4bf88b42a1da3b /ld
parent43ac54fca353ea8d77d56dc5ad9e049bbb9a81fb (diff)
downloadgdb-5cfe428cd1788be52a0af540f02b8f2705354d50.zip
gdb-5cfe428cd1788be52a0af540f02b8f2705354d50.tar.gz
gdb-5cfe428cd1788be52a0af540f02b8f2705354d50.tar.bz2
x86-64: Skip protected check on symbol defined by linker
Skip symbol defined by linker when checking copy reloc on protected symbol. bfd/ PR ld/24276 * elf64-x86-64.c (elf_x86_64_check_relocs): Skip symbol defined by linker when checking copy reloc on protected symbol. ld/ PR ld/24276 * testsuite/ld-i386/i386.exp: Run PR ld/24276 test. * testsuite/ld-x86-64/x86-64.exp: Likewise. * testsuite/ld-i386/pr24276.dso: New file. * testsuite/ld-i386/pr24276.warn: Likewise. * testsuite/ld-x86-64/pr24276.dso: Likewise. * testsuite/ld-x86-64/pr24276.warn: Likewise.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog10
-rw-r--r--ld/testsuite/ld-i386/i386.exp9
-rw-r--r--ld/testsuite/ld-i386/pr24276.dso9
-rw-r--r--ld/testsuite/ld-i386/pr24276.warn1
-rw-r--r--ld/testsuite/ld-x86-64/pr24276.dso9
-rw-r--r--ld/testsuite/ld-x86-64/pr24276.warn1
-rw-r--r--ld/testsuite/ld-x86-64/x86-64.exp9
7 files changed, 48 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 0e00e41..cd368bd 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,13 @@
+2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/24276
+ * testsuite/ld-i386/i386.exp: Run PR ld/24276 test.
+ * testsuite/ld-x86-64/x86-64.exp: Likewise.
+ * testsuite/ld-i386/pr24276.dso: New file.
+ * testsuite/ld-i386/pr24276.warn: Likewise.
+ * testsuite/ld-x86-64/pr24276.dso: Likewise.
+ * testsuite/ld-x86-64/pr24276.warn: Likewise.
+
2019-02-20 Eric Tsai <erictsai@cadence.com>
* testsuite/ld-xtensa/call_overflow.d: New test definition.
diff --git a/ld/testsuite/ld-i386/i386.exp b/ld/testsuite/ld-i386/i386.exp
index 5b90362..e51a4c3 100644
--- a/ld/testsuite/ld-i386/i386.exp
+++ b/ld/testsuite/ld-i386/i386.exp
@@ -805,6 +805,15 @@ if { [isnative]
"pr19319" \
] \
[list \
+ "Build pr24276.so" \
+ "-shared -nostdlib -nostartfiles \
+ -Ltmpdir $srcdir/$subdir/pr24276.dso" \
+ "-Wa,-mx86-used-note=yes" \
+ { pr19319b.S } \
+ {{warning_output pr24276.warn}} \
+ "pr24276.so" \
+ ] \
+ [list \
"Build property 1" \
"" \
"-Wa,-mx86-used-note=no" \
diff --git a/ld/testsuite/ld-i386/pr24276.dso b/ld/testsuite/ld-i386/pr24276.dso
new file mode 100644
index 0000000..9add115
--- /dev/null
+++ b/ld/testsuite/ld-i386/pr24276.dso
@@ -0,0 +1,9 @@
+INPUT(pr19319.so)
+SECTIONS {
+ my_section : {
+ __start_my_section = .;
+ *(my_section);
+ __stop_my_section = .;
+
+ }
+}
diff --git a/ld/testsuite/ld-i386/pr24276.warn b/ld/testsuite/ld-i386/pr24276.warn
new file mode 100644
index 0000000..5fcfa34
--- /dev/null
+++ b/ld/testsuite/ld-i386/pr24276.warn
@@ -0,0 +1 @@
+.*contains output sections.*
diff --git a/ld/testsuite/ld-x86-64/pr24276.dso b/ld/testsuite/ld-x86-64/pr24276.dso
new file mode 100644
index 0000000..9add115
--- /dev/null
+++ b/ld/testsuite/ld-x86-64/pr24276.dso
@@ -0,0 +1,9 @@
+INPUT(pr19319.so)
+SECTIONS {
+ my_section : {
+ __start_my_section = .;
+ *(my_section);
+ __stop_my_section = .;
+
+ }
+}
diff --git a/ld/testsuite/ld-x86-64/pr24276.warn b/ld/testsuite/ld-x86-64/pr24276.warn
new file mode 100644
index 0000000..5fcfa34
--- /dev/null
+++ b/ld/testsuite/ld-x86-64/pr24276.warn
@@ -0,0 +1 @@
+.*contains output sections.*
diff --git a/ld/testsuite/ld-x86-64/x86-64.exp b/ld/testsuite/ld-x86-64/x86-64.exp
index 5eb5565..b03aace 100644
--- a/ld/testsuite/ld-x86-64/x86-64.exp
+++ b/ld/testsuite/ld-x86-64/x86-64.exp
@@ -941,6 +941,15 @@ if { [isnative] && [which $CC] != 0 } {
"pr19319" \
] \
[list \
+ "Build pr24276.so" \
+ "-shared -nostdlib -nostartfiles \
+ -Ltmpdir $srcdir/$subdir/pr24276.dso" \
+ "-Wa,-mx86-used-note=yes" \
+ { pr19319b.S } \
+ {{warning_output pr24276.warn}} \
+ "pr24276.so" \
+ ] \
+ [list \
"Build property 1" \
"" \
"-Wa,-mx86-used-note=no" \