[PATCH] D42790: [ELF] Ensure that Elf_Rela addends are always written with -r
    Alexander Richardson via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Thu Feb  1 05:02:25 PST 2018
    
    
  
arichardson created this revision.
arichardson added reviewers: ruiu, rafael, grimar.
Herald added subscribers: llvm-commits, emaste.
Previously we would lose the addends if the output uses Elf_Rel but an
input section uses Elf_Rela because we were assuming that all relocations
that need to be written in InputSection::copyRelocations() are Elf_Rel.
Repository:
  rLLD LLVM Linker
https://reviews.llvm.org/D42790
Files:
  ELF/Driver.cpp
  ELF/InputSection.cpp
  ELF/Options.td
  test/ELF/relocatable-rel-rela-mismatch.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42790.132363.patch
Type: text/x-patch
Size: 6455 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180201/e9a576d5/attachment.bin>
    
    
More information about the llvm-commits
mailing list