Skip to content

unable to build i386 glibc: lld: error: relocation refers to a symbol in a discarded section #4926

@andrewrk

Description

@andrewrk
$ ./zig test ../test/stage1/behavior.zig -target i386-linux-gnu -lc
lld: error: relocation refers to a symbol in a discarded section: __x86.get_pc_thunk.bx
>>> defined in /home/andy/.cache/zig/stage1/o/QwPOfrBzzIXOEPuFhvbaQ4pBmiZk1vZIjVDP_sy7CCeeXOl8s6Zh8l0nMcfprTj6/crti.o
>>> referenced by crti.S:68 (/home/andy/Downloads/zig/lib/libc/glibc/sysdeps/i386/crti.S:68)
>>>               /home/andy/.cache/zig/stage1/o/QwPOfrBzzIXOEPuFhvbaQ4pBmiZk1vZIjVDP_sy7CCeeXOl8s6Zh8l0nMcfprTj6/crti.o:(.init+0x5)
>>> referenced by crti.S:88 (/home/andy/Downloads/zig/lib/libc/glibc/sysdeps/i386/crti.S:88)
>>>               /home/andy/.cache/zig/stage1/o/QwPOfrBzzIXOEPuFhvbaQ4pBmiZk1vZIjVDP_sy7CCeeXOl8s6Zh8l0nMcfprTj6/crti.o:(.fini+0x5)

Metadata

Metadata

Assignees

No one assigned

    Labels

    arch-x8632-bit x86bugObserved behavior contradicts documented or intended behavioros-linuxLinux

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions