aboutsummaryrefslogtreecommitdiff
path: root/gas/config/obj-coff.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2001-05-25 09:40:12 +0000
committerAlan Modra <amodra@gmail.com>2001-05-25 09:40:12 +0000
commit1cd55018a65dbe3bbd25772c16d78feef8ede1cc (patch)
treea43da671691000c05583492e7760b3f3a06221d6 /gas/config/obj-coff.c
parentc709b09623de19e3f904bf512d59fea102e2b077 (diff)
downloadgdb-1cd55018a65dbe3bbd25772c16d78feef8ede1cc.zip
gdb-1cd55018a65dbe3bbd25772c16d78feef8ede1cc.tar.gz
gdb-1cd55018a65dbe3bbd25772c16d78feef8ede1cc.tar.bz2
* config/obj-ieee.c (write_object_file): Set finalize_syms.
* config/obj-coff.c (write_object_file): Likewise. * (size_section): Remove rs_space assert as fr_symbol is no longer removed. (fill_section): Likewise.
Diffstat (limited to 'gas/config/obj-coff.c')
-rw-r--r--gas/config/obj-coff.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gas/config/obj-coff.c b/gas/config/obj-coff.c
index da07960..84706cf 100644
--- a/gas/config/obj-coff.c
+++ b/gas/config/obj-coff.c
@@ -1824,7 +1824,6 @@ size_section (abfd, idx)
break;
#endif
case rs_space:
- assert (frag->fr_symbol == 0);
case rs_fill:
case rs_org:
size += frag->fr_fix;
@@ -2138,7 +2137,6 @@ fill_section (abfd, h, file_cursor)
break;
case rs_space:
- assert (frag->fr_symbol == 0);
case rs_fill:
case rs_align:
case rs_align_code:
@@ -3473,6 +3471,9 @@ write_object_file ()
relax_segment (segment_info[i].frchainP->frch_root, i);
}
+ /* Relaxation has completed. Freeze all syms. */
+ finalize_syms = 1;
+
H_SET_NUMBER_OF_SECTIONS (&headers, 0);
/* Find out how big the sections are, and set the addresses. */