aboutsummaryrefslogtreecommitdiff
path: root/gas/write.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2001-07-03 15:04:19 +0000
committerNick Clifton <nickc@redhat.com>2001-07-03 15:04:19 +0000
commit875488164582218721d98a407d699f57862f63da (patch)
treea2cd5894cfd978d3bbb940863990f4fc9bc2fc44 /gas/write.c
parentd81420d2331395583e9b45f51b1bdfc8374dfc12 (diff)
downloadgdb-875488164582218721d98a407d699f57862f63da.zip
gdb-875488164582218721d98a407d699f57862f63da.tar.gz
gdb-875488164582218721d98a407d699f57862f63da.tar.bz2
Fix mips16 testsuite failure by allowing finalize_syms to be set before
size_segs is called.
Diffstat (limited to 'gas/write.c')
-rw-r--r--gas/write.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/gas/write.c b/gas/write.c
index f17a6fa..4e1e06a 100644
--- a/gas/write.c
+++ b/gas/write.c
@@ -52,6 +52,10 @@
#define TC_FIX_ADJUSTABLE(fix) 1
#endif
+#ifndef TC_FINALIZE_SYMS_BEFORE_SIZE_SEG
+#define TC_FINALIZE_SYMS_BEFORE_SIZE_SEG 1
+#endif
+
#ifndef MD_PCREL_FROM_SECTION
#define MD_PCREL_FROM_SECTION(FIXP, SEC) md_pcrel_from(FIXP)
#endif
@@ -1575,9 +1579,15 @@ write_object_file ()
break;
}
- /* Note - we do not set finalize_syms here because some targets
- do not finish sizing all of their frags until after size_seg
- has completed. */
+ /* Note - Most ports will use the default value of
+ TC_FINALIZE_SYMS_BEFORE_SIZE_SEG, which 1. This will force
+ local symbols to be resolved, removing their frag information.
+ Some ports however, will not have finished relaxing all of
+ their frags and will still need the local symbol frag
+ information. These ports can set
+ TC_FINALIZE_SYMS_BEFORE_SIZE_SEG to 0. */
+ finalize_syms = TC_FINALIZE_SYMS_BEFORE_SIZE_SEG;
+
bfd_map_over_sections (stdoutput, size_seg, (char *) 0);
#else
relax_and_size_all_segments ();