diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2005-02-28 15:57:13 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2005-02-28 15:57:13 +0000 |
commit | af44c138410f6f30e1b01a5551ebbb36fd93682d (patch) | |
tree | 036587f724506f733fd502c0a01e7d39c60d3fa4 /bfd/elf32-sh-symbian.c | |
parent | e9e446227d91e4e0902ee7a3a1381b64eacfcd68 (diff) | |
download | gdb-af44c138410f6f30e1b01a5551ebbb36fd93682d.zip gdb-af44c138410f6f30e1b01a5551ebbb36fd93682d.tar.gz gdb-af44c138410f6f30e1b01a5551ebbb36fd93682d.tar.bz2 |
2005-02-28 H.J. Lu <hongjiu.lu@intel.com>
PR 757
* elf-bfd.h (_bfd_elf_merge_symbol): Add a pointer to unsigned
int.
* elf32-sh-symbian.c (sh_symbian_relocate_section): Pass NULL
to _bfd_elf_merge_symbol.
* elflink.c (_bfd_elf_merge_symbol): Use the pointer to
unsigned int to return the alignment of the old common symbol
in the dynamic object.
(_bfd_elf_add_default_symbol): Pass NULL to
_bfd_elf_merge_symbol.
(elf_link_add_object_symbols): Pass &old_alignment to
_bfd_elf_merge_symbol. Get the alignment of the new common
symbol in the dynamic object.
Diffstat (limited to 'bfd/elf32-sh-symbian.c')
-rw-r--r-- | bfd/elf32-sh-symbian.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/bfd/elf32-sh-symbian.c b/bfd/elf32-sh-symbian.c index 8b15606..6a74f57 100644 --- a/bfd/elf32-sh-symbian.c +++ b/bfd/elf32-sh-symbian.c @@ -492,8 +492,11 @@ sh_symbian_relocate_section (bfd * output_bfd, new_sym.st_other = ELF_ST_VISIBILITY (STV_DEFAULT); new_sym.st_shndx = SHN_UNDEF; - if (! _bfd_elf_merge_symbol (input_bfd, info, ptr->new_name, & new_sym, & psec, - & new_value, & new_hash, & skip, & override, & type_change_ok, + if (! _bfd_elf_merge_symbol (input_bfd, info, + ptr->new_name, & new_sym, + & psec, & new_value, NULL, + & new_hash, & skip, + & override, & type_change_ok, & size_change_ok)) { _bfd_error_handler (_("%B: Failed to add renamed symbol %s"), |