When I originally wrote the GOT and Stubs Passes I had hoped
they were generic enough to be usable by all platforms. But ELF
is using private Passes to create PLT entries and I don't think
COFF needs these Passes. I'd plan to change the interface to these
Passes to make it easier to add architectures in mach-o. As
a first step, I'd like to move these Passes out of "Core" and make
them mach-o specific.
Details
Details
- Reviewers
t.p.northover ruiu Bigcheese shankarke
Diff Detail
Diff Detail
Event Timeline
Comment Actions
I support this.
Instead of deleting test files (you removed two files), can you move them to the mach-o directory?
Comment Actions
Those tests need the glue code also deleted from CoreLinkingContext.cpp. That glue code identifies call sites, etc and specific to the flavor. I'll be adding new mach-o specific test cases for the passes as part of the refactoring I'm planning.
This came about because I was adding ARM support to mach-o and realized I would need to copy and paste lots of code from x86[_64] mach-o support. I'd rather refactor it so there is less copying needed.