aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf-bfd.h
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2024-03-07 08:28:29 -0800
committerAlan Modra <amodra@gmail.com>2024-04-02 17:29:58 +1030
commit33c58f484406bd9665e5bd15637600540157f612 (patch)
treec961a2759521e46e966f83f577ea3c83eee96a77 /bfd/elf-bfd.h
parent3c6c32951e292a51ede70b8087bb0308d7dbc4fc (diff)
downloadgdb-33c58f484406bd9665e5bd15637600540157f612.zip
gdb-33c58f484406bd9665e5bd15637600540157f612.tar.gz
gdb-33c58f484406bd9665e5bd15637600540157f612.tar.bz2
PR31458, FAIL: MIPS eh-frame 3 with --no-keep-memory
PR 31458 bfd/ * elf-bfd.h (_bfd_elf_link_read_relocs), (_bfd_elf_link_info_read_relocs): Constify section. * elflink.c: Likewise. * elfxx-mips.c (_bfd_mips_elf_eh_frame_address_size): Read relocs again in case --no-keep-memory. ld/ * testsuite/ld-mips-elf/mips-elf.exp: Run --no-keep-memory version of eh-frame3 test.
Diffstat (limited to 'bfd/elf-bfd.h')
-rw-r--r--bfd/elf-bfd.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h
index 7ad171d..29283f2 100644
--- a/bfd/elf-bfd.h
+++ b/bfd/elf-bfd.h
@@ -2592,9 +2592,9 @@ extern char *_bfd_elfcore_strndup
(bfd *, char *, size_t);
extern Elf_Internal_Rela *_bfd_elf_link_read_relocs
- (bfd *, asection *, void *, Elf_Internal_Rela *, bool);
+ (bfd *, const asection *, void *, Elf_Internal_Rela *, bool);
extern Elf_Internal_Rela *_bfd_elf_link_info_read_relocs
- (bfd *, struct bfd_link_info *, asection *, void *, Elf_Internal_Rela *,
+ (bfd *, struct bfd_link_info *, const asection *, void *, Elf_Internal_Rela *,
bool);
extern bool _bfd_elf_link_output_relocs