summaryrefslogtreecommitdiff
path: root/bfd/section.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl@lucon.org>2000-08-03 13:50:35 +0000
committerH.J. Lu <hjl@lucon.org>2000-08-03 13:50:35 +0000
commite898ba03a7284eec230a99026eebb216b1382d32 (patch)
treee750094816081b7f39e4632ca7b7e42fa32cd6b0 /bfd/section.c
parent611b5b4fbe3381a798521620ba4bbf88147cf83a (diff)
downloadgdb-e898ba03a7284eec230a99026eebb216b1382d32.tar.gz
2000-08-03 H.J. Lu <hjl@gnu.org>
* section.c: Back out the change made by Nick Clifton <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic binaries. * bfd-in2.h: Likewise. * elf.c: Likewise.
Diffstat (limited to 'bfd/section.c')
-rw-r--r--bfd/section.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/bfd/section.c b/bfd/section.c
index b9a39b6ac38..9006d195f84 100644
--- a/bfd/section.c
+++ b/bfd/section.c
@@ -363,9 +363,6 @@ CODE_FRAGMENT
. {* A mark flag used by some linker backends for garbage collection. *}
. unsigned int gc_mark : 1;
.
-. {* Used by the ELF code to mark sections which have been allocated to segments. *}
-. unsigned int segment_mark : 1;
-.
. {* End of internal packed boolean fields. *}
.
. {* The virtual memory address of the section - where it will be
@@ -552,17 +549,17 @@ static const asymbol global_syms[] =
GLOBAL_SYM_INIT (BFD_IND_SECTION_NAME, &bfd_ind_section)
};
-#define STD_SECTION(SEC, FLAGS, SYM, NAME, IDX) \
- const asymbol * const SYM = (asymbol *) &global_syms[IDX]; \
- const asection SEC = \
+#define STD_SECTION(SEC, FLAGS, SYM, NAME, IDX) \
+ const asymbol * const SYM = (asymbol *) &global_syms[IDX]; \
+ const asection SEC = \
/* name, id, index, next, flags, user_set_vma, reloc_done, */ \
{ NAME, IDX, 0, NULL, FLAGS, 0, 0, \
\
- /* linker_mark, gc_mark, segment_mark, vma, lma, _cooked_size, */ \
- 0, 0, 0, 0, 0, 0, \
+ /* linker_mark, gc_mark, vma, lma, _cooked_size, _raw_size, */ \
+ 0, 0, 0, 0, 0, 0, \
\
- /* _raw_size, output_offset, output_section, alignment_power, */ \
- 0, 0, (struct sec *) &SEC, 0, \
+ /* output_offset, output_section, alignment_power, */ \
+ 0, (struct sec *) &SEC, 0, \
\
/* relocation, orelocation, reloc_count, filepos, rel_filepos, */ \
NULL, NULL, 0, 0, 0, \