Conversation
|
@DimStar77 A little bit different as we have discussed, but maybe this is a better solution? |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #326 +/- ##
=======================================
Coverage 69.37% 69.37%
=======================================
Files 18 18
Lines 937 937
Branches 267 267
=======================================
Hits 650 650
Misses 174 174
Partials 113 113 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Could probably work. Not sure though if just disarming stricter (not wrong) compiler behaviour for our own sake is the right approach |
|
Ok, because the proposed empty map check just fails on my system |
b6da6dc to
8797cc2
Compare
Has this in fact been checked at all? Because it very plainly CANNOT have any effect on the reported bug at all, which was about the line producing the word "NO". Therefore the build is configured to not use symbol versions. This PR still reports that LLD does not support version scripts (the map file fails to test-link) at configuration time and then passes an unused (no version file is being used) |
|
As I said in the linked issue:
|
|
You could possibly go with just: if cc.has_link_argument(vscript) or cc.has_multi_link_arguments([vscript, '-Wl,--undefined-version'])
vflag += vscript
endifMaybe not the most pretty to have double check but works. |
Can you give some information about this failure? The empty.map file should look like this: |
|
I do not have this linker on my system, so i proposed this PR and asked for feedback. I'm sorry that it does not fit your needs, but I'm sure we will come up with a good solution. Is the solutions from @jpalus fine then? @TijlCoosemans I actually had a real empty file as we have just pushed in the last PR. |
Yes. And you do need both parts of the "or", due to binutils < 2.40: https://github.com/bminor/binutils-gdb/commit/27fb6a1a7fcd047e7d01bef8e3c12ed67bc7aed0 |
That gives the error |
|
@trisk Could you please check whether the suggested change is also fine for Solaris? |
It works if I put |
|
8797cc2 to
90d2d35
Compare
|
I've pushed a new version, could everybody please check their systems? In case this one is ready I'm going to release a new version |
|
Looks good to me. |
|
Works here too, but you can remove |
|
Works fine for me too with both lld and mold, although variant with |
90d2d35 to
1b8b504
Compare
Fixes: #320