aboutsummaryrefslogtreecommitdiff
path: root/bfd/ecoff.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2001-05-17 03:58:45 +0000
committerAlan Modra <amodra@gmail.com>2001-05-17 03:58:45 +0000
commitd1778b88f8d8444f15ecf2dbbbf680c5659efb53 (patch)
treed0c2d446eb4084bf8e218f551028a2e03d985b17 /bfd/ecoff.c
parentaaa4f6d96fb87589796623dfc045d7a8b68c7228 (diff)
downloadgdb-d1778b88f8d8444f15ecf2dbbbf680c5659efb53.zip
gdb-d1778b88f8d8444f15ecf2dbbbf680c5659efb53.tar.gz
gdb-d1778b88f8d8444f15ecf2dbbbf680c5659efb53.tar.bz2
Add a flag to asection, linker_has_input, and use it to reliably
determine whether an input section is the first one assigned to an output section.
Diffstat (limited to 'bfd/ecoff.c')
-rw-r--r--bfd/ecoff.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/bfd/ecoff.c b/bfd/ecoff.c
index 2237441..d05c15f 100644
--- a/bfd/ecoff.c
+++ b/bfd/ecoff.c
@@ -74,12 +74,14 @@ static unsigned int ecoff_armap_hash PARAMS ((CONST char *s,
static asection bfd_debug_section =
{
- /* name, id, index, next, flags, user_set_vma, reloc_done, */
- "*DEBUG*", 0, 0, NULL, 0, 0, 0,
- /* linker_mark, gc_mark, segment_mark, vma, lma, _cooked_size, */
- 0, 0, 0, 0, 0, 0,
- /* _raw_size, output_offset, output_section, alignment_power, */
- 0, 0, NULL, 0,
+ /* name, id, index, next, flags, user_set_vma, reloc_done, */
+ "*DEBUG*", 0, 0, NULL, 0, 0, 0,
+ /* linker_mark, linker_has_input, gc_mark, segment_mark, */
+ 0, 0, 0, 0,
+ /* vma, lma, _cooked_size, _raw_size, */
+ 0, 0, 0, 0,
+ /* output_offset, output_section, alignment_power, */
+ 0, NULL, 0,
/* relocation, orelocation, reloc_count, filepos, rel_filepos, */
NULL, NULL, 0, 0, 0,
/* line_filepos, userdata, contents, lineno, lineno_count, */