crust-firmware / crust

SCP (power management) firmware for sunxi SoCs
Other
150 stars 34 forks source link

`relro` hardening ignored? #216

Closed Kreyren closed 10 months ago

Kreyren commented 1 year ago

/nix/store/qp578a3r38qi9ada3ysn2lxsf21x9c99-or1k-elf-binutils-2.40/bin/or1k-elf-ld: warning: -z relro ignored

Can you provide context to why is relro ignored?

(i assume that it's set to be ignored by upstream i don't have experience with OpenRISC 1000 and would like to add note to NixOS packaging with reasoning)

smaeul commented 1 year ago

relro is ignored because there are no relocations in the linked ELF binary, so there is nothing to put in a relro section. It is not related to the architecture being OpenRISC 1000.