-
Notifications
You must be signed in to change notification settings - Fork 11
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
Disable RELRO (Support LLD) #5
Conversation
No point having PT_GNU_RELRO as ELF data won't exist when merging into PE32+ file Unbreaks lld usage which complains about linker script Fixes ncroxon#4
No point having PT_GNU_RELRO as ELF data won't exist when merging into PE32+ file Unbreaks lld usage which complains about linker script Copy of ncroxon/gnu-efi#5
I've tried this on the flatpak cross-build and get:
ld: unrecognized option '-Wl,-z,relro,-z,now' |
Removing RELRO would break NOW aswell, I presume LD means you have conflicting options not that it doesn't know . Any idea where these options are coming from?? Flatpak defaults?? |
No point having PT_GNU_RELRO as ELF data won't exist when merging into PE32+ file Unbreaks lld usage which complains about linker script Copy of ncroxon/gnu-efi#5
Yup, you're completely correct -- it's from /etc/flatpak-builder/defaults.json -- opting out of that and with your patch it builds wonderfully. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed by Nigel
No point having PT_GNU_RELRO as ELF data won't exist when merging into PE32+ file
Unbreaks lld usage which complains about linker script
Fixes #4