mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-24 10:35:12 +08:00
(md_estimate_size_before_relax): Use the external version of
the relocation for weak symbols.
This commit is contained in:
parent
9e12421610
commit
426b040396
@ -1,3 +1,8 @@
|
||||
2000-05-11 Ulf Carlsson <ulfc@engr.sgi.com>
|
||||
|
||||
* config/tc-mips.c (md_estimate_size_before_relax): Use the
|
||||
external version of the relocation for weak symbols.
|
||||
|
||||
2000-05-08 David Mosberger <davidm@hpl.hp.com>
|
||||
|
||||
* config/tc-ia64.c (output_P7_format, case mem_stack_f): Output fixed
|
||||
|
@ -11021,7 +11021,12 @@ md_estimate_size_before_relax (fragp, segtype)
|
||||
/* This must duplicate the test in adjust_reloc_syms. */
|
||||
change = (symsec != &bfd_und_section
|
||||
&& symsec != &bfd_abs_section
|
||||
&& ! bfd_is_com_section (symsec));
|
||||
&& ! bfd_is_com_section (symsec)
|
||||
#ifdef OBJ_ELF
|
||||
/* A weak symbol is treated as external. */
|
||||
&& ! S_IS_WEAK (sym)
|
||||
#endif
|
||||
);
|
||||
}
|
||||
else
|
||||
abort ();
|
||||
|
Loading…
Reference in New Issue
Block a user