mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-20 01:50:24 +08:00
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.
This commit is contained in:
@ -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. */
|
||||
|
Reference in New Issue
Block a user