This is PR32429.
We did not mention -fPIC in error about producing dynamic relocation
in readonly segment before. Patch changes that.
Differential D36874
[ELF] - Mention -fPIC in some error messages grimar on Aug 18 2017, 6:56 AM. Authored by
Details This is PR32429. We did not mention -fPIC in error about producing dynamic relocation
Diff Detail Event TimelineComment Actions I think that this is a worthwhile addition, I've seen at least a couple of questions on llvm-dev that this improvement might have helped to resolve.
Comment Actions
Sorry, I mean "We do not want to recommend or ..."
Comment Actions
|
Typo: permited should be permitted.
We may want a bit more context with the -z notext option as well as to someone unfamiliar with the options could be a compiler or a linker option, and it isn't clear from the name what it will actually do. May I suggest something like:
"Unintentional use of such relocations is undesirable, and is not permitted by default, use linker option -z notext to allow.", not a strong opinion though.