summaryrefslogtreecommitdiffstats
path: root/gold/testsuite/script_test_9.t
diff options
context:
space:
mode:
authorRafael Ávila de Espíndola <respindola@mozilla.com>2010-05-19 17:49:19 +0000
committerRafael Ávila de Espíndola <respindola@mozilla.com>2010-05-19 17:49:19 +0000
commitd103a984a7657828c654330e89ce670490ae5825 (patch)
treed79be20f535293f8fef502700f30aacdf96a0e81 /gold/testsuite/script_test_9.t
parent28d3cf859d41459121c74042aa5dbad3450cafcb (diff)
downloadppe42-binutils-d103a984a7657828c654330e89ce670490ae5825.tar.gz
ppe42-binutils-d103a984a7657828c654330e89ce670490ae5825.zip
2010-05-19 Rafael Espindola <espindola@google.com>
* script-sections.cc (Output_section_definition::allocate_to_segment): Update the phdrs_list even when the output section is NULL. * testsuite/Makefile.am: Add test. * testsuite/Makefile.in: Regenerate. * testsuite/script_test_9.cc: New. * testsuite/script_test_9.sh: New. * testsuite/script_test_9.t: New.
Diffstat (limited to 'gold/testsuite/script_test_9.t')
-rw-r--r--gold/testsuite/script_test_9.t18
1 files changed, 18 insertions, 0 deletions
diff --git a/gold/testsuite/script_test_9.t b/gold/testsuite/script_test_9.t
new file mode 100644
index 0000000000..58cc3500c4
--- /dev/null
+++ b/gold/testsuite/script_test_9.t
@@ -0,0 +1,18 @@
+PHDRS
+{
+ text PT_LOAD FLAGS(5);
+ data PT_LOAD FLAGS(6);
+}
+
+SECTIONS
+{
+ .init :
+ {
+ } :text
+ .text :
+ {
+ }
+ .data :
+ {
+ } :data
+}
OpenPOWER on IntegriCloud