The --fix-cortex-a8 is sensitive to alignment and the precise destination of branch instructions. These are not knowable at relocatable link time. We follow GNU ld and the --fix-cortex-a53-843419 (D72968) by not patching the code when there is a relocatable link.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
It looks fine to me, I'll leave it for others, have a minor question though.
lld/test/ELF/arm-fix-cortex-a8-recognize.s | ||
---|---|---|
14 | Does it make sense to check what we do with -verbose -r? |
Comment Actions
lld/test/ELF/arm-fix-cortex-a8-recognize.s | ||
---|---|---|
14 | There is a small benefit. I'll add a check that we don't see the message as it makes it more consistent with the others. |
Comment Actions
I was waiting for other opinions on D72968 because I was thinking whether it makes sense to reject -r --fix-*. It seems GNU ld has made a decision and the way is simple, let's do this.
lld/test/ELF/arm-fix-cortex-a8-recognize.s | ||
---|---|---|
14 | -v --> --verbose They are different options. -v just prints the version number. |
Does it make sense to check what we do with -verbose -r?