aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2020-02-27 16:26:19 +1030
committerAlan Modra <amodra@gmail.com>2020-02-28 08:19:42 +1030
commit5f6028029146629b5fd5732e20c600b5837c20a9 (patch)
tree5ab6cbc0826239b1753582b4a8cb08359a33e025 /bfd
parent49d9fd42acefc1c0ee282b5808874a1074bf1ecd (diff)
downloadfsf-binutils-gdb-5f6028029146629b5fd5732e20c600b5837c20a9.zip
fsf-binutils-gdb-5f6028029146629b5fd5732e20c600b5837c20a9.tar.gz
fsf-binutils-gdb-5f6028029146629b5fd5732e20c600b5837c20a9.tar.bz2
mmix-mmo set SEC_DATA for .data section
With the bfd_decode_symclass change, ld SIZEOF test fails due to data_end being reported as type '?'. bfd/ PR 24511 * mmo.c (mmo_scan): Set SEC_DATA for .data. ld/ PR 24511 * testsuite/ld-mmix/b-fixo2.d: Adjust for .data change. * testsuite/ld-mmix/sec-2.d: Likewise. * testsuite/ld-mmix/sec-3.d: Likewise. * testsuite/ld-mmix/sec-4.d: Likewise. * testsuite/ld-mmix/spec802.d: Likewise. * testsuite/ld-mmix/spec803.d: Likewise. * testsuite/ld-mmix/spec804.d: Likewise. * testsuite/ld-mmix/spec805.d: Likewise. * testsuite/ld-mmix/spec806.d: Likewise. * testsuite/ld-mmix/spec807.d: Likewise. * testsuite/ld-mmix/spec808.d: Likewise.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/mmo.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 6b26709..b300326 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,6 +1,11 @@
2020-02-27 Alan Modra <amodra@gmail.com>
PR 24511
+ * mmo.c (mmo_scan): Set SEC_DATA for .data.
+
+2020-02-27 Alan Modra <amodra@gmail.com>
+
+ PR 24511
* syms.c (stt): Trim off all but 'e', 'i' and 'p' entries.
(coff_section_type): Adjust comment.
(decode_section_type): Likewise. Call coff_section_type before
diff --git a/bfd/mmo.c b/bfd/mmo.c
index 9ac689d..073c37c 100644
--- a/bfd/mmo.c
+++ b/bfd/mmo.c
@@ -2074,7 +2074,7 @@ mmo_scan (bfd *abfd)
if (sec != NULL
&& (bfd_section_flags (sec) & SEC_HAS_CONTENTS)
&& !bfd_set_section_flags (sec, (bfd_section_flags (sec)
- | SEC_ALLOC | SEC_LOAD)))
+ | SEC_ALLOC | SEC_LOAD | SEC_DATA)))
error = TRUE;
/* Free whatever resources we took. */