diff options
author | Nick Clifton <nickc@redhat.com> | 2001-07-03 15:04:19 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2001-07-03 15:04:19 +0000 |
commit | 462ccbf791d3dd827cb2b8dd9d686d9f27da36c0 (patch) | |
tree | af4fd27609500f6e9e7bef4ca445a14abaa23d98 /gas/write.c | |
parent | 38807cc7709d374cadb10fc3100c7e0119856163 (diff) | |
download | binutils-redhat-462ccbf791d3dd827cb2b8dd9d686d9f27da36c0.tar.gz |
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.c | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/gas/write.c b/gas/write.c index f17a6fa8e2..4e1e06af01 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 (); |