forked from Imagelibrary/binutils-gdb
include/elf/
* internal.h (Elf_Internal_Shdr): Change sh_link and sh_info from unsigned long to unsigned int. Change sh_addralign to bfd_vma. Order struct as for external version. bfd/ * elf.c (_bfd_elf_make_section_from_shdr): Remove unnecessary cast. (_bfd_elf_assign_file_position_for_section): Simplify align. (_bfd_elf_init_reloc_shdr): Ensure shift expression wide enough for sh_addralign. (elf_fake_sections, swap_out_syms): Likewise. * elflink.c (bfd_elf_final_link): Likewise. binutils/ * readelf.c: Use %u throughout when printing sh_link or sh_info, %lu when printing sh_addralign. (process_version_sections): Use identical formats when printing all offset and sh_link fields.
This commit is contained in:
@@ -10166,7 +10166,7 @@ bfd_elf_final_link (bfd *abfd, struct bfd_link_info *info)
|
||||
/* sh_link is set in assign_section_numbers. */
|
||||
/* sh_info is set below. */
|
||||
/* sh_offset is set just below. */
|
||||
symtab_hdr->sh_addralign = 1 << bed->s->log_file_align;
|
||||
symtab_hdr->sh_addralign = (bfd_vma) 1 << bed->s->log_file_align;
|
||||
|
||||
off = elf_tdata (abfd)->next_file_pos;
|
||||
off = _bfd_elf_assign_file_position_for_section (symtab_hdr, off, TRUE);
|
||||
|
||||
Reference in New Issue
Block a user