diff options
author | Alan Modra <amodra@gmail.com> | 2000-05-11 01:48:09 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2000-05-11 01:48:09 +0000 |
commit | 426b0403963b328d6ccd7abc93f87a9c38f3e718 (patch) | |
tree | f9cf1c281c9b6f6e1d5b8d57e1c2f47080350ebd /gas/config | |
parent | 9e12421610186897f3147622fb7d28806a527c46 (diff) | |
download | gdb-426b0403963b328d6ccd7abc93f87a9c38f3e718.zip gdb-426b0403963b328d6ccd7abc93f87a9c38f3e718.tar.gz gdb-426b0403963b328d6ccd7abc93f87a9c38f3e718.tar.bz2 |
(md_estimate_size_before_relax): Use the external version of
the relocation for weak symbols.
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/tc-mips.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c index bb7e227..155dfe2 100644 --- a/gas/config/tc-mips.c +++ b/gas/config/tc-mips.c @@ -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 (); |