Repository navigation
Forking UnixLinkerTool into AndroidLinkerTool. - #4719
Conversation
04194ed to
d8ca864
Compare
5b79176 to
1fac08f
Compare
|
Failing on android with UNAVAILABLE: https://buildkite.com/iree/iree-android-arm64-v8a/builds/3558 |
f9f818e to
eee2cfd
Compare
asaadaldien
left a comment
There was a problem hiding this comment.
Nice! thanks for refactoring this @benvanik.
|
Looking at the failure. We need to statically link |
That was just a hack to silence the error and not a fix - we don't need to link libc - we shouldn't be emitting any code that uses anything from it - like malloc :) |
eee2cfd to
d0f091b
Compare
There's some common things between them but that's mostly incidental at this point. Once we have some more platforms working we can see if there are attributes/etc we can apply everywhere (ensuring they're ignored when not used on a particular tool/etc). For now, this stuff is whack-a-mole and having them shared makes it harder to iterate on any one target. With this our .so's for android end up with no imports and strictly the functions we generate - an unstripped simple_mul is <500 bytes (most of which is the source path names and junk in .comment). Progress on #4606 - needs testing, script updates, and checks that things like tracy still have symbols.
d0f091b to
bf0cadc
Compare
|
This also helps with #4717 (where most of the difficulty is coming from) |
ScottTodd
left a comment
There was a problem hiding this comment.
Let's wait until ~Monday to merge? I'll be build cop then and want to sort out a few things downstream.
SGTM |
|
Can we merge this now? I had some follow-up tasks to work through, but those can be made after this initial set of work lands. |
|
I'm fine with merging - I was waiting for your OK :) |
👍 I'm back around now to handle any follow-up tasks (or fallout from infra failures this may cause :P). |
Oh, interesting. I also don't see the in |
|
no no no no never add another #ifdef :) you can query the target triple with Someone with a mac should figure out what the corresponding equivalent of nostdlib is and use that. |
|
(and, if things get weird, then add a DarwinLinkerTool just like AndroidLinkerTool) |
|
I found a discussion related to |
We can also duplicate the list and explicitly |
There's some common things between them but that's mostly incidental at
this point. Once we have some more platforms working we can see if there
are attributes/etc we can apply everywhere (ensuring they're ignored when
not used on a particular tool/etc). For now, this stuff is whack-a-mole
and having them shared makes it harder to iterate on any one target.
With this our .so's for android end up with no imports and strictly the
functions we generate - an unstripped simple_mul is <500 bytes (most of
which is the source path names and junk in .comment).
Progress on #4606 - needs testing, script updates, and checks that things
like tracy still have symbols.