* elflink.c (_bfd_elf_link_create_dynamic_sections): Move from
elflink.h. Replace LOG_FILE_ALIGN with bed->s->log_file_align. (_bfd_elf_create_dynamic_sections): Use bed->s->log_file_align. (bfd_elf_record_link_assignment): Move from elflink.h. (_bfd_elf_merge_symbol): Likewise. (_bfd_elf_add_default_symbol): Likewise. (_bfd_elf_export_symbol): Likewise. (_bfd_elf_link_find_version_dependencies): Likewise. (_bfd_elf_link_assign_sym_version): Likewise. (_bfd_elf_link_read_relocs): Likewise. (_bfd_elf_link_size_reloc_section): Likewise. (_bfd_elf_fix_symbol_flags): Likewise. (_bfd_elf_adjust_dynamic_symbol): Likewise. (_bfd_elf_link_sec_merge_syms): Likewise. (elf_link_read_relocs_from_section): Likewise. Use bed->s->sizeof_rel and bed->s->sizeof_rela. (_bfd_elf_link_output_relocs): Likewise. * elf-bfd.h (struct elf_size_info): Rename file_align to log_file_align. (struct elf_info_failed): Move from elflink.h. (struct elf_assign_sym_version_info): Likewise. (struct elf_find_verdep_info): Likewise. (_bfd_elf_create_dynamic_sections): Delete duplicate declaration. (_bfd_elf_merge_symbol, _bfd_elf_add_default_symbol, _bfd_elf_export_symbol, _bfd_elf_link_find_version_dependencies, _bfd_elf_link_assign_sym_version, _bfd_elf_link_create_dynamic_sections, _bfd_elf_link_read_relocs, _bfd_elf_link_size_reloc_section, _bfd_elf_link_output_relocs, _bfd_elf_fix_symbol_flags, _bfd_elf_adjust_dynamic_symbol, _bfd_elf_link_sec_merge_syms): Declare. (bfd_elf32_link_create_dynamic_sections): Don't declare. (_bfd_elf32_link_read_relocs): Likewise. (bfd_elf64_link_create_dynamic_sections): Likewise. (_bfd_elf64_link_read_relocs): Likewise. * elflink.h: Move lots o' stuff elsewhere. * bfd-in.h (bfd_elf32_record_link_assignment): Don't declare. (bfd_elf64_record_link_assignment): Likewise. (bfd_elf_record_link_assignment): Declare. * bfd-in2.h: Regenerate. * elfcode.h (elf_link_create_dynamic_sections): Don't declare. (NAME(_bfd_elf,size_info)): Adjust for log_file_align. * elf.c (_bfd_elf_init_reloc_shdr): Adjust for bed->s->log_file_align. (assign_file_positions_for_segments): Likewise. (assign_file_positions_except_relocs): Likewise. (swap_out_syms, elfcore_write_note): Likewise. * elf-m10200.c: Adjust for changed function names. * elf-m10300.c: Likewise. * elf32-arm.h: Likewise. * elf32-h8300.c: Likewise. * elf32-hppa.c: Likewise. * elf32-ip2k.c: Likewise. * elf32-m32r.c: Likewise. * elf32-m68hc11.c: Likewise. * elf32-m68hc1x.c: Likewise. * elf32-m68k.c: Likewise. * elf32-mips.c: Likewise. * elf32-ppc.c: Likewise. * elf32-sh.c: Likewise. * elf32-v850.c: Likewise. * elf32-xtensa.c: Likewise. * elf64-alpha.c: Likewise. * elf64-hppa.c: Likewise. * elf64-mmix.c: Likewise. * elf64-ppc.c: Likewise. * elf64-sh64.c: Likewise. * elfxx-ia64.c: Likewise. * elfxx-mips.c: Likewise. (MIPS_ELF_LOG_FILE_ALIGN): Use log_file_align. * elf64-alpha.c (alpha_elf_size_info): Adjust for log_file_align. * elf64-hppa.c (hppa64_elf_size_info): Likewise. * elf64-mips.c (mips_elf64_size_info): Likewise. * elf64-s390.c (s390_elf64_size_info): Likewise. * elf64-sparc.c (sparc64_elf_size_info): Likewise.
This commit is contained in:
parent
d32ad6f7ad
commit
45d6a902ae
33 changed files with 2323 additions and 2260 deletions
|
@ -1,3 +1,79 @@
|
|||
2003-05-09 Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
* elflink.c (_bfd_elf_link_create_dynamic_sections): Move from
|
||||
elflink.h. Replace LOG_FILE_ALIGN with bed->s->log_file_align.
|
||||
(_bfd_elf_create_dynamic_sections): Use bed->s->log_file_align.
|
||||
(bfd_elf_record_link_assignment): Move from elflink.h.
|
||||
(_bfd_elf_merge_symbol): Likewise.
|
||||
(_bfd_elf_add_default_symbol): Likewise.
|
||||
(_bfd_elf_export_symbol): Likewise.
|
||||
(_bfd_elf_link_find_version_dependencies): Likewise.
|
||||
(_bfd_elf_link_assign_sym_version): Likewise.
|
||||
(_bfd_elf_link_read_relocs): Likewise.
|
||||
(_bfd_elf_link_size_reloc_section): Likewise.
|
||||
(_bfd_elf_fix_symbol_flags): Likewise.
|
||||
(_bfd_elf_adjust_dynamic_symbol): Likewise.
|
||||
(_bfd_elf_link_sec_merge_syms): Likewise.
|
||||
(elf_link_read_relocs_from_section): Likewise. Use bed->s->sizeof_rel
|
||||
and bed->s->sizeof_rela.
|
||||
(_bfd_elf_link_output_relocs): Likewise.
|
||||
* elf-bfd.h (struct elf_size_info): Rename file_align to
|
||||
log_file_align.
|
||||
(struct elf_info_failed): Move from elflink.h.
|
||||
(struct elf_assign_sym_version_info): Likewise.
|
||||
(struct elf_find_verdep_info): Likewise.
|
||||
(_bfd_elf_create_dynamic_sections): Delete duplicate declaration.
|
||||
(_bfd_elf_merge_symbol, _bfd_elf_add_default_symbol,
|
||||
_bfd_elf_export_symbol, _bfd_elf_link_find_version_dependencies,
|
||||
_bfd_elf_link_assign_sym_version,
|
||||
_bfd_elf_link_create_dynamic_sections, _bfd_elf_link_read_relocs,
|
||||
_bfd_elf_link_size_reloc_section, _bfd_elf_link_output_relocs,
|
||||
_bfd_elf_fix_symbol_flags, _bfd_elf_adjust_dynamic_symbol,
|
||||
_bfd_elf_link_sec_merge_syms): Declare.
|
||||
(bfd_elf32_link_create_dynamic_sections): Don't declare.
|
||||
(_bfd_elf32_link_read_relocs): Likewise.
|
||||
(bfd_elf64_link_create_dynamic_sections): Likewise.
|
||||
(_bfd_elf64_link_read_relocs): Likewise.
|
||||
* elflink.h: Move lots o' stuff elsewhere.
|
||||
* bfd-in.h (bfd_elf32_record_link_assignment): Don't declare.
|
||||
(bfd_elf64_record_link_assignment): Likewise.
|
||||
(bfd_elf_record_link_assignment): Declare.
|
||||
* bfd-in2.h: Regenerate.
|
||||
* elfcode.h (elf_link_create_dynamic_sections): Don't declare.
|
||||
(NAME(_bfd_elf,size_info)): Adjust for log_file_align.
|
||||
* elf.c (_bfd_elf_init_reloc_shdr): Adjust for bed->s->log_file_align.
|
||||
(assign_file_positions_for_segments): Likewise.
|
||||
(assign_file_positions_except_relocs): Likewise.
|
||||
(swap_out_syms, elfcore_write_note): Likewise.
|
||||
* elf-m10200.c: Adjust for changed function names.
|
||||
* elf-m10300.c: Likewise.
|
||||
* elf32-arm.h: Likewise.
|
||||
* elf32-h8300.c: Likewise.
|
||||
* elf32-hppa.c: Likewise.
|
||||
* elf32-ip2k.c: Likewise.
|
||||
* elf32-m32r.c: Likewise.
|
||||
* elf32-m68hc11.c: Likewise.
|
||||
* elf32-m68hc1x.c: Likewise.
|
||||
* elf32-m68k.c: Likewise.
|
||||
* elf32-mips.c: Likewise.
|
||||
* elf32-ppc.c: Likewise.
|
||||
* elf32-sh.c: Likewise.
|
||||
* elf32-v850.c: Likewise.
|
||||
* elf32-xtensa.c: Likewise.
|
||||
* elf64-alpha.c: Likewise.
|
||||
* elf64-hppa.c: Likewise.
|
||||
* elf64-mmix.c: Likewise.
|
||||
* elf64-ppc.c: Likewise.
|
||||
* elf64-sh64.c: Likewise.
|
||||
* elfxx-ia64.c: Likewise.
|
||||
* elfxx-mips.c: Likewise.
|
||||
(MIPS_ELF_LOG_FILE_ALIGN): Use log_file_align.
|
||||
* elf64-alpha.c (alpha_elf_size_info): Adjust for log_file_align.
|
||||
* elf64-hppa.c (hppa64_elf_size_info): Likewise.
|
||||
* elf64-mips.c (mips_elf64_size_info): Likewise.
|
||||
* elf64-s390.c (s390_elf64_size_info): Likewise.
|
||||
* elf64-sparc.c (sparc64_elf_size_info): Likewise.
|
||||
|
||||
2003-05-08 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
* elflink.h (elf_add_default_symbol): After skipping the
|
||||
|
|
|
@ -651,9 +651,7 @@ struct bfd_link_needed_list
|
|||
const char *name;
|
||||
};
|
||||
|
||||
extern bfd_boolean bfd_elf32_record_link_assignment
|
||||
PARAMS ((bfd *, struct bfd_link_info *, const char *, bfd_boolean));
|
||||
extern bfd_boolean bfd_elf64_record_link_assignment
|
||||
extern bfd_boolean bfd_elf_record_link_assignment
|
||||
PARAMS ((bfd *, struct bfd_link_info *, const char *, bfd_boolean));
|
||||
extern struct bfd_link_needed_list *bfd_elf_get_needed_list
|
||||
PARAMS ((bfd *, struct bfd_link_info *));
|
||||
|
|
|
@ -658,9 +658,7 @@ struct bfd_link_needed_list
|
|||
const char *name;
|
||||
};
|
||||
|
||||
extern bfd_boolean bfd_elf32_record_link_assignment
|
||||
PARAMS ((bfd *, struct bfd_link_info *, const char *, bfd_boolean));
|
||||
extern bfd_boolean bfd_elf64_record_link_assignment
|
||||
extern bfd_boolean bfd_elf_record_link_assignment
|
||||
PARAMS ((bfd *, struct bfd_link_info *, const char *, bfd_boolean));
|
||||
extern struct bfd_link_needed_list *bfd_elf_get_needed_list
|
||||
PARAMS ((bfd *, struct bfd_link_info *));
|
||||
|
|
|
@ -428,7 +428,7 @@ struct elf_size_info {
|
|||
handle all back-ends. */
|
||||
#define MAX_INT_RELS_PER_EXT_REL 3
|
||||
|
||||
unsigned char arch_size, file_align;
|
||||
unsigned char arch_size, log_file_align;
|
||||
unsigned char elfclass, ev_current;
|
||||
int (*write_out_phdrs)
|
||||
PARAMS ((bfd *, const Elf_Internal_Phdr *, unsigned int));
|
||||
|
@ -1052,6 +1052,46 @@ typedef struct elf_linker_section_pointers
|
|||
bfd_boolean written_address_p; /* whether address was written yet */
|
||||
} elf_linker_section_pointers_t;
|
||||
|
||||
/* This struct is used to pass information to routines called via
|
||||
elf_link_hash_traverse which must return failure. */
|
||||
|
||||
struct elf_info_failed
|
||||
{
|
||||
bfd_boolean failed;
|
||||
struct bfd_link_info *info;
|
||||
struct bfd_elf_version_tree *verdefs;
|
||||
};
|
||||
|
||||
/* This structure is used to pass information to
|
||||
_bfd_elf_link_assign_sym_version. */
|
||||
|
||||
struct elf_assign_sym_version_info
|
||||
{
|
||||
/* Output BFD. */
|
||||
bfd *output_bfd;
|
||||
/* General link information. */
|
||||
struct bfd_link_info *info;
|
||||
/* Version tree. */
|
||||
struct bfd_elf_version_tree *verdefs;
|
||||
/* Whether we had a failure. */
|
||||
bfd_boolean failed;
|
||||
};
|
||||
|
||||
/* This structure is used to pass information to
|
||||
_bfd_elf_link_find_version_dependencies. */
|
||||
|
||||
struct elf_find_verdep_info
|
||||
{
|
||||
/* Output BFD. */
|
||||
bfd *output_bfd;
|
||||
/* General link information. */
|
||||
struct bfd_link_info *info;
|
||||
/* The number of dependencies. */
|
||||
unsigned int vers;
|
||||
/* Whether we had a failure. */
|
||||
bfd_boolean failed;
|
||||
};
|
||||
|
||||
/* Some private data is stashed away for future use using the tdata pointer
|
||||
in the bfd structure. */
|
||||
|
||||
|
@ -1395,8 +1435,6 @@ extern asection *bfd_section_from_r_symndx
|
|||
PARAMS ((bfd *, struct sym_sec_cache *, asection *, unsigned long));
|
||||
extern asection *bfd_section_from_elf_index
|
||||
PARAMS ((bfd *, unsigned int));
|
||||
extern bfd_boolean _bfd_elf_create_dynamic_sections
|
||||
PARAMS ((bfd *, struct bfd_link_info *));
|
||||
extern struct bfd_strtab_hash *_bfd_elf_stringtab_init
|
||||
PARAMS ((void));
|
||||
|
||||
|
@ -1435,6 +1473,26 @@ extern bfd_boolean _bfd_elf_write_section_eh_frame_hdr
|
|||
extern bfd_boolean _bfd_elf_maybe_strip_eh_frame_hdr
|
||||
PARAMS ((struct bfd_link_info *));
|
||||
|
||||
extern bfd_boolean _bfd_elf_merge_symbol
|
||||
PARAMS ((bfd *, struct bfd_link_info *, const char *,
|
||||
Elf_Internal_Sym *, asection **, bfd_vma *,
|
||||
struct elf_link_hash_entry **, bfd_boolean *, bfd_boolean *,
|
||||
bfd_boolean *, bfd_boolean *, bfd_boolean));
|
||||
|
||||
extern bfd_boolean _bfd_elf_add_default_symbol
|
||||
PARAMS ((bfd *, struct bfd_link_info *, struct elf_link_hash_entry *,
|
||||
const char *, Elf_Internal_Sym *, asection **, bfd_vma *,
|
||||
bfd_boolean *, bfd_boolean, bfd_boolean));
|
||||
|
||||
extern bfd_boolean _bfd_elf_export_symbol
|
||||
PARAMS ((struct elf_link_hash_entry *, PTR));
|
||||
|
||||
extern bfd_boolean _bfd_elf_link_find_version_dependencies
|
||||
PARAMS ((struct elf_link_hash_entry *, PTR));
|
||||
|
||||
extern bfd_boolean _bfd_elf_link_assign_sym_version
|
||||
PARAMS ((struct elf_link_hash_entry *, PTR));
|
||||
|
||||
extern bfd_boolean _bfd_elf_link_record_dynamic_symbol
|
||||
PARAMS ((struct bfd_link_info *, struct elf_link_hash_entry *));
|
||||
extern long _bfd_elf_link_lookup_local_dynindx
|
||||
|
@ -1449,6 +1507,8 @@ extern file_ptr _bfd_elf_assign_file_position_for_section
|
|||
extern bfd_boolean _bfd_elf_validate_reloc
|
||||
PARAMS ((bfd *, arelent *));
|
||||
|
||||
extern bfd_boolean _bfd_elf_link_create_dynamic_sections
|
||||
PARAMS ((bfd *, struct bfd_link_info *));
|
||||
extern bfd_boolean _bfd_elf_create_dynamic_sections
|
||||
PARAMS ((bfd *, struct bfd_link_info *));
|
||||
extern bfd_boolean _bfd_elf_create_got_section
|
||||
|
@ -1490,6 +1550,24 @@ extern bfd_vma bfd_elf64_finish_pointer_linker_section
|
|||
extern bfd_boolean _bfd_elf_make_linker_section_rela
|
||||
PARAMS ((bfd *, elf_linker_section_t *, int));
|
||||
|
||||
extern Elf_Internal_Rela *_bfd_elf_link_read_relocs
|
||||
PARAMS ((bfd *, asection *, PTR, Elf_Internal_Rela *, bfd_boolean));
|
||||
|
||||
extern bfd_boolean _bfd_elf_link_size_reloc_section
|
||||
PARAMS ((bfd *, Elf_Internal_Shdr *, asection *));
|
||||
|
||||
extern bfd_boolean _bfd_elf_link_output_relocs
|
||||
PARAMS ((bfd *, asection *, Elf_Internal_Shdr *, Elf_Internal_Rela *));
|
||||
|
||||
extern bfd_boolean _bfd_elf_fix_symbol_flags
|
||||
PARAMS ((struct elf_link_hash_entry *, struct elf_info_failed *));
|
||||
|
||||
extern bfd_boolean _bfd_elf_adjust_dynamic_symbol
|
||||
PARAMS ((struct elf_link_hash_entry *, PTR));
|
||||
|
||||
extern bfd_boolean _bfd_elf_link_sec_merge_syms
|
||||
PARAMS ((struct elf_link_hash_entry *, PTR));
|
||||
|
||||
extern const bfd_target *bfd_elf32_object_p
|
||||
PARAMS ((bfd *));
|
||||
extern const bfd_target *bfd_elf32_core_file_p
|
||||
|
@ -1538,10 +1616,6 @@ extern bfd_boolean bfd_elf32_slurp_reloc_table
|
|||
PARAMS ((bfd *, asection *, asymbol **, bfd_boolean));
|
||||
extern bfd_boolean bfd_elf32_add_dynamic_entry
|
||||
PARAMS ((struct bfd_link_info *, bfd_vma, bfd_vma));
|
||||
extern bfd_boolean bfd_elf32_link_create_dynamic_sections
|
||||
PARAMS ((bfd *, struct bfd_link_info *));
|
||||
extern Elf_Internal_Rela *_bfd_elf32_link_read_relocs
|
||||
PARAMS ((bfd *, asection *, PTR, Elf_Internal_Rela *, bfd_boolean));
|
||||
|
||||
extern const bfd_target *bfd_elf64_object_p
|
||||
PARAMS ((bfd *));
|
||||
|
@ -1590,10 +1664,6 @@ extern bfd_boolean bfd_elf64_slurp_reloc_table
|
|||
PARAMS ((bfd *, asection *, asymbol **, bfd_boolean));
|
||||
extern bfd_boolean bfd_elf64_add_dynamic_entry
|
||||
PARAMS ((struct bfd_link_info *, bfd_vma, bfd_vma));
|
||||
extern bfd_boolean bfd_elf64_link_create_dynamic_sections
|
||||
PARAMS ((bfd *, struct bfd_link_info *));
|
||||
extern Elf_Internal_Rela *_bfd_elf64_link_read_relocs
|
||||
PARAMS ((bfd *, asection *, PTR, Elf_Internal_Rela *, bfd_boolean));
|
||||
|
||||
#define bfd_elf32_link_record_dynamic_symbol \
|
||||
_bfd_elf_link_record_dynamic_symbol
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* Matsushita 10200 specific support for 32-bit ELF
|
||||
Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002
|
||||
Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
This file is part of BFD, the Binary File Descriptor library.
|
||||
|
@ -529,7 +529,7 @@ mn10200_elf_relax_section (abfd, sec, link_info, again)
|
|||
symtab_hdr = &elf_tdata (abfd)->symtab_hdr;
|
||||
|
||||
/* Get a copy of the native relocations. */
|
||||
internal_relocs = (_bfd_elf32_link_read_relocs
|
||||
internal_relocs = (_bfd_elf_link_read_relocs
|
||||
(abfd, sec, (PTR) NULL, (Elf_Internal_Rela *) NULL,
|
||||
link_info->keep_memory));
|
||||
if (internal_relocs == NULL)
|
||||
|
@ -1342,7 +1342,7 @@ mn10200_elf_get_relocated_section_contents (output_bfd, link_info, link_order,
|
|||
asection **secpp;
|
||||
bfd_size_type amt;
|
||||
|
||||
internal_relocs = (_bfd_elf32_link_read_relocs
|
||||
internal_relocs = (_bfd_elf_link_read_relocs
|
||||
(input_bfd, input_section, (PTR) NULL,
|
||||
(Elf_Internal_Rela *) NULL, FALSE));
|
||||
if (internal_relocs == NULL)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* Matsushita 10300 specific support for 32-bit ELF
|
||||
Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002
|
||||
Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
This file is part of BFD, the Binary File Descriptor library.
|
||||
|
@ -859,7 +859,7 @@ mn10300_elf_relax_section (abfd, sec, link_info, again)
|
|||
{
|
||||
|
||||
/* Get a copy of the native relocations. */
|
||||
internal_relocs = (_bfd_elf32_link_read_relocs
|
||||
internal_relocs = (_bfd_elf_link_read_relocs
|
||||
(input_bfd, section, (PTR) NULL,
|
||||
(Elf_Internal_Rela *) NULL,
|
||||
link_info->keep_memory));
|
||||
|
@ -1125,7 +1125,7 @@ mn10300_elf_relax_section (abfd, sec, link_info, again)
|
|||
if (section->reloc_count != 0)
|
||||
{
|
||||
/* Get a copy of the native relocations. */
|
||||
internal_relocs = (_bfd_elf32_link_read_relocs
|
||||
internal_relocs = (_bfd_elf_link_read_relocs
|
||||
(input_bfd, section, (PTR) NULL,
|
||||
(Elf_Internal_Rela *) NULL,
|
||||
link_info->keep_memory));
|
||||
|
@ -1351,7 +1351,7 @@ mn10300_elf_relax_section (abfd, sec, link_info, again)
|
|||
symtab_hdr = &elf_tdata (abfd)->symtab_hdr;
|
||||
|
||||
/* Get a copy of the native relocations. */
|
||||
internal_relocs = (_bfd_elf32_link_read_relocs
|
||||
internal_relocs = (_bfd_elf_link_read_relocs
|
||||
(abfd, sec, (PTR) NULL, (Elf_Internal_Rela *) NULL,
|
||||
link_info->keep_memory));
|
||||
if (internal_relocs == NULL)
|
||||
|
@ -2577,7 +2577,7 @@ mn10300_elf_get_relocated_section_contents (output_bfd, link_info, link_order,
|
|||
Elf_Internal_Sym *isym, *isymend;
|
||||
bfd_size_type amt;
|
||||
|
||||
internal_relocs = (_bfd_elf32_link_read_relocs
|
||||
internal_relocs = (_bfd_elf_link_read_relocs
|
||||
(input_bfd, input_section, (PTR) NULL,
|
||||
(Elf_Internal_Rela *) NULL, FALSE));
|
||||
if (internal_relocs == NULL)
|
||||
|
|
10
bfd/elf.c
10
bfd/elf.c
|
@ -2335,7 +2335,7 @@ _bfd_elf_init_reloc_shdr (abfd, rel_hdr, asect, use_rela_p)
|
|||
rel_hdr->sh_entsize = (use_rela_p
|
||||
? bed->s->sizeof_rela
|
||||
: bed->s->sizeof_rel);
|
||||
rel_hdr->sh_addralign = bed->s->file_align;
|
||||
rel_hdr->sh_addralign = 1 << bed->s->log_file_align;
|
||||
rel_hdr->sh_flags = 0;
|
||||
rel_hdr->sh_addr = 0;
|
||||
rel_hdr->sh_size = 0;
|
||||
|
@ -3748,7 +3748,7 @@ assign_file_positions_for_segments (abfd)
|
|||
&& (abfd->flags & D_PAGED) != 0)
|
||||
p->p_align = bed->maxpagesize;
|
||||
else if (m->count == 0)
|
||||
p->p_align = bed->s->file_align;
|
||||
p->p_align = 1 << bed->s->log_file_align;
|
||||
else
|
||||
p->p_align = 0;
|
||||
|
||||
|
@ -4245,7 +4245,7 @@ assign_file_positions_except_relocs (abfd)
|
|||
}
|
||||
|
||||
/* Place the section headers. */
|
||||
off = align_file_position (off, bed->s->file_align);
|
||||
off = align_file_position (off, 1 << bed->s->log_file_align);
|
||||
i_ehdrp->e_shoff = off;
|
||||
off += i_ehdrp->e_shnum * i_ehdrp->e_shentsize;
|
||||
|
||||
|
@ -5302,7 +5302,7 @@ swap_out_syms (abfd, sttp, relocatable_p)
|
|||
symtab_hdr->sh_entsize = bed->s->sizeof_sym;
|
||||
symtab_hdr->sh_size = symtab_hdr->sh_entsize * (symcount + 1);
|
||||
symtab_hdr->sh_info = elf_num_locals (abfd) + 1;
|
||||
symtab_hdr->sh_addralign = bed->s->file_align;
|
||||
symtab_hdr->sh_addralign = 1 << bed->s->log_file_align;
|
||||
|
||||
symstrtab_hdr = &elf_tdata (abfd)->strtab_hdr;
|
||||
symstrtab_hdr->sh_type = SHT_STRTAB;
|
||||
|
@ -7125,7 +7125,7 @@ elfcore_write_note (abfd, buf, bufsiz, name, type, input, size)
|
|||
|
||||
namesz = strlen (name) + 1;
|
||||
bed = get_elf_backend_data (abfd);
|
||||
pad = -namesz & (bed->s->file_align - 1);
|
||||
pad = -namesz & ((1 << bed->s->log_file_align) - 1);
|
||||
}
|
||||
|
||||
newspace = sizeof (Elf_External_Note) - 1 + namesz + pad + size;
|
||||
|
|
|
@ -679,8 +679,8 @@ bfd_elf32_arm_process_before_allocation (abfd, link_info, no_pipeline_knowledge)
|
|||
|
||||
/* Load the relocs. */
|
||||
internal_relocs
|
||||
= _bfd_elf32_link_read_relocs (abfd, sec, (PTR) NULL,
|
||||
(Elf_Internal_Rela *) NULL, FALSE);
|
||||
= _bfd_elf_link_read_relocs (abfd, sec, (PTR) NULL,
|
||||
(Elf_Internal_Rela *) NULL, FALSE);
|
||||
|
||||
if (internal_relocs == NULL)
|
||||
goto error_return;
|
||||
|
|
|
@ -709,7 +709,7 @@ elf32_h8_relax_section (abfd, sec, link_info, again)
|
|||
symtab_hdr = &elf_tdata (abfd)->symtab_hdr;
|
||||
|
||||
/* Get a copy of the native relocations. */
|
||||
internal_relocs = (_bfd_elf32_link_read_relocs
|
||||
internal_relocs = (_bfd_elf_link_read_relocs
|
||||
(abfd, sec, (PTR) NULL, (Elf_Internal_Rela *) NULL,
|
||||
link_info->keep_memory));
|
||||
if (internal_relocs == NULL)
|
||||
|
@ -1394,7 +1394,7 @@ elf32_h8_get_relocated_section_contents (output_bfd, link_info, link_order,
|
|||
Elf_Internal_Sym *isym, *isymend;
|
||||
bfd_size_type amt;
|
||||
|
||||
internal_relocs = (_bfd_elf32_link_read_relocs
|
||||
internal_relocs = (_bfd_elf_link_read_relocs
|
||||
(input_bfd, input_section, (PTR) NULL,
|
||||
(Elf_Internal_Rela *) NULL, FALSE));
|
||||
if (internal_relocs == NULL)
|
||||
|
|
|
@ -2950,9 +2950,9 @@ elf32_hppa_size_stubs (output_bfd, stub_bfd, info, multi_subspace, group_size,
|
|||
|
||||
/* Get the relocs. */
|
||||
internal_relocs
|
||||
= _bfd_elf32_link_read_relocs (input_bfd, section, NULL,
|
||||
(Elf_Internal_Rela *) NULL,
|
||||
info->keep_memory);
|
||||
= _bfd_elf_link_read_relocs (input_bfd, section, NULL,
|
||||
(Elf_Internal_Rela *) NULL,
|
||||
info->keep_memory);
|
||||
if (internal_relocs == NULL)
|
||||
goto error_ret_free_local;
|
||||
|
||||
|
|
|
@ -847,9 +847,9 @@ ip2k_elf_relax_section (abfd, sec, link_info, again)
|
|||
|
||||
symtab_hdr = &elf_tdata (abfd)->symtab_hdr;
|
||||
|
||||
internal_relocs = _bfd_elf32_link_read_relocs (abfd, sec, NULL,
|
||||
(Elf_Internal_Rela *)NULL,
|
||||
link_info->keep_memory);
|
||||
internal_relocs = _bfd_elf_link_read_relocs (abfd, sec, NULL,
|
||||
(Elf_Internal_Rela *)NULL,
|
||||
link_info->keep_memory);
|
||||
if (internal_relocs == NULL)
|
||||
goto error_return;
|
||||
|
||||
|
@ -861,9 +861,9 @@ ip2k_elf_relax_section (abfd, sec, link_info, again)
|
|||
/* So stab does exits. */
|
||||
Elf_Internal_Rela * irelbase;
|
||||
|
||||
irelbase = _bfd_elf32_link_read_relocs (abfd, stab, NULL,
|
||||
(Elf_Internal_Rela *)NULL,
|
||||
link_info->keep_memory);
|
||||
irelbase = _bfd_elf_link_read_relocs (abfd, stab, NULL,
|
||||
(Elf_Internal_Rela *)NULL,
|
||||
link_info->keep_memory);
|
||||
}
|
||||
|
||||
/* Get section contents cached copy if it exists. */
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* M32R-specific support for 32-bit ELF.
|
||||
Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002
|
||||
Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
This file is part of BFD, the Binary File Descriptor library.
|
||||
|
@ -1340,7 +1340,7 @@ m32r_elf_relax_section (abfd, sec, link_info, again)
|
|||
{
|
||||
Elf_Internal_Shdr *symtab_hdr;
|
||||
/* The Rela structures are used here because that's what
|
||||
_bfd_elf32_link_read_relocs uses [for convenience - it sets the addend
|
||||
_bfd_elf_link_read_relocs uses [for convenience - it sets the addend
|
||||
field to 0]. */
|
||||
Elf_Internal_Rela *internal_relocs = NULL;
|
||||
Elf_Internal_Rela *irel, *irelend;
|
||||
|
@ -1368,7 +1368,7 @@ m32r_elf_relax_section (abfd, sec, link_info, again)
|
|||
symtab_hdr = &elf_tdata (abfd)->symtab_hdr;
|
||||
|
||||
/* Get a copy of the native relocations. */
|
||||
internal_relocs = (_bfd_elf32_link_read_relocs
|
||||
internal_relocs = (_bfd_elf_link_read_relocs
|
||||
(abfd, sec, (PTR) NULL, (Elf_Internal_Rela *) NULL,
|
||||
link_info->keep_memory));
|
||||
if (internal_relocs == NULL)
|
||||
|
@ -1781,7 +1781,7 @@ m32r_elf_get_relocated_section_contents (output_bfd, link_info, link_order,
|
|||
asection **secpp;
|
||||
Elf32_External_Sym *esym, *esymend;
|
||||
|
||||
internal_relocs = (_bfd_elf32_link_read_relocs
|
||||
internal_relocs = (_bfd_elf_link_read_relocs
|
||||
(input_bfd, input_section, (PTR) NULL,
|
||||
(Elf_Internal_Rela *) NULL, FALSE));
|
||||
if (internal_relocs == NULL)
|
||||
|
|
|
@ -705,7 +705,7 @@ m68hc11_elf_relax_section (abfd, sec, link_info, again)
|
|||
shndx_hdr = &elf_tdata (abfd)->symtab_shndx_hdr;
|
||||
|
||||
/* Get a copy of the native relocations. */
|
||||
internal_relocs = (_bfd_elf32_link_read_relocs
|
||||
internal_relocs = (_bfd_elf_link_read_relocs
|
||||
(abfd, sec, (PTR) NULL, (Elf_Internal_Rela *) NULL,
|
||||
link_info->keep_memory));
|
||||
if (internal_relocs == NULL)
|
||||
|
|
|
@ -476,9 +476,9 @@ elf32_m68hc11_size_stubs (output_bfd, stub_bfd, info, add_stub_section)
|
|||
|
||||
/* Get the relocs. */
|
||||
internal_relocs
|
||||
= _bfd_elf32_link_read_relocs (input_bfd, section, NULL,
|
||||
(Elf_Internal_Rela *) NULL,
|
||||
info->keep_memory);
|
||||
= _bfd_elf_link_read_relocs (input_bfd, section, NULL,
|
||||
(Elf_Internal_Rela *) NULL,
|
||||
info->keep_memory);
|
||||
if (internal_relocs == NULL)
|
||||
goto error_ret_free_local;
|
||||
|
||||
|
|
|
@ -2188,7 +2188,7 @@ bfd_m68k_elf32_create_embedded_relocs (abfd, info, datasec, relsec, errmsg)
|
|||
symtab_hdr = &elf_tdata (abfd)->symtab_hdr;
|
||||
|
||||
/* Get a copy of the native relocations. */
|
||||
internal_relocs = (_bfd_elf32_link_read_relocs
|
||||
internal_relocs = (_bfd_elf_link_read_relocs
|
||||
(abfd, datasec, (PTR) NULL, (Elf_Internal_Rela *) NULL,
|
||||
info->keep_memory));
|
||||
if (internal_relocs == NULL)
|
||||
|
|
|
@ -1716,7 +1716,7 @@ bfd_mips_elf32_create_embedded_relocs (abfd, info, datasec, relsec, errmsg)
|
|||
}
|
||||
|
||||
/* Get a copy of the native relocations. */
|
||||
internal_relocs = (_bfd_elf32_link_read_relocs
|
||||
internal_relocs = (_bfd_elf_link_read_relocs
|
||||
(abfd, datasec, (PTR) NULL, (Elf_Internal_Rela *) NULL,
|
||||
info->keep_memory));
|
||||
if (internal_relocs == NULL)
|
||||
|
|
|
@ -1735,9 +1735,9 @@ ppc_elf_relax_section (abfd, isec, link_info, again)
|
|||
|
||||
/* Get a copy of the native relocations. */
|
||||
internal_relocs
|
||||
= _bfd_elf32_link_read_relocs (abfd, isec, (PTR) NULL,
|
||||
(Elf_Internal_Rela *) NULL,
|
||||
link_info->keep_memory);
|
||||
= _bfd_elf_link_read_relocs (abfd, isec, (PTR) NULL,
|
||||
(Elf_Internal_Rela *) NULL,
|
||||
link_info->keep_memory);
|
||||
if (internal_relocs == NULL)
|
||||
goto error_return;
|
||||
if (! link_info->keep_memory)
|
||||
|
@ -3860,9 +3860,9 @@ ppc_elf_tls_optimize (obfd, info)
|
|||
int expecting_tls_get_addr;
|
||||
|
||||
/* Read the relocations. */
|
||||
relstart = _bfd_elf32_link_read_relocs (ibfd, sec, (PTR) NULL,
|
||||
(Elf_Internal_Rela *) NULL,
|
||||
info->keep_memory);
|
||||
relstart = _bfd_elf_link_read_relocs (ibfd, sec, (PTR) NULL,
|
||||
(Elf_Internal_Rela *) NULL,
|
||||
info->keep_memory);
|
||||
if (relstart == NULL)
|
||||
return FALSE;
|
||||
|
||||
|
|
|
@ -2054,7 +2054,7 @@ sh_elf_relax_section (abfd, sec, link_info, again)
|
|||
|
||||
symtab_hdr = &elf_tdata (abfd)->symtab_hdr;
|
||||
|
||||
internal_relocs = (_bfd_elf32_link_read_relocs
|
||||
internal_relocs = (_bfd_elf_link_read_relocs
|
||||
(abfd, sec, (PTR) NULL, (Elf_Internal_Rela *) NULL,
|
||||
link_info->keep_memory));
|
||||
if (internal_relocs == NULL)
|
||||
|
@ -2736,7 +2736,7 @@ sh_elf_relax_delete_bytes (abfd, sec, addr, count)
|
|||
/* We always cache the relocs. Perhaps, if info->keep_memory is
|
||||
FALSE, we should free them, if we are permitted to, when we
|
||||
leave sh_coff_relax_section. */
|
||||
internal_relocs = (_bfd_elf32_link_read_relocs
|
||||
internal_relocs = (_bfd_elf_link_read_relocs
|
||||
(abfd, o, (PTR) NULL, (Elf_Internal_Rela *) NULL,
|
||||
TRUE));
|
||||
if (internal_relocs == NULL)
|
||||
|
@ -5735,7 +5735,7 @@ sh_elf_get_relocated_section_contents (output_bfd, link_info, link_order,
|
|||
Elf_Internal_Sym *isym, *isymend;
|
||||
bfd_size_type amt;
|
||||
|
||||
internal_relocs = (_bfd_elf32_link_read_relocs
|
||||
internal_relocs = (_bfd_elf_link_read_relocs
|
||||
(input_bfd, input_section, (PTR) NULL,
|
||||
(Elf_Internal_Rela *) NULL, FALSE));
|
||||
if (internal_relocs == NULL)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* V850-specific support for 32-bit ELF
|
||||
Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002
|
||||
Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
This file is part of BFD, the Binary File Descriptor library.
|
||||
|
@ -2508,7 +2508,7 @@ v850_elf_relax_section (abfd, sec, link_info, again)
|
|||
|
||||
symtab_hdr = & elf_tdata (abfd)->symtab_hdr;
|
||||
|
||||
internal_relocs = (_bfd_elf32_link_read_relocs
|
||||
internal_relocs = (_bfd_elf_link_read_relocs
|
||||
(abfd, sec, (PTR) NULL, (Elf_Internal_Rela *) NULL,
|
||||
link_info->keep_memory));
|
||||
if (internal_relocs == NULL)
|
||||
|
|
|
@ -3925,7 +3925,7 @@ retrieve_internal_relocs (abfd, sec, keep_memory)
|
|||
|
||||
internal_relocs = elf_section_data (sec)->relocs;
|
||||
if (internal_relocs == NULL)
|
||||
internal_relocs = (_bfd_elf32_link_read_relocs
|
||||
internal_relocs = (_bfd_elf_link_read_relocs
|
||||
(abfd, sec, (PTR) NULL, (Elf_Internal_Rela *) NULL,
|
||||
keep_memory));
|
||||
return internal_relocs;
|
||||
|
|
|
@ -1556,7 +1556,7 @@ elf64_alpha_relax_opt_call (info, symval)
|
|||
}
|
||||
else
|
||||
{
|
||||
tsec_relocs = (_bfd_elf64_link_read_relocs
|
||||
tsec_relocs = (_bfd_elf_link_read_relocs
|
||||
(info->abfd, info->tsec, (PTR) NULL,
|
||||
(Elf_Internal_Rela *) NULL,
|
||||
info->link_info->keep_memory));
|
||||
|
@ -2072,7 +2072,7 @@ elf64_alpha_relax_section (abfd, sec, link_info, again)
|
|||
local_got_entries = alpha_elf_tdata(abfd)->local_got_entries;
|
||||
|
||||
/* Load the relocations for this section. */
|
||||
internal_relocs = (_bfd_elf64_link_read_relocs
|
||||
internal_relocs = (_bfd_elf_link_read_relocs
|
||||
(abfd, sec, (PTR) NULL, (Elf_Internal_Rela *) NULL,
|
||||
link_info->keep_memory));
|
||||
if (internal_relocs == NULL)
|
||||
|
@ -5556,7 +5556,7 @@ static const struct elf_size_info alpha_elf_size_info =
|
|||
sizeof (Elf_External_Note),
|
||||
8,
|
||||
1,
|
||||
64, 8,
|
||||
64, 3,
|
||||
ELFCLASS64, EV_CURRENT,
|
||||
bfd_elf64_write_out_phdrs,
|
||||
bfd_elf64_write_shdrs_and_ehdr,
|
||||
|
|
|
@ -606,7 +606,7 @@ elf64_hppa_check_relocs (abfd, info, sec, relocs)
|
|||
the special sections required for dynamic linking. */
|
||||
if (! elf_hash_table (info)->dynamic_sections_created)
|
||||
{
|
||||
if (! bfd_elf64_link_create_dynamic_sections (abfd, info))
|
||||
if (! _bfd_elf_link_create_dynamic_sections (abfd, info))
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
@ -2692,7 +2692,7 @@ const struct elf_size_info hppa64_elf_size_info =
|
|||
sizeof (Elf_External_Note),
|
||||
4,
|
||||
1,
|
||||
64, 8,
|
||||
64, 3,
|
||||
ELFCLASS64, EV_CURRENT,
|
||||
bfd_elf64_write_out_phdrs,
|
||||
bfd_elf64_write_shdrs_and_ehdr,
|
||||
|
|
|
@ -2782,7 +2782,7 @@ const struct elf_size_info mips_elf64_size_info =
|
|||
4, /* hash-table entry size */
|
||||
3, /* internal relocations per external relocations */
|
||||
64, /* arch_size */
|
||||
8, /* file_align */
|
||||
3, /* log_file_align */
|
||||
ELFCLASS64,
|
||||
EV_CURRENT,
|
||||
bfd_elf64_write_out_phdrs,
|
||||
|
|
|
@ -1854,9 +1854,9 @@ _bfd_mmix_check_all_relocs (abfd, info)
|
|||
continue;
|
||||
|
||||
internal_relocs
|
||||
= _bfd_elf64_link_read_relocs (abfd, o, (PTR) NULL,
|
||||
(Elf_Internal_Rela *) NULL,
|
||||
info->keep_memory);
|
||||
= _bfd_elf_link_read_relocs (abfd, o, (PTR) NULL,
|
||||
(Elf_Internal_Rela *) NULL,
|
||||
info->keep_memory);
|
||||
if (internal_relocs == NULL)
|
||||
return FALSE;
|
||||
|
||||
|
@ -2374,9 +2374,9 @@ mmix_elf_relax_section (abfd, sec, link_info, again)
|
|||
|
||||
/* Get a copy of the native relocations. */
|
||||
internal_relocs
|
||||
= _bfd_elf64_link_read_relocs (abfd, sec, (PTR) NULL,
|
||||
(Elf_Internal_Rela *) NULL,
|
||||
link_info->keep_memory);
|
||||
= _bfd_elf_link_read_relocs (abfd, sec, (PTR) NULL,
|
||||
(Elf_Internal_Rela *) NULL,
|
||||
link_info->keep_memory);
|
||||
if (internal_relocs == NULL)
|
||||
goto error_return;
|
||||
|
||||
|
|
|
@ -4873,9 +4873,9 @@ ppc64_elf_edit_opd (obfd, info)
|
|||
sym_hashes = elf_sym_hashes (ibfd);
|
||||
|
||||
/* Read the relocations. */
|
||||
relstart = _bfd_elf64_link_read_relocs (ibfd, sec, (PTR) NULL,
|
||||
(Elf_Internal_Rela *) NULL,
|
||||
info->keep_memory);
|
||||
relstart = _bfd_elf_link_read_relocs (ibfd, sec, (PTR) NULL,
|
||||
(Elf_Internal_Rela *) NULL,
|
||||
info->keep_memory);
|
||||
if (relstart == NULL)
|
||||
return FALSE;
|
||||
|
||||
|
@ -5196,9 +5196,9 @@ ppc64_elf_tls_optimize (obfd, info)
|
|||
int expecting_tls_get_addr;
|
||||
|
||||
/* Read the relocations. */
|
||||
relstart = _bfd_elf64_link_read_relocs (ibfd, sec, (PTR) NULL,
|
||||
(Elf_Internal_Rela *) NULL,
|
||||
info->keep_memory);
|
||||
relstart = _bfd_elf_link_read_relocs (ibfd, sec, (PTR) NULL,
|
||||
(Elf_Internal_Rela *) NULL,
|
||||
info->keep_memory);
|
||||
if (relstart == NULL)
|
||||
return FALSE;
|
||||
|
||||
|
@ -6594,9 +6594,9 @@ ppc64_elf_size_stubs (output_bfd, stub_bfd, info, group_size,
|
|||
|
||||
/* Get the relocs. */
|
||||
internal_relocs
|
||||
= _bfd_elf64_link_read_relocs (input_bfd, section, NULL,
|
||||
(Elf_Internal_Rela *) NULL,
|
||||
info->keep_memory);
|
||||
= _bfd_elf_link_read_relocs (input_bfd, section, NULL,
|
||||
(Elf_Internal_Rela *) NULL,
|
||||
info->keep_memory);
|
||||
if (internal_relocs == NULL)
|
||||
goto error_ret_free_local;
|
||||
|
||||
|
|
|
@ -3271,7 +3271,7 @@ const struct elf_size_info s390_elf64_size_info =
|
|||
8, /* hash-table entry size. */
|
||||
1, /* internal relocations per external relocations. */
|
||||
64, /* arch_size. */
|
||||
8, /* file_align. */
|
||||
3, /* log_file_align. */
|
||||
ELFCLASS64, EV_CURRENT,
|
||||
bfd_elf64_write_out_phdrs,
|
||||
bfd_elf64_write_shdrs_and_ehdr,
|
||||
|
|
|
@ -2226,7 +2226,7 @@ sh_elf64_get_relocated_section_contents (output_bfd, link_info, link_order,
|
|||
goto error_return;
|
||||
}
|
||||
|
||||
internal_relocs = (_bfd_elf64_link_read_relocs
|
||||
internal_relocs = (_bfd_elf_link_read_relocs
|
||||
(input_bfd, input_section, (PTR) NULL,
|
||||
(Elf_Internal_Rela *) NULL, FALSE));
|
||||
if (internal_relocs == NULL)
|
||||
|
|
|
@ -3170,7 +3170,7 @@ const struct elf_size_info sparc64_elf_size_info =
|
|||
we use 2. */
|
||||
1,
|
||||
64, /* arch_size. */
|
||||
8, /* file_align. */
|
||||
3, /* log_file_align. */
|
||||
ELFCLASS64,
|
||||
EV_CURRENT,
|
||||
bfd_elf64_write_out_phdrs,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* ELF executable support for BFD.
|
||||
Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
|
||||
2001, 2002 Free Software Foundation, Inc.
|
||||
2001, 2002, 2003 Free Software Foundation, Inc.
|
||||
|
||||
Written by Fred Fish @ Cygnus Support, from information published
|
||||
in "UNIX System V Release 4, Programmers Guide: ANSI C and
|
||||
|
@ -121,8 +121,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
|||
#define elf_write_out_phdrs NAME(bfd_elf,write_out_phdrs)
|
||||
#define elf_write_relocs NAME(bfd_elf,write_relocs)
|
||||
#define elf_slurp_reloc_table NAME(bfd_elf,slurp_reloc_table)
|
||||
#define elf_link_create_dynamic_sections \
|
||||
NAME(bfd_elf,link_create_dynamic_sections)
|
||||
#define elf_bfd_discard_info NAME(bfd_elf,discard_info)
|
||||
#define elf_reloc_symbol_deleted_p NAME(_bfd_elf,reloc_symbol_deleted_p)
|
||||
#define elf_link_record_dynamic_symbol _bfd_elf_link_record_dynamic_symbol
|
||||
|
@ -1585,7 +1583,7 @@ const struct elf_size_info NAME(_bfd_elf,size_info) = {
|
|||
sizeof (Elf_External_Note),
|
||||
4,
|
||||
1,
|
||||
ARCH_SIZE, FILE_ALIGN,
|
||||
ARCH_SIZE, LOG_FILE_ALIGN,
|
||||
ELFCLASS, EV_CURRENT,
|
||||
elf_write_out_phdrs,
|
||||
elf_write_shdrs_and_ehdr,
|
||||
|
|
2035
bfd/elflink.c
2035
bfd/elflink.c
File diff suppressed because it is too large
Load diff
2195
bfd/elflink.h
2195
bfd/elflink.h
File diff suppressed because it is too large
Load diff
|
@ -720,7 +720,7 @@ elfNN_ia64_relax_section (abfd, sec, link_info, again)
|
|||
symtab_hdr = &elf_tdata (abfd)->symtab_hdr;
|
||||
|
||||
/* Load the relocations for this section. */
|
||||
internal_relocs = (_bfd_elfNN_link_read_relocs
|
||||
internal_relocs = (_bfd_elf_link_read_relocs
|
||||
(abfd, sec, (PTR) NULL, (Elf_Internal_Rela *) NULL,
|
||||
link_info->keep_memory));
|
||||
if (internal_relocs == NULL)
|
||||
|
@ -1466,7 +1466,7 @@ elfNN_ia64_aix_link_add_symbols (abfd, info)
|
|||
if (! elf_hash_table (info)->dynamic_sections_created
|
||||
&& abfd->xvec == info->hash->creator)
|
||||
{
|
||||
if (! bfd_elfNN_link_create_dynamic_sections (abfd, info))
|
||||
if (! _bfd_elf_link_create_dynamic_sections (abfd, info))
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
|
|
@ -542,7 +542,7 @@ static bfd *reldyn_sorting_bfd;
|
|||
|
||||
/* The default alignment for sections, as a power of two. */
|
||||
#define MIPS_ELF_LOG_FILE_ALIGN(abfd) \
|
||||
(get_elf_backend_data (abfd)->s->file_align == 8 ? 3 : 2)
|
||||
(get_elf_backend_data (abfd)->s->log_file_align)
|
||||
|
||||
/* Get word-sized data. */
|
||||
#define MIPS_ELF_GET_WORD(abfd, ptr) \
|
||||
|
@ -5106,10 +5106,10 @@ _bfd_mips_elf_check_relocs (abfd, info, sec, relocs)
|
|||
sizeof CALL_FP_STUB - 1) == 0)
|
||||
continue;
|
||||
|
||||
sec_relocs = (MNAME(abfd,_bfd_elf,link_read_relocs)
|
||||
(abfd, o, (PTR) NULL,
|
||||
(Elf_Internal_Rela *) NULL,
|
||||
info->keep_memory));
|
||||
sec_relocs
|
||||
= _bfd_elf_link_read_relocs (abfd, o, (PTR) NULL,
|
||||
(Elf_Internal_Rela *) NULL,
|
||||
info->keep_memory);
|
||||
if (sec_relocs == NULL)
|
||||
return FALSE;
|
||||
|
||||
|
@ -5561,9 +5561,9 @@ _bfd_mips_relax_section (abfd, sec, link_info, again)
|
|||
if (link_info->relocateable)
|
||||
return TRUE;
|
||||
|
||||
internal_relocs = (MNAME(abfd,_bfd_elf,link_read_relocs)
|
||||
(abfd, sec, (PTR) NULL, (Elf_Internal_Rela *) NULL,
|
||||
link_info->keep_memory));
|
||||
internal_relocs = _bfd_elf_link_read_relocs (abfd, sec, (PTR) NULL,
|
||||
(Elf_Internal_Rela *) NULL,
|
||||
link_info->keep_memory);
|
||||
if (internal_relocs == NULL)
|
||||
return TRUE;
|
||||
|
||||
|
@ -7887,10 +7887,9 @@ _bfd_mips_elf_discard_info (abfd, cookie, info)
|
|||
if (! tdata)
|
||||
return FALSE;
|
||||
|
||||
cookie->rels = (MNAME(abfd,_bfd_elf,link_read_relocs)
|
||||
(abfd, o, (PTR) NULL,
|
||||
(Elf_Internal_Rela *) NULL,
|
||||
info->keep_memory));
|
||||
cookie->rels = _bfd_elf_link_read_relocs (abfd, o, (PTR) NULL,
|
||||
(Elf_Internal_Rela *) NULL,
|
||||
info->keep_memory);
|
||||
if (!cookie->rels)
|
||||
{
|
||||
free (tdata);
|
||||
|
|
Loading…
Add table
Reference in a new issue