diff options
author | Alan Modra <amodra@gmail.com> | 2022-02-22 09:20:31 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2022-02-22 09:32:26 +1030 |
commit | cf53a97bedd257aa6612129e4bdf8618f6a038cd (patch) | |
tree | e7ab92818a69b032488295b91eb30b9b9d820319 /bfd/section.c | |
parent | 216722984fec8aa76e2d97d7b8fcc2fb1608825b (diff) | |
download | gdb-cf53a97bedd257aa6612129e4bdf8618f6a038cd.zip gdb-cf53a97bedd257aa6612129e4bdf8618f6a038cd.tar.gz gdb-cf53a97bedd257aa6612129e4bdf8618f6a038cd.tar.bz2 |
Re: ld: Support customized output section type
"DO NOT EDIT!" says the comment at the top of bfd-in2.h. Move the new
type field where it belongs.
PR ld/28841
* section.c (struct bfd_section): Add type. Formatting.
(BFD_FAKE_SECTION): Formatting.
* bfd-in2.h: Regenerate.
Diffstat (limited to 'bfd/section.c')
-rw-r--r-- | bfd/section.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/bfd/section.c b/bfd/section.c index 2de7dbf..9a10714 100644 --- a/bfd/section.c +++ b/bfd/section.c @@ -551,9 +551,14 @@ CODE_FRAGMENT . struct bfd_section *s; . const char *linked_to_symbol_name; . } map_head, map_tail; -. {* Points to the output section this section is already assigned to, if any. -. This is used when support for non-contiguous memory regions is enabled. *} -. struct bfd_section *already_assigned; +. +. {* Points to the output section this section is already assigned to, +. if any. This is used when support for non-contiguous memory +. regions is enabled. *} +. struct bfd_section *already_assigned; +. +. {* Explicitly specified section type, if non-zero. *} +. unsigned int type; . .} asection; . @@ -738,7 +743,7 @@ CODE_FRAGMENT . (struct bfd_symbol *) SYM, &SEC.symbol, \ . \ . {* map_head, map_tail, already_assigned, type *} \ -. { NULL }, { NULL }, NULL, 0 \ +. { NULL }, { NULL }, NULL, 0 \ . \ . } . |