MaskRay wrote:

I can understand downgrading an error could be convenient for for (optimizing 
section layout or alleviate relocation overflow) but the motivation is a bit 
strange. GNU ld does use an error for this case and this change would not 
address `--fatal-warnings` builds. 
In the absence of an insertion anchor, discarding the effect of the output 
section descriptions could be benign in some cases but disruptive in other 
cases. I think an error is appropriate.

Have you tried defining the anchor sections in a relocatable object file that's 
always linked into the executable instead?
The relocatable object file can be used together with a global linker script.


https://github.com/llvm/llvm-project/pull/68058
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to