On 2020-04-14, Fāng-ruì Sòng wrote:
On Mon, Apr 6, 2020 at 5:55 PM Fangrui Song maskray@google.com wrote:
This patch series make seabios linkable with lld.
This is beneficial for FreeBSD ports as well https://svnweb.freebsd.org/ports/head/misc/seabios/Makefile as they can drop an LLD_UNSAFE
As a maintainer of lld ELF, I have triaged numerous pieces of software. seabios is the only one making use of This drops the only instance https://sourceware.org/bugzilla/show_bug.cgi?id=12726
1, 2, 3 and 4 are really independent and can be applied in arbitrary order. 5 depends on 4. I originally combined 4 and 5 and that was why I don't think a patch series made sense.
Fangrui Song (5): romlayout.S: Add missing SHF_ALLOC flag to .fixedaddr.\addr Make rom16.o linkable with lld Makefile: Change ET_EXEC to ET_REL so that lld can link bios.bin.elf romlayout32flag.lds: Use `. +=` instead of `. =` test-build.sh: Delete unneeded LD capability test
Makefile | 4 ++++ scripts/layoutrom.py | 13 ++++++++++--- scripts/test-build.sh | 42 +----------------------------------------- src/romlayout.S | 2 +- 4 files changed, 16 insertions(+), 45 deletions(-)
-- 2.26.0.292.g33ef6b2f38-goog
Ping...
And https://mail.coreboot.org/hyperkitty/list/seabios@seabios.org/thread/CNOAJWO... "[PATCH v2] Use readelf -WSrs instead of objdump -thr so that llvm-readelf can be used as a replacement"
Ping^2
To add some confidence, we applied the llvm-readelf and LLD patches internally and things have been working fine for a while.