image-tools icon indicating copy to clipboard operation
image-tools copied to clipboard

Makefile: Add build mode pie

Open markyang92 opened this issue 2 months ago • 1 comments

When using the lld linker, compilation with PIC is required. The bfd linker may allow it, but the lld linker requires recompilation with -fPIC if relocation is found in PIE.

aarch64-poky-linux-ld.lld: error: relocation R_AARCH64_ABS64 cannot be used against symbol 'type:.eq.[2]error'; recompile with -fPIC
>>> defined in /tmp/go-link-2192523349/go.o
>>> referenced by go.go
>>>               /tmp/go-link-2192523349/go.o:(.rodata+0x1730)

markyang92 avatar Oct 20 '25 05:10 markyang92

This project is basically unmaintained, I would suggest using umoci instead.

cyphar avatar Oct 20 '25 08:10 cyphar