[COMMITTED][AArch64] Cleanup TLS relocation types which don't go through GOT table

Jiong Wang jiong.wang@arm.com
Tue Aug 18 15:52:00 GMT 2015


This patch done two types of cleanup:

  * in aarch64_reloc_got_type and elfNN_aarch64_relocate_section
    
    We don't need those redundant "case" check, as they can be merged
    with the "default" which just "break".

  * in elfNN_aarch64_gc_sweep_hook and elfNN_aarch64_check_relocs
    
    All TLS local executable relocations and some local dynamic
    relocations (those calculate module offset) actually don't need GOT
    entry, so remove them from GOT entry counting.

Native aarch64 build OK and check-ld OK.

Applied as obivious.

2015-08-18  Jiong Wang  <jiong.wang@arm.com>

bfd/
  * elfnn-aarch64.c (aarch64_reloc_got_type): Delete useless check.
  (elfNN_aarch64_relocate_section): Likewise.
  (elfNN_aarch64_gc_sweep_hook): Likewise.
  (elfNN_aarch64_check_relocs): Likewise.

-- 
Regards,
Jiong

-------------- next part --------------
A non-text attachment was scrubbed...
Name: cleanup-tls.patch
Type: text/x-diff
Size: 2733 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20150818/dceb521a/attachment.bin>


More information about the Binutils mailing list