aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2004-10-14 23:38:08 +0000
committerAlan Modra <amodra@gmail.com>2004-10-14 23:38:08 +0000
commit92e4ec35d9f6f98ed6b131b9be9cd548572874a1 (patch)
treed63f4a62e2c123a86bfca8d87f7713a431aeed36 /bfd/elf.c
parent40e7b7b9ef194e14ec5c2dee5e369c2ca6c9d5ea (diff)
downloadgdb-92e4ec35d9f6f98ed6b131b9be9cd548572874a1.zip
gdb-92e4ec35d9f6f98ed6b131b9be9cd548572874a1.tar.gz
gdb-92e4ec35d9f6f98ed6b131b9be9cd548572874a1.tar.bz2
* elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Add "info"
parameter. If called after _bfd_elf_write_section_eh_frame, don't allow a -2 return unless need_* bit is already set, and handle offsets adjusted for output_offset. * elf-bfd.h (_bfd_elf_eh_frame_section_offset): Update prototype. * elf.c (_bfd_elf_section_offset): Update call.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r--bfd/elf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elf.c b/bfd/elf.c
index 27142a1..b7674e3 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -7746,7 +7746,7 @@ _bfd_elf_rel_local_sym (bfd *abfd,
bfd_vma
_bfd_elf_section_offset (bfd *abfd,
- struct bfd_link_info *info ATTRIBUTE_UNUSED,
+ struct bfd_link_info *info,
asection *sec,
bfd_vma offset)
{
@@ -7756,7 +7756,7 @@ _bfd_elf_section_offset (bfd *abfd,
return _bfd_stab_section_offset (sec, elf_section_data (sec)->sec_info,
offset);
case ELF_INFO_TYPE_EH_FRAME:
- return _bfd_elf_eh_frame_section_offset (abfd, sec, offset);
+ return _bfd_elf_eh_frame_section_offset (abfd, info, sec, offset);
default:
return offset;
}