Skip to content

lld produces elf with corrupt string table index #147013

Open
@stsp

Description

@stsp

lld-tst.tar.gz
This is a fully automated test-case.
Just run:

$ ./test.sh
ld.lld -melf_i386 -static -o a.elf --defsym=loadaddr=0x900 -Tkernel.ld kernel.o entry.o io.o console.o serial.o printer.o execrh.o nlssupt.o procsupt.o dosidle.o int2f.o nls_hc.o intr.o irqstack.o cpu.o plt.o cdata.o floppy.o rdpcclk.o wrpcclk.o wratclk.o
nm: warning: a.elf has a corrupt string table index

The "good" run can be achieved
with: LD=ld ./test.sh.
In this case it uses GNU ld, and
nm just prints a symbol table.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions