aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2006-08-01 17:50:52 +0000
committerH.J. Lu <hjl.tools@gmail.com>2006-08-01 17:50:52 +0000
commit12d814e1a0dc0a0cc351c2ce5c9c9ccacf5ec9b8 (patch)
tree2dc3a545d004e8e3de8fe2b08d495592b35e1c67 /ld/testsuite/ld-elf
parentb4c71f5629b187808be5a73ed5fa2220a9a189c1 (diff)
downloadgdb-12d814e1a0dc0a0cc351c2ce5c9c9ccacf5ec9b8.zip
gdb-12d814e1a0dc0a0cc351c2ce5c9c9ccacf5ec9b8.tar.gz
gdb-12d814e1a0dc0a0cc351c2ce5c9c9ccacf5ec9b8.tar.bz2
ld/
2006-08-01 H.J. Lu <hongjiu.lu@intel.com> * ldlang.c (init_os): Add flags. Replace bfd_make_section with bfd_make_section_with_flags. (exp_init_os): Updated. (lang_add_section): Call init_os with flags. (map_input_to_output_sections): Likewise. ld/testsuite/ 2006-08-01 H.J. Lu <hongjiu.lu@intel.com> * ld-elf/noload-1.d: New. * ld-elf/noload-1.s: Likewise. * ld-elf/noload-1.t: Likewise.
Diffstat (limited to 'ld/testsuite/ld-elf')
-rw-r--r--ld/testsuite/ld-elf/noload-1.d7
-rw-r--r--ld/testsuite/ld-elf/noload-1.s2
-rw-r--r--ld/testsuite/ld-elf/noload-1.t8
3 files changed, 17 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/noload-1.d b/ld/testsuite/ld-elf/noload-1.d
new file mode 100644
index 0000000..7cae479
--- /dev/null
+++ b/ld/testsuite/ld-elf/noload-1.d
@@ -0,0 +1,7 @@
+#source: noload-1.s
+#ld: -T noload-1.t
+#readelf: -S --wide
+
+#...
+ \[[ 0-9]+\] TEST[ \t]+NOBITS[ \t0-9a-f]+WA.*
+#pass
diff --git a/ld/testsuite/ld-elf/noload-1.s b/ld/testsuite/ld-elf/noload-1.s
new file mode 100644
index 0000000..ad0479e
--- /dev/null
+++ b/ld/testsuite/ld-elf/noload-1.s
@@ -0,0 +1,2 @@
+ .section TEST,"aw",%progbits
+ .byte 0
diff --git a/ld/testsuite/ld-elf/noload-1.t b/ld/testsuite/ld-elf/noload-1.t
new file mode 100644
index 0000000..1efd06c
--- /dev/null
+++ b/ld/testsuite/ld-elf/noload-1.t
@@ -0,0 +1,8 @@
+SECTIONS
+{
+ TEST (NOLOAD) :
+ {
+ *(TEST)
+ }
+ /DISCARD/ : { *(.*) }
+}