Commit Graph

7 Commits

Author SHA1 Message Date
Rui Ueyama b88a905306 Move getLocation from Relocations.cpp to InputSection.cpp.
The function was used only within Relocations.cpp, but now we are
using it in many places, so this patch moves it to a file that fits
to the functionality.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@287943 91177308-0d34-0410-b5e6-96231b3b80d8
2016-11-25 18:51:53 +00:00
Eugene Leviant cc0968b937 [ELF] Print error location in .eh_frame parser
Differential revision: https://reviews.llvm.org/D26914


git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@287750 91177308-0d34-0410-b5e6-96231b3b80d8
2016-11-23 09:45:17 +00:00
Rui Ueyama 4329200578 Split getFdeEncoding.
git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@287452 91177308-0d34-0410-b5e6-96231b3b80d8
2016-11-19 18:44:09 +00:00
Rui Ueyama c1beb92a09 Fix typo in error message.
git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@287451 91177308-0d34-0410-b5e6-96231b3b80d8
2016-11-19 18:34:55 +00:00
Petr Hosek 3c97a712c0 [ELF] Allow arbitrary code alignment in .eh_frame
According to the specification, CIE code alignment factor is an
arbitrary unsigned LEB128 encoded value.

Differential revision: https://reviews.llvm.org/D22954

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@277105 91177308-0d34-0410-b5e6-96231b3b80d8
2016-07-29 04:41:38 +00:00
Ed Maste c0c60e9dd0 ELF: Handle empty CIE augmentation string
"A zero length string indicates that no augmentation data is present."

The FreeBSD/mips toolchain (GCC 4.2.1) generates .debug_frame sections
containing CIE records that have an empty augmentation string.

Differential Revision: http://reviews.llvm.org/D19928


git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@270706 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-25 14:45:28 +00:00
Rui Ueyama 5751c400aa Create a new file EhFrame.cpp and move code to read .eh_frame there.
git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@270526 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-24 02:55:45 +00:00