From: Alan Modra Date: Fri, 25 May 2001 09:40:12 +0000 (+0000) Subject: * config/obj-ieee.c (write_object_file): Set finalize_syms. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1cd55018a65dbe3bbd25772c16d78feef8ede1cc;p=binutils-gdb.git * 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. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index b7e762f351b..8bcc652af03 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,11 @@ 2001-05-25 Alan Modra + * 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. + * configure.in: Replace linuxoldld with linux*oldld. * configure: Regenerate. diff --git a/gas/config/obj-coff.c b/gas/config/obj-coff.c index da07960b3cc..84706cfb2c4 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. */ diff --git a/gas/config/obj-ieee.c b/gas/config/obj-ieee.c index 521a0d72a3f..8c0e3f253f1 100644 --- a/gas/config/obj-ieee.c +++ b/gas/config/obj-ieee.c @@ -558,6 +558,9 @@ write_object_file () for (i = SEG_E0; i < SEG_UNKNOWN; i++) relax_segment (segment_info[i].frag_root, i); + /* Relaxation has completed. Freeze all syms. */ + finalize_syms = 1; + /* Now the addresses of the frags are correct within the segment. */ bfd_as_write_hook ();