aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-xtensa.c
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@acm.org>2007-10-04 17:15:29 +0000
committerBob Wilson <bob.wilson@acm.org>2007-10-04 17:15:29 +0000
commit0f5f163810a47915de4187b7e2b51192c446b62b (patch)
tree0d0ffa692088ed0b8e5562acac0ab3d5572bfb82 /bfd/elf32-xtensa.c
parent38a57ae7a5cafb2eeca853494a6c2aa994efc956 (diff)
downloadgdb-0f5f163810a47915de4187b7e2b51192c446b62b.zip
gdb-0f5f163810a47915de4187b7e2b51192c446b62b.tar.gz
gdb-0f5f163810a47915de4187b7e2b51192c446b62b.tar.bz2
* elf32-xtensa.c (reloc_bfd_fix_struct): Delete target_abfd field.
(reloc_bfd_fix_init): Remove target_abfd argument. (relax_section, move_literal): Adjust calls to reloc_bfd_fix_init.
Diffstat (limited to 'bfd/elf32-xtensa.c')
-rw-r--r--bfd/elf32-xtensa.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/bfd/elf32-xtensa.c b/bfd/elf32-xtensa.c
index ce553d0..6454a88 100644
--- a/bfd/elf32-xtensa.c
+++ b/bfd/elf32-xtensa.c
@@ -5121,7 +5121,6 @@ struct reloc_bfd_fix_struct
bfd_vma src_offset;
unsigned src_type; /* Relocation type. */
- bfd *target_abfd;
asection *target_sec;
bfd_vma target_offset;
bfd_boolean translated;
@@ -5134,7 +5133,6 @@ static reloc_bfd_fix *
reloc_bfd_fix_init (asection *src_sec,
bfd_vma src_offset,
unsigned src_type,
- bfd *target_abfd,
asection *target_sec,
bfd_vma target_offset,
bfd_boolean translated)
@@ -5145,7 +5143,6 @@ reloc_bfd_fix_init (asection *src_sec,
fix->src_sec = src_sec;
fix->src_offset = src_offset;
fix->src_type = src_type;
- fix->target_abfd = target_abfd;
fix->target_sec = target_sec;
fix->target_offset = target_offset;
fix->translated = translated;
@@ -8231,7 +8228,7 @@ relax_section (bfd *abfd, asection *sec, struct bfd_link_info *link_info)
addend_displacement =
new_reloc.target_offset + new_reloc.virtual_offset;
- fix = reloc_bfd_fix_init (sec, source_offset, r_type, 0,
+ fix = reloc_bfd_fix_init (sec, source_offset, r_type,
r_reloc_get_section (&new_reloc),
addend_displacement, TRUE);
add_fix (sec, fix);
@@ -8784,7 +8781,7 @@ move_literal (bfd *abfd,
/* Currently, we cannot move relocations during a relocatable link. */
BFD_ASSERT (!link_info->relocatable);
- fix = reloc_bfd_fix_init (sec, offset, r_type, r_rel->abfd,
+ fix = reloc_bfd_fix_init (sec, offset, r_type,
r_reloc_get_section (r_rel),
r_rel->target_offset + r_rel->virtual_offset,
FALSE);