mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-11-28 06:20:30 +00:00
Allow SEC_CODE and SEC_READONLY in section flags.
This commit is contained in:
parent
1849850340
commit
0df8acdee9
@ -4,6 +4,8 @@
|
||||
tic4x_coff1_vec, tic4x_coff1_beh_vec, tic4x_coff2_vec,
|
||||
tic4x_coff2_beh_vec): Allow SEC_CODE and SEC_READONLY in
|
||||
section flags.
|
||||
* coff-ppc.c (TARGET_LITTLE_SYM): Likewise.
|
||||
(TARGET_BIG_SYM): Likewise.
|
||||
|
||||
2012-11-06 Alan Modra <amodra@gmail.com>
|
||||
|
||||
|
@ -2480,10 +2480,11 @@ const bfd_target TARGET_LITTLE_SYM =
|
||||
HAS_SYMS | HAS_LOCALS | WP_TEXT | D_PAGED),
|
||||
|
||||
#ifndef COFF_WITH_PE
|
||||
(SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_RELOC), /* section flags */
|
||||
(SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_CODE | SEC_READONLY
|
||||
| SEC_RELOC), /* section flags */
|
||||
#else
|
||||
(SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_RELOC /* section flags */
|
||||
| SEC_LINK_ONCE | SEC_LINK_DUPLICATES),
|
||||
(SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_CODE | SEC_READONLY
|
||||
| SEC_RELOC | SEC_LINK_ONCE | SEC_LINK_DUPLICATES),
|
||||
#endif
|
||||
|
||||
0, /* leading char */
|
||||
@ -2540,10 +2541,11 @@ const bfd_target TARGET_BIG_SYM =
|
||||
HAS_SYMS | HAS_LOCALS | WP_TEXT | D_PAGED),
|
||||
|
||||
#ifndef COFF_WITH_PE
|
||||
(SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_RELOC), /* section flags */
|
||||
(SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_CODE | SEC_READONLY
|
||||
| SEC_RELOC), /* section flags */
|
||||
#else
|
||||
(SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_RELOC /* section flags */
|
||||
| SEC_LINK_ONCE | SEC_LINK_DUPLICATES),
|
||||
(SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_CODE | SEC_READONLY
|
||||
| SEC_RELOC | SEC_LINK_ONCE | SEC_LINK_DUPLICATES),
|
||||
#endif
|
||||
|
||||
0, /* leading char */
|
||||
|
Loading…
Reference in New Issue
Block a user