mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-20 09:58:19 +08:00
* elf.c (bfd_section_from_shdr): Make "name" const.
* elf-bfd.h (elf_backend_section_from_shdr): Likewise. * elf32-i370.c (i370_elf_section_from_shdr): Likewise. * elf32-ppc.c (ppc_elf_section_from_shdr): Likewise. * elf32-sh64.c (sh64_backend_section_from_shdr): Likewise. * elf32-v850.c (v850_elf_section_from_shdr): Likewise. * elf64-alpha.c (elf64_alpha_section_from_shdr): Likewise. * elf64-hppa.c (elf64_hppa_section_from_shdr): Likewise. * elf64-ppc.c (ppc64_elf_section_from_shdr): Likewise. * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Likewise. * elfxx-mips.c (_bfd_mips_elf_section_from_shdr): Likewise. * elfxx-mips.h (_bfd_mips_elf_section_from_shdr): Likewise.
This commit is contained in:
@ -1,3 +1,18 @@
|
|||||||
|
2002-06-04 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
|
* elf.c (bfd_section_from_shdr): Make "name" const.
|
||||||
|
* elf-bfd.h (elf_backend_section_from_shdr): Likewise.
|
||||||
|
* elf32-i370.c (i370_elf_section_from_shdr): Likewise.
|
||||||
|
* elf32-ppc.c (ppc_elf_section_from_shdr): Likewise.
|
||||||
|
* elf32-sh64.c (sh64_backend_section_from_shdr): Likewise.
|
||||||
|
* elf32-v850.c (v850_elf_section_from_shdr): Likewise.
|
||||||
|
* elf64-alpha.c (elf64_alpha_section_from_shdr): Likewise.
|
||||||
|
* elf64-hppa.c (elf64_hppa_section_from_shdr): Likewise.
|
||||||
|
* elf64-ppc.c (ppc64_elf_section_from_shdr): Likewise.
|
||||||
|
* elfxx-ia64.c (elfNN_ia64_section_from_shdr): Likewise.
|
||||||
|
* elfxx-mips.c (_bfd_mips_elf_section_from_shdr): Likewise.
|
||||||
|
* elfxx-mips.h (_bfd_mips_elf_section_from_shdr): Likewise.
|
||||||
|
|
||||||
2002-06-03 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
|
2002-06-03 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
|
||||||
|
|
||||||
* elfxx-mips.c (ABI_64_P): Use backend's data to determine the
|
* elfxx-mips.c (ABI_64_P): Use backend's data to determine the
|
||||||
@ -523,7 +538,7 @@
|
|||||||
2002-05-10 Alan Modra <amodra@bigpond.net.au>
|
2002-05-10 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
* elf32-i386.c (elf_i386_relocate_section): Remove overflow checks
|
* elf32-i386.c (elf_i386_relocate_section): Remove overflow checks
|
||||||
addend in 2002-05-09 commit.
|
added in 2002-05-09 commit.
|
||||||
|
|
||||||
* elf32-hppa.c (elf32_hppa_size_stubs): Revert part of 2002-05-04,
|
* elf32-hppa.c (elf32_hppa_size_stubs): Revert part of 2002-05-04,
|
||||||
don't look for stubs on all undefined syms.
|
don't look for stubs on all undefined syms.
|
||||||
|
@ -490,7 +490,7 @@ struct elf_backend_data
|
|||||||
/* A function to handle unusual section types when creating BFD
|
/* A function to handle unusual section types when creating BFD
|
||||||
sections from ELF sections. */
|
sections from ELF sections. */
|
||||||
boolean (*elf_backend_section_from_shdr)
|
boolean (*elf_backend_section_from_shdr)
|
||||||
PARAMS ((bfd *, Elf32_Internal_Shdr *, char *));
|
PARAMS ((bfd *, Elf32_Internal_Shdr *, const char *));
|
||||||
|
|
||||||
/* A function to convert machine dependent section header flags to
|
/* A function to convert machine dependent section header flags to
|
||||||
BFD internal section header flags. */
|
BFD internal section header flags. */
|
||||||
|
@ -1576,7 +1576,7 @@ bfd_section_from_shdr (abfd, shindex)
|
|||||||
Elf_Internal_Shdr *hdr = elf_elfsections (abfd)[shindex];
|
Elf_Internal_Shdr *hdr = elf_elfsections (abfd)[shindex];
|
||||||
Elf_Internal_Ehdr *ehdr = elf_elfheader (abfd);
|
Elf_Internal_Ehdr *ehdr = elf_elfheader (abfd);
|
||||||
struct elf_backend_data *bed = get_elf_backend_data (abfd);
|
struct elf_backend_data *bed = get_elf_backend_data (abfd);
|
||||||
char *name;
|
const char *name;
|
||||||
|
|
||||||
name = elf_string_from_elf_strtab (abfd, hdr->sh_name);
|
name = elf_string_from_elf_strtab (abfd, hdr->sh_name);
|
||||||
|
|
||||||
|
@ -319,7 +319,7 @@ static boolean i370_elf_create_dynamic_sections PARAMS ((bfd *,
|
|||||||
|
|
||||||
static boolean i370_elf_section_from_shdr PARAMS ((bfd *,
|
static boolean i370_elf_section_from_shdr PARAMS ((bfd *,
|
||||||
Elf32_Internal_Shdr *,
|
Elf32_Internal_Shdr *,
|
||||||
char *));
|
const char *));
|
||||||
static boolean i370_elf_fake_sections PARAMS ((bfd *,
|
static boolean i370_elf_fake_sections PARAMS ((bfd *,
|
||||||
Elf32_Internal_Shdr *,
|
Elf32_Internal_Shdr *,
|
||||||
asection *));
|
asection *));
|
||||||
@ -429,7 +429,7 @@ static boolean
|
|||||||
i370_elf_section_from_shdr (abfd, hdr, name)
|
i370_elf_section_from_shdr (abfd, hdr, name)
|
||||||
bfd *abfd;
|
bfd *abfd;
|
||||||
Elf32_Internal_Shdr *hdr;
|
Elf32_Internal_Shdr *hdr;
|
||||||
char *name;
|
const char *name;
|
||||||
{
|
{
|
||||||
asection *newsect;
|
asection *newsect;
|
||||||
flagword flags;
|
flagword flags;
|
||||||
|
@ -56,7 +56,7 @@ static boolean ppc_elf_create_dynamic_sections
|
|||||||
|
|
||||||
static boolean ppc_elf_section_from_shdr PARAMS ((bfd *,
|
static boolean ppc_elf_section_from_shdr PARAMS ((bfd *,
|
||||||
Elf32_Internal_Shdr *,
|
Elf32_Internal_Shdr *,
|
||||||
char *));
|
const char *));
|
||||||
static boolean ppc_elf_fake_sections
|
static boolean ppc_elf_fake_sections
|
||||||
PARAMS ((bfd *, Elf32_Internal_Shdr *, asection *));
|
PARAMS ((bfd *, Elf32_Internal_Shdr *, asection *));
|
||||||
|
|
||||||
@ -1490,7 +1490,7 @@ static boolean
|
|||||||
ppc_elf_section_from_shdr (abfd, hdr, name)
|
ppc_elf_section_from_shdr (abfd, hdr, name)
|
||||||
bfd *abfd;
|
bfd *abfd;
|
||||||
Elf32_Internal_Shdr *hdr;
|
Elf32_Internal_Shdr *hdr;
|
||||||
char *name;
|
const char *name;
|
||||||
{
|
{
|
||||||
asection *newsect;
|
asection *newsect;
|
||||||
flagword flags;
|
flagword flags;
|
||||||
|
@ -54,7 +54,7 @@ static boolean sh64_elf_link_output_symbol_hook
|
|||||||
PARAMS ((bfd *, struct bfd_link_info *, const char *, Elf_Internal_Sym *,
|
PARAMS ((bfd *, struct bfd_link_info *, const char *, Elf_Internal_Sym *,
|
||||||
asection *));
|
asection *));
|
||||||
static boolean sh64_backend_section_from_shdr
|
static boolean sh64_backend_section_from_shdr
|
||||||
PARAMS ((bfd *, Elf_Internal_Shdr *, char *));
|
PARAMS ((bfd *, Elf_Internal_Shdr *, const char *));
|
||||||
static void sh64_elf_final_write_processing PARAMS ((bfd *, boolean));
|
static void sh64_elf_final_write_processing PARAMS ((bfd *, boolean));
|
||||||
static boolean sh64_bfd_elf_copy_private_section_data
|
static boolean sh64_bfd_elf_copy_private_section_data
|
||||||
PARAMS ((bfd *, asection *, bfd *, asection *));
|
PARAMS ((bfd *, asection *, bfd *, asection *));
|
||||||
@ -255,7 +255,7 @@ boolean
|
|||||||
sh64_backend_section_from_shdr (abfd, hdr, name)
|
sh64_backend_section_from_shdr (abfd, hdr, name)
|
||||||
bfd *abfd;
|
bfd *abfd;
|
||||||
Elf_Internal_Shdr *hdr;
|
Elf_Internal_Shdr *hdr;
|
||||||
char *name;
|
const char *name;
|
||||||
{
|
{
|
||||||
flagword flags = 0;
|
flagword flags = 0;
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* V850-specific support for 32-bit ELF
|
/* V850-specific support for 32-bit ELF
|
||||||
Copyright 1996, 1997, 1998, 1999, 2000, 2001
|
Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002
|
||||||
Free Software Foundation, Inc.
|
Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of BFD, the Binary File Descriptor library.
|
This file is part of BFD, the Binary File Descriptor library.
|
||||||
@ -79,7 +79,7 @@ static boolean v850_elf_link_output_symbol_hook
|
|||||||
PARAMS ((bfd *, struct bfd_link_info *, const char *,
|
PARAMS ((bfd *, struct bfd_link_info *, const char *,
|
||||||
Elf_Internal_Sym *, asection *));
|
Elf_Internal_Sym *, asection *));
|
||||||
static boolean v850_elf_section_from_shdr
|
static boolean v850_elf_section_from_shdr
|
||||||
PARAMS ((bfd *, Elf_Internal_Shdr *, char *));
|
PARAMS ((bfd *, Elf_Internal_Shdr *, const char *));
|
||||||
static boolean v850_elf_gc_sweep_hook
|
static boolean v850_elf_gc_sweep_hook
|
||||||
PARAMS ((bfd *, struct bfd_link_info *, asection *,
|
PARAMS ((bfd *, struct bfd_link_info *, asection *,
|
||||||
const Elf_Internal_Rela *));
|
const Elf_Internal_Rela *));
|
||||||
@ -2135,7 +2135,7 @@ static boolean
|
|||||||
v850_elf_section_from_shdr (abfd, hdr, name)
|
v850_elf_section_from_shdr (abfd, hdr, name)
|
||||||
bfd * abfd;
|
bfd * abfd;
|
||||||
Elf_Internal_Shdr * hdr;
|
Elf_Internal_Shdr * hdr;
|
||||||
char * name;
|
const char * name;
|
||||||
{
|
{
|
||||||
/* There ought to be a place to keep ELF backend specific flags, but
|
/* There ought to be a place to keep ELF backend specific flags, but
|
||||||
at the moment there isn't one. We just keep track of the
|
at the moment there isn't one. We just keep track of the
|
||||||
|
@ -73,7 +73,7 @@ static boolean elf64_alpha_mkobject
|
|||||||
static boolean elf64_alpha_object_p
|
static boolean elf64_alpha_object_p
|
||||||
PARAMS((bfd *));
|
PARAMS((bfd *));
|
||||||
static boolean elf64_alpha_section_from_shdr
|
static boolean elf64_alpha_section_from_shdr
|
||||||
PARAMS((bfd *, Elf64_Internal_Shdr *, char *));
|
PARAMS((bfd *, Elf64_Internal_Shdr *, const char *));
|
||||||
static boolean elf64_alpha_section_flags
|
static boolean elf64_alpha_section_flags
|
||||||
PARAMS((flagword *, Elf64_Internal_Shdr *));
|
PARAMS((flagword *, Elf64_Internal_Shdr *));
|
||||||
static boolean elf64_alpha_fake_sections
|
static boolean elf64_alpha_fake_sections
|
||||||
@ -2353,7 +2353,7 @@ static boolean
|
|||||||
elf64_alpha_section_from_shdr (abfd, hdr, name)
|
elf64_alpha_section_from_shdr (abfd, hdr, name)
|
||||||
bfd *abfd;
|
bfd *abfd;
|
||||||
Elf64_Internal_Shdr *hdr;
|
Elf64_Internal_Shdr *hdr;
|
||||||
char *name;
|
const char *name;
|
||||||
{
|
{
|
||||||
asection *newsect;
|
asection *newsect;
|
||||||
|
|
||||||
|
@ -184,7 +184,7 @@ static boolean elf64_hppa_object_p
|
|||||||
PARAMS ((bfd *));
|
PARAMS ((bfd *));
|
||||||
|
|
||||||
static boolean elf64_hppa_section_from_shdr
|
static boolean elf64_hppa_section_from_shdr
|
||||||
PARAMS ((bfd *, Elf64_Internal_Shdr *, char *));
|
PARAMS ((bfd *, Elf64_Internal_Shdr *, const char *));
|
||||||
|
|
||||||
static void elf64_hppa_post_process_headers
|
static void elf64_hppa_post_process_headers
|
||||||
PARAMS ((bfd *, struct bfd_link_info *));
|
PARAMS ((bfd *, struct bfd_link_info *));
|
||||||
@ -403,7 +403,7 @@ static boolean
|
|||||||
elf64_hppa_section_from_shdr (abfd, hdr, name)
|
elf64_hppa_section_from_shdr (abfd, hdr, name)
|
||||||
bfd *abfd;
|
bfd *abfd;
|
||||||
Elf64_Internal_Shdr *hdr;
|
Elf64_Internal_Shdr *hdr;
|
||||||
char *name;
|
const char *name;
|
||||||
{
|
{
|
||||||
asection *newsect;
|
asection *newsect;
|
||||||
|
|
||||||
|
@ -62,7 +62,7 @@ static boolean ppc64_elf_set_private_flags
|
|||||||
static boolean ppc64_elf_merge_private_bfd_data
|
static boolean ppc64_elf_merge_private_bfd_data
|
||||||
PARAMS ((bfd *, bfd *));
|
PARAMS ((bfd *, bfd *));
|
||||||
static boolean ppc64_elf_section_from_shdr
|
static boolean ppc64_elf_section_from_shdr
|
||||||
PARAMS ((bfd *, Elf64_Internal_Shdr *, char *));
|
PARAMS ((bfd *, Elf64_Internal_Shdr *, const char *));
|
||||||
|
|
||||||
|
|
||||||
/* The name of the dynamic interpreter. This is put in the .interp
|
/* The name of the dynamic interpreter. This is put in the .interp
|
||||||
@ -1775,7 +1775,7 @@ static boolean
|
|||||||
ppc64_elf_section_from_shdr (abfd, hdr, name)
|
ppc64_elf_section_from_shdr (abfd, hdr, name)
|
||||||
bfd *abfd;
|
bfd *abfd;
|
||||||
Elf64_Internal_Shdr *hdr;
|
Elf64_Internal_Shdr *hdr;
|
||||||
char *name;
|
const char *name;
|
||||||
{
|
{
|
||||||
asection *newsect;
|
asection *newsect;
|
||||||
flagword flags;
|
flagword flags;
|
||||||
|
@ -174,7 +174,7 @@ static boolean elfNN_ia64_relax_section
|
|||||||
static boolean is_unwind_section_name
|
static boolean is_unwind_section_name
|
||||||
PARAMS ((bfd *abfd, const char *));
|
PARAMS ((bfd *abfd, const char *));
|
||||||
static boolean elfNN_ia64_section_from_shdr
|
static boolean elfNN_ia64_section_from_shdr
|
||||||
PARAMS ((bfd *, ElfNN_Internal_Shdr *, char *));
|
PARAMS ((bfd *, ElfNN_Internal_Shdr *, const char *));
|
||||||
static boolean elfNN_ia64_section_flags
|
static boolean elfNN_ia64_section_flags
|
||||||
PARAMS ((flagword *, ElfNN_Internal_Shdr *));
|
PARAMS ((flagword *, ElfNN_Internal_Shdr *));
|
||||||
static boolean elfNN_ia64_fake_sections
|
static boolean elfNN_ia64_fake_sections
|
||||||
@ -1047,7 +1047,7 @@ static boolean
|
|||||||
elfNN_ia64_section_from_shdr (abfd, hdr, name)
|
elfNN_ia64_section_from_shdr (abfd, hdr, name)
|
||||||
bfd *abfd;
|
bfd *abfd;
|
||||||
ElfNN_Internal_Shdr *hdr;
|
ElfNN_Internal_Shdr *hdr;
|
||||||
char *name;
|
const char *name;
|
||||||
{
|
{
|
||||||
asection *newsect;
|
asection *newsect;
|
||||||
|
|
||||||
|
@ -3351,7 +3351,7 @@ boolean
|
|||||||
_bfd_mips_elf_section_from_shdr (abfd, hdr, name)
|
_bfd_mips_elf_section_from_shdr (abfd, hdr, name)
|
||||||
bfd *abfd;
|
bfd *abfd;
|
||||||
Elf_Internal_Shdr *hdr;
|
Elf_Internal_Shdr *hdr;
|
||||||
char *name;
|
const char *name;
|
||||||
{
|
{
|
||||||
flagword flags = 0;
|
flagword flags = 0;
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ extern void _bfd_mips_elf_symbol_processing
|
|||||||
extern boolean _bfd_mips_elf_section_processing
|
extern boolean _bfd_mips_elf_section_processing
|
||||||
PARAMS ((bfd *, Elf_Internal_Shdr *));
|
PARAMS ((bfd *, Elf_Internal_Shdr *));
|
||||||
extern boolean _bfd_mips_elf_section_from_shdr
|
extern boolean _bfd_mips_elf_section_from_shdr
|
||||||
PARAMS ((bfd *, Elf_Internal_Shdr *, char *));
|
PARAMS ((bfd *, Elf_Internal_Shdr *, const char *));
|
||||||
extern boolean _bfd_mips_elf_fake_sections
|
extern boolean _bfd_mips_elf_fake_sections
|
||||||
PARAMS ((bfd *, Elf_Internal_Shdr *, asection *));
|
PARAMS ((bfd *, Elf_Internal_Shdr *, asection *));
|
||||||
extern boolean _bfd_mips_elf_section_from_bfd_section
|
extern boolean _bfd_mips_elf_section_from_bfd_section
|
||||||
|
Reference in New Issue
Block a user