Mon Jun 16 14:42:14 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
* elfcode.h (put_signed_word): Define. (get_signed_word): Define. (elf_swap_reloca_in): Use get_signed_word for the r_addend field. (elf_swap_reloca_out): Use put_signed_word for the r_addend field. * elf32-m68k.c (elf_m68k_finish_dynamic_symbol): Use bfd_get_signed_32 to set the r_addend field. * elf64-mips.c (mips_elf64_swap_reloca_in): Use bfd_h_get_signed_64 to set the r_addend field.
This commit is contained in:
parent
c19fbe0f57
commit
fdc944a7fb
2 changed files with 15 additions and 2 deletions
|
@ -1,3 +1,15 @@
|
||||||
|
Mon Jun 16 14:42:14 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
|
||||||
|
|
||||||
|
* elfcode.h (put_signed_word): Define.
|
||||||
|
(get_signed_word): Define.
|
||||||
|
(elf_swap_reloca_in): Use get_signed_word for the r_addend field.
|
||||||
|
(elf_swap_reloca_out): Use put_signed_word for the r_addend
|
||||||
|
field.
|
||||||
|
* elf32-m68k.c (elf_m68k_finish_dynamic_symbol): Use
|
||||||
|
bfd_get_signed_32 to set the r_addend field.
|
||||||
|
* elf64-mips.c (mips_elf64_swap_reloca_in): Use
|
||||||
|
bfd_h_get_signed_64 to set the r_addend field.
|
||||||
|
|
||||||
Mon Jun 16 12:31:29 1997 Ian Lance Taylor <ian@cygnus.com>
|
Mon Jun 16 12:31:29 1997 Ian Lance Taylor <ian@cygnus.com>
|
||||||
|
|
||||||
* elflink.h (NAME(bfd_elf,size_dynamic_sections)): Call
|
* elflink.h (NAME(bfd_elf,size_dynamic_sections)): Call
|
||||||
|
|
|
@ -1626,8 +1626,9 @@ elf_m68k_finish_dynamic_symbol (output_bfd, info, h, sym)
|
||||||
&& (h->elf_link_hash_flags & ELF_LINK_HASH_DEF_REGULAR))
|
&& (h->elf_link_hash_flags & ELF_LINK_HASH_DEF_REGULAR))
|
||||||
{
|
{
|
||||||
rela.r_info = ELF32_R_INFO (0, R_68K_RELATIVE);
|
rela.r_info = ELF32_R_INFO (0, R_68K_RELATIVE);
|
||||||
rela.r_addend = bfd_get_32 (output_bfd,
|
rela.r_addend = bfd_get_signed_32 (output_bfd,
|
||||||
sgot->contents + (h->got_offset & ~1));
|
(sgot->contents
|
||||||
|
+ (h->got_offset & ~1)));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue