diff options
author | Ian Lance Taylor <ian@airs.com> | 1996-03-27 22:23:18 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1996-03-27 22:23:18 +0000 |
commit | ff0e4a93416510eaac29ab780ab631dbeb81206a (patch) | |
tree | 538940f60249f08cc085d9762546aa5708dd4963 /bfd/section.c | |
parent | 9addd1d4fdf2514723a9d847271cd546a3d0f207 (diff) | |
download | gdb-ff0e4a93416510eaac29ab780ab631dbeb81206a.zip gdb-ff0e4a93416510eaac29ab780ab631dbeb81206a.tar.gz gdb-ff0e4a93416510eaac29ab780ab631dbeb81206a.tar.bz2 |
Remove SEC_LINKER_MARK, and add a linker_mark bitfield to the asection
structure instead.
Diffstat (limited to 'bfd/section.c')
-rw-r--r-- | bfd/section.c | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/bfd/section.c b/bfd/section.c index 840606d..469b026 100644 --- a/bfd/section.c +++ b/bfd/section.c @@ -269,12 +269,21 @@ CODE_FRAGMENT . table. *} .#define SEC_SORT_ENTRIES 0x80000 . -. {* A mark flag used by some of the linker backends. This -. should not be set by application code. *} -.#define SEC_LINKER_MARK 0x100000 -. . {* End of section flags. *} . +. {* Some internal packed boolean fields. *} +. +. {* See the vma field. *} +. unsigned int user_set_vma : 1; +. +. {* Whether relocations have been processed. *} +. unsigned int reloc_done : 1; +. +. {* A mark flag used by some of the linker backends. *} +. unsigned int linker_mark : 1; +. +. {* End of internal packed boolean fields. *} +. . {* The virtual memory address of the section - where it will be . at run time. The symbols are relocated against this. The . user_set_vma flag is maintained by bfd; if it's not set, the @@ -283,7 +292,6 @@ CODE_FRAGMENT . target and various flags). *} . . bfd_vma vma; -. boolean user_set_vma; . . {* The load address of the section - where it would be in a . rom image; really only used for writing section header @@ -384,7 +392,6 @@ CODE_FRAGMENT . . bfd *owner; . -. boolean reloc_done; . {* A symbol which points at this section only *} . struct symbol_cache_entry *symbol; . struct symbol_cache_entry **symbol_ptr_ptr; @@ -443,9 +450,9 @@ static const asymbol global_syms[] = #define STD_SECTION(SEC, FLAGS, SYM, NAME, IDX) \ const asymbol * const SYM = (asymbol *) &global_syms[IDX]; \ const asection SEC = \ - { NAME, 0, 0, FLAGS, 0, false, 0, 0, 0, 0, (asection *) &SEC, \ - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, (boolean) 0, \ - (asymbol *) &global_syms[IDX], (asymbol **) &SYM, } + { NAME, 0, 0, FLAGS, 0, 0, 0, 0, 0, 0, 0, 0, (asection *) &SEC, \ + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \ + (asymbol *) &global_syms[IDX], (asymbol **) &SYM, 0, 0 } STD_SECTION (bfd_com_section, SEC_IS_COMMON, bfd_com_symbol, BFD_COM_SECTION_NAME, 0); |