aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2007-11-13 13:20:02 +0000
committerH.J. Lu <hjl.tools@gmail.com>2007-11-13 13:20:02 +0000
commite6760bcc5348499c79e82045e12adf17f27d9a40 (patch)
treeb5468b27a84349a9a3bada1eac3feaaceaa80558 /ld
parentb5f5fd962ef368674d3460bf78a9c6d13a2ab72b (diff)
downloadgdb-e6760bcc5348499c79e82045e12adf17f27d9a40.zip
gdb-e6760bcc5348499c79e82045e12adf17f27d9a40.tar.gz
gdb-e6760bcc5348499c79e82045e12adf17f27d9a40.tar.bz2
2007-11-13 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/5233 * ld-elf/flags1.d: New. * ld-elf/flags1.ld: Likewise. * ld-elf/flags1.s: Likewise.
Diffstat (limited to 'ld')
-rw-r--r--ld/testsuite/ChangeLog9
-rw-r--r--ld/testsuite/ld-elf/flags1.d14
-rw-r--r--ld/testsuite/ld-elf/flags1.ld12
-rw-r--r--ld/testsuite/ld-elf/flags1.s5
4 files changed, 39 insertions, 1 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index 83fce11..2202498 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,10 @@
+2007-11-13 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR binutils/5233
+ * ld-elf/flags1.d: New.
+ * ld-elf/flags1.ld: Likewise.
+ * ld-elf/flags1.s: Likewise.
+
2007-11-13 Nick Clifton <nickc@redhat.com>
* ld-mn10300/i127740.s: New test: Checks relaxation and alignment.
@@ -99,7 +106,7 @@
2007-10-16 Nick Clifton <nickc@redhat.com>
- * lf-elfcomm/elfcomm.exp: Add tests of STT_COMMON symbol
+ * ld-elfcomm/elfcomm.exp: Add tests of STT_COMMON symbol
generation.
2007-10-12 Joseph Myers <joseph@codesourcery.com>
diff --git a/ld/testsuite/ld-elf/flags1.d b/ld/testsuite/ld-elf/flags1.d
new file mode 100644
index 0000000..5a3407b
--- /dev/null
+++ b/ld/testsuite/ld-elf/flags1.d
@@ -0,0 +1,14 @@
+#name: --set-section-flags test 1 (sections)
+#ld: -Tflags1.ld
+#objcopy_linked_file: --set-section-flags .post_text_reserve=contents,alloc,load,readonly,code
+#readelf: -l --wide
+
+#...
+Program Headers:
+ Type.*
+ LOAD +0x[0-9a-f]+ 0x0*0 0x0*0 0x0*0161 0x0*0161 RWE 0x[0-9a-f]+
+
+#...
+ Segment Sections...
+ 00[ \t]+.text .post_text_reserve[ \t]*
+#pass
diff --git a/ld/testsuite/ld-elf/flags1.ld b/ld/testsuite/ld-elf/flags1.ld
new file mode 100644
index 0000000..a94cbe8
--- /dev/null
+++ b/ld/testsuite/ld-elf/flags1.ld
@@ -0,0 +1,12 @@
+SECTIONS
+{
+ .text :
+ {
+ *(.text)
+ } =0
+ .post_text_reserve :
+ {
+ . += 0x160;
+ }
+ /DISCARD/ : { *(.*) }
+}
diff --git a/ld/testsuite/ld-elf/flags1.s b/ld/testsuite/ld-elf/flags1.s
new file mode 100644
index 0000000..0562131
--- /dev/null
+++ b/ld/testsuite/ld-elf/flags1.s
@@ -0,0 +1,5 @@
+ .text
+.globl start
+ .type start, @function
+start:
+ .byte 0