This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH/AARCH64] Fix alignment of rela section for ILP32


Hi,
  When getting glibc support working for ILP32 I noticed that rela
sections were incorrectly being aligned which caused the overall rela
section (due to combing relocas being the default) to have garbage in
it.  This patch fixes the problem by using LOG_FILE_ALIGN instead of 3
in the place where the sections are created in
elfNN_aarch64_check_relocs.

OK?  Build and tested on aarch64-elf and aarch64-linux-gnu (with some
additional patches applied).

Thanks,
Andrew Pinski

bfd/ChangeLog:
* elfnn-aarch64.c (elfNN_aarch64_check_relocs):
Use the correct alignment for _bfd_elf_make_dynamic_reloc_section for ILP32.

Attachment: fixrelaalignment.diff.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]