aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf/textaddr4.d
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2010-05-26 14:10:15 +0000
committerH.J. Lu <hjl.tools@gmail.com>2010-05-26 14:10:15 +0000
commitc8ce57109cba194742fc1d0b6f953cf535571750 (patch)
treedd34e730e8b738fdbdeb12530886b8185358a2a3 /ld/testsuite/ld-elf/textaddr4.d
parentf79e2745b210313ede58d9509e718f0e2506e045 (diff)
downloadgdb-c8ce57109cba194742fc1d0b6f953cf535571750.zip
gdb-c8ce57109cba194742fc1d0b6f953cf535571750.tar.gz
gdb-c8ce57109cba194742fc1d0b6f953cf535571750.tar.bz2
Warn if value of SEGMENT_START isn't multiple of maximum page size.
ld/ 2010-05-26 H.J. Lu <hongjiu.lu@intel.com> PR ld/11628 * ldexp.c (fold_binary): Warn if value of SEGMENT_START isn't multiple of maximum page size. ld/testsuite/ 2010-05-26 H.J. Lu <hongjiu.lu@intel.com> PR ld/11628 * ld-elf/textaddr3.d: New. * ld-elf/textaddr4.d: Likewise. * ld-elf/textaddr5.d: Likewise. * ld-elf/textaddr6.d: Likewise. * ld-elf/textaddr7.d: Likewise.
Diffstat (limited to 'ld/testsuite/ld-elf/textaddr4.d')
-rw-r--r--ld/testsuite/ld-elf/textaddr4.d8
1 files changed, 8 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/textaddr4.d b/ld/testsuite/ld-elf/textaddr4.d
new file mode 100644
index 0000000..bfd7630
--- /dev/null
+++ b/ld/testsuite/ld-elf/textaddr4.d
@@ -0,0 +1,8 @@
+#source: maxpage1.s
+#ld: -z max-page-size=0x10000 -Ttext-segment 0x10000
+#readelf: -l --wide
+#target: *-*-linux-gnu
+
+#...
+ LOAD +0x0+ 0x0*10000 0x0*10000 0x0*[0-9a-f][0-9a-f][0-9a-f] 0x0*[0-9a-f][0-9a-f][0-9a-f] R E 0x10000
+#pass