[ELF] Allow target to adjust a symbol's value for using in a dynamic tag
authorSimon Atanasyan <simon@atanasyan.com>
Wed, 10 Dec 2014 20:09:12 +0000 (20:09 +0000)
committerSimon Atanasyan <simon@atanasyan.com>
Wed, 10 Dec 2014 20:09:12 +0000 (20:09 +0000)
commit87a559212bb345c81776eea4be9fb2adc10f24e3
tree1f8078ee11eb30d8cab28db0094af396fc054c84
parent80f57f68429897fa611b39adf9190019355ec73b
[ELF] Allow target to adjust a symbol's value for using in a dynamic tag

Some targets like microMIPS and ARM Thumb use the last bit of a symbol's
value to mark 'compressed' code. This patch adds new virtual function
`DynamicTable::getAtomVirtualAddress` which allows to adjust a symbol's
value before using it in a dynamic table tags like DT_INIT / DT_FINI.

llvm-svn: 223963
lld/lib/ReaderWriter/ELF/Mips/MipsDynamicTable.h
lld/lib/ReaderWriter/ELF/SectionChunks.h
lld/test/elf/Mips/initfini-micro.test [new file with mode: 0644]