aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-tic6x/shared-nopid.d
diff options
context:
space:
mode:
authorBernd Schmidt <bernds@codesourcery.com>2011-05-05 16:05:19 +0000
committerBernd Schmidt <bernds@codesourcery.com>2011-05-05 16:05:19 +0000
commitc6a8f6e0ed6e27fff6f17d373d628fe3cce49345 (patch)
treeede8b1283802db9025891810a59c135e0f1e8465 /ld/testsuite/ld-tic6x/shared-nopid.d
parenta3fcb948d3897e47ad7e952297ba61422757997b (diff)
downloadgdb-c6a8f6e0ed6e27fff6f17d373d628fe3cce49345.zip
gdb-c6a8f6e0ed6e27fff6f17d373d628fe3cce49345.tar.gz
gdb-c6a8f6e0ed6e27fff6f17d373d628fe3cce49345.tar.bz2
bfd/
* elf32-tic6x.c (elf32_tic6x_final_link): New function. (elf32_tic6x_merge_attributes): Do not warn for PID or PIC mismatch. Choose the lower of the two values. (bfd_elf32_bfd_final_link): New macro. ld/testsuite/ * ld-tic6x/shared-nopic.d: New test. * ld-tic6x/shared-nopid.d: New test. * ld-tic6x/attr-pid-21.d: Don't expect a warning; check readelf output instead. * ld-tic6x/attr-pid-12.d: Likewise. * ld-tic6x/attr-pic-01.d: Likewise. * ld-tic6x/attr-pic-10.d: Likewise. * ld-tic6x/attr-pid-01.d: Likewise. * ld-tic6x/attr-pid-10.d: Likewise. * ld-tic6x/attr-pid-02.d: Likewise. * ld-tic6x/attr-pid-20.d: Likewise. * ld-tic6x/got-reloc-inrange.d: Pass -mpic and -mpid options to gas.
Diffstat (limited to 'ld/testsuite/ld-tic6x/shared-nopid.d')
-rw-r--r--ld/testsuite/ld-tic6x/shared-nopid.d5
1 files changed, 5 insertions, 0 deletions
diff --git a/ld/testsuite/ld-tic6x/shared-nopid.d b/ld/testsuite/ld-tic6x/shared-nopid.d
new file mode 100644
index 0000000..7f366f3
--- /dev/null
+++ b/ld/testsuite/ld-tic6x/shared-nopid.d
@@ -0,0 +1,5 @@
+#name: C6X shared library without PIC code
+#as: -mlittle-endian -mdsbt -mpic
+#ld: -melf32_tic6x_le -Tdsbt-inrange.ld --dsbt-index 4 -shared
+#source: got-reloc-global.s
+#warning: non-PID code