Nick Kledzik
b423266e93
[mach-o] parse multiple symbols on same address into aliases
...
llvm-svn: 210502
2014-06-09 23:35:37 +00:00
Nick Kledzik
a2d602560b
[mach-o] Make anonymous atom out of section content before any symbol
...
In sections that are broken into atoms at symbols, if the first symbol in the
section is not at the start of the section, then make an anonymous atom for
the section content that is before the first symbol.
llvm-svn: 210142
2014-06-04 00:34:27 +00:00
Nick Kledzik
cb9f890b77
[mach-o] Refactor sections -> atoms to be table driven.
...
Previously each section kind had its own code to loop over the section and
parse it into atoms. This refactoring has two tables. The first maps sections
to ContentType. The second maps ContentType to information on how to find
the atom boundaries.
A few bugs in test cases were discovered as part of the refactoring.
No change in functionality intended.
llvm-svn: 210138
2014-06-03 23:36:50 +00:00
Nick Kledzik
acfad80250
[mach-o] Add support for custom sections
...
llvm-svn: 209928
2014-05-30 22:51:04 +00:00
Nick Kledzik
f317d66c31
[mach-0] Add support for parsing compact unwind info section
...
llvm-svn: 209865
2014-05-29 23:50:48 +00:00
Nick Kledzik
b367c25f28
[mach-o] Add support for parsing __eh_frame section. Generalize support for whether symbols in a section are ignored or illegal
...
llvm-svn: 209858
2014-05-29 23:07:20 +00:00
Nick Kledzik
9ede702bc4
[mach-o] Add support for parsing CFString sections
...
llvm-svn: 209844
2014-05-29 20:44:21 +00:00
Nick Kledzik
cda69a279d
[mach-o] Add support for parsing of weak-def symbols
...
llvm-svn: 209707
2014-05-28 02:04:45 +00:00
Nick Kledzik
8399d69cb2
[mach-o] rename test case
...
llvm-svn: 209705
2014-05-28 01:31:04 +00:00
Nick Kledzik
388f3d02de
[mach-o] Support parsing of non-lazy-pointer sections
...
llvm-svn: 209704
2014-05-28 01:16:35 +00:00
Nick Kledzik
a4a08d31cf
[mach-o] Add support for initializers and terminators in object files
...
llvm-svn: 209700
2014-05-27 23:20:52 +00:00
Nick Kledzik
3e90e5f187
[mach-o] Add support for reading utf16 string literal sections
...
llvm-svn: 209684
2014-05-27 20:25:06 +00:00
Nick Kledzik
8a0bc44b71
[mach-o] Fix so that mach-o semantic errors return an error rather than assert
...
llvm-svn: 209469
2014-05-22 20:05:43 +00:00
Nick Kledzik
e39685964b
[mach-o] Use lit.local.cfg to enable mach-o test cases to be run
...
llvm-svn: 209383
2014-05-22 01:47:17 +00:00
Nick Kledzik
a0c13a2420
[mach-o] parse literal sections into atoms
...
llvm-svn: 209379
2014-05-22 01:42:06 +00:00
Nick Kledzik
e09cfc5f8a
[mach-o] Add support for zero-fill sections.
...
llvm-svn: 208928
2014-05-15 23:03:50 +00:00
Nick Kledzik
61fdef6086
[mach-o] Add support and test cases for parsing tentative definitions
...
llvm-svn: 208919
2014-05-15 20:59:23 +00:00
Rui Ueyama
50c337a47c
Remove trailing whitespaces.
...
llvm-svn: 208815
2014-05-14 21:49:38 +00:00
Nick Kledzik
dba52ad488
[mach-o] Add test case for parsing nlist -> Scope
...
llvm-svn: 208814
2014-05-14 21:37:14 +00:00