New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unbreak build with Clang 7 #4989
Conversation
I'm not entirely sure if image-base is needed, it was an attempted solution to #2516 but I believe the actual solution was just -no-pie. |
Well you broke 5 instead 😄 |
Can someone test runtime on macOS? 2fcd38c added CC @rawrasaur |
I tested recently and image_base is needed for MacOS. |
Need to compare clang version then. |
Clang 7 requires -Wl prefix but adding it exposes lack of -image-base support in BFD and Gold linkers, often used on Linux. Drop -image-base as st11range issues were apparently fixed by -no-pie.
Any updates? |
macOS change is gone to avoid adding more code just to test linker type (or Clang version). Otherwise, my Clang 7 build crashes since 1b74099 (see LLVM PR39246). |
I think it would be best to test if -image-base works/exist, via |
Any chance we could move this along? I think it's sane as is. Only apple seems to need the flag, only apple gets the flag. It would really help my iteration time. |
Closing as merged. |
--image-base=value
is only supported by LLD but Clang doesn't forward many options to linker by default. See error log