https://llvm.org/bugs/show_bug.cgi?id=26814
Bug ID: 26814 Summary: lld needs to set DF_TEXTREL if the output contains relocations in non-writable segments Product: lld Version: unspecified Hardware: PC OS: FreeBSD Status: NEW Severity: normal Priority: P Component: All Bugs Assignee: unassignedb...@nondot.org Reporter: ema...@freebsd.org CC: llvm-bugs@lists.llvm.org Classification: Unclassified PR 26813 reports an issue where an lld-linked FreeBSD libc contains .text relocations, which should not be the case. However, if the output does contain .text relocations the DF_TEXTREL flag needs to be set (and perhaps the DT_TEXTREL tag). Split into a separate PR for tracking. See http://www.sco.com/developers/gabi/2007-03-26/ch5.dynamic.html#df_textrel > DF_TEXTREL > > If this flag is not set, no relocation entry should cause a modification > to a non-writable segment, as specified by the segment permissions in the > program header table. If this flag is set, one or more relocation entries > might request modifications to a non-writable segment, and the dynamic > linker can prepare accordingly. -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs