mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-25 21:41:47 +08:00
bfd/
* elf32-arm.c (elf32_arm_populate_plt_entry): Use int32_t for displacement calculation in nacl_p case.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2012-06-28 Roland McGrath <mcgrathr@google.com>
|
||||||
|
|
||||||
|
* elf32-arm.c (elf32_arm_populate_plt_entry): Use int32_t for
|
||||||
|
displacement calculation in nacl_p case.
|
||||||
|
|
||||||
2012-06-28 Nick Clifton <nickc@redhat.com>
|
2012-06-28 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
* po/uk.po: New Ukranian translation.
|
* po/uk.po: New Ukranian translation.
|
||||||
|
@ -23,6 +23,7 @@
|
|||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
|
|
||||||
#include "bfd.h"
|
#include "bfd.h"
|
||||||
|
#include "bfd_stdint.h"
|
||||||
#include "libiberty.h"
|
#include "libiberty.h"
|
||||||
#include "libbfd.h"
|
#include "libbfd.h"
|
||||||
#include "elf-bfd.h"
|
#include "elf-bfd.h"
|
||||||
@ -7629,7 +7630,7 @@ elf32_arm_populate_plt_entry (bfd *output_bfd, struct bfd_link_info *info,
|
|||||||
{
|
{
|
||||||
/* Calculate the displacement between the PLT slot and the
|
/* Calculate the displacement between the PLT slot and the
|
||||||
common tail that's part of the special initial PLT slot. */
|
common tail that's part of the special initial PLT slot. */
|
||||||
bfd_vma tail_displacement
|
int32_t tail_displacement
|
||||||
= ((splt->output_section->vma + splt->output_offset
|
= ((splt->output_section->vma + splt->output_offset
|
||||||
+ ARM_NACL_PLT_TAIL_OFFSET)
|
+ ARM_NACL_PLT_TAIL_OFFSET)
|
||||||
- (plt_address + htab->plt_entry_size + 4));
|
- (plt_address + htab->plt_entry_size + 4));
|
||||||
@ -7642,7 +7643,8 @@ elf32_arm_populate_plt_entry (bfd *output_bfd, struct bfd_link_info *info,
|
|||||||
/* Calculate the displacement between the PLT slot and the entry
|
/* Calculate the displacement between the PLT slot and the entry
|
||||||
in the GOT. The offset accounts for the value produced by
|
in the GOT. The offset accounts for the value produced by
|
||||||
adding to pc in the penultimate instruction of the PLT stub. */
|
adding to pc in the penultimate instruction of the PLT stub. */
|
||||||
got_displacement = got_address - (plt_address + htab->plt_entry_size);
|
got_displacement = (got_address
|
||||||
|
- (plt_address + htab->plt_entry_size));
|
||||||
|
|
||||||
/* NaCl does not support interworking at all. */
|
/* NaCl does not support interworking at all. */
|
||||||
BFD_ASSERT (!elf32_arm_plt_needs_thumb_stub_p (info, arm_plt));
|
BFD_ASSERT (!elf32_arm_plt_needs_thumb_stub_p (info, arm_plt));
|
||||||
|
Reference in New Issue
Block a user