* write.c (adjust_reloc_syms): Rather than never reducing reloc

which refer to symbols in linkonce sections, permit reducing the
	relocs if the symbol is local.
This commit is contained in:
Ian Lance Taylor
1999-06-12 22:15:51 +00:00
parent aa8804e46e
commit 7565ed77a1
2 changed files with 11 additions and 5 deletions

@ -1,3 +1,9 @@
1999-06-13 Ian Lance Taylor <ian@zembu.com>
* write.c (adjust_reloc_syms): Rather than never reducing reloc
which refer to symbols in linkonce sections, permit reducing the
relocs if the symbol is local.
1999-06-12 Ian Lance Taylor <ian@zembu.com> 1999-06-12 Ian Lance Taylor <ian@zembu.com>
* subsegs.c (subseg_text_p): New function. * subsegs.c (subseg_text_p): New function.

@ -780,11 +780,11 @@ adjust_reloc_syms (abfd, sec, xxx)
goto done; goto done;
} }
/* Don't try to reduce relocs which refer to .linkonce /* Don't try to reduce relocs which refer to non-local symbols
sections. It can lead to confusion when a debugging in .linkonce sections. It can lead to confusion when a
section refers to a .linkonce section. I hope this will debugging section refers to a .linkonce section. I hope
always be correct. */ this will always be correct. */
if (symsec != sec) if (symsec != sec && ! S_IS_LOCAL (sym))
{ {
boolean linkonce; boolean linkonce;