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]

Re: [PATCH][AArch64] Improve copy relocation support on four absolute relocation types


Hi Jiong,

   bfd/
     * elfnn-aarch64.c (elfNN_aarch64_check_relocs): Initialize non_got_ref
     properly for MOVW_G0/1/2_NC and MOVW_G3. Reject them when linking
     shared library.
     (elfNN_aarch64_gc_sweep_hook): Add check on these relocs.

   ld/testsuite/
     * ld-aarch64/copy-relocs-so.s: New test file.
     * ld-aarch64/copy-relocs-exe.s: Likewise.
     * ld-aarch64/copy-relocs.d: New expectation file.
     * ld-aarch64/emit-relocs-264-bad.d: New test file.
     * ld-aarch64/emit-relocs-266-bad.d: Likewise.
     * ld-aarch64/emit-relocs-268-bad.d: Likewise.
     * ld-aarch64/emit-relocs-269-bad.d: Likewise.
     * ld-aarch64/aarch64-elf.exp: Run new added test.

Approved - please apply.

Cheers
  Nick


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