| Summary: | binutils-2.17.50.0.2 ld assertion error in elflink.c building glibc-2.4-r3 | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Ryan Hill (RETIRED) <rhill> |
| Component: | [OLD] Core system | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | gad.kadosh, gpp666_999, hanno |
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | 66_all_binutils-2.17.50.0.2-warn-textrel.patch | ||
|
Description
Ryan Hill (RETIRED)
2006-06-11 17:45:01 UTC
I'm seeing something similar with the kernel, on amd64: LD init/built-in.o LD .tmp_vmlinux1 ld: BFD 2.17.50.0.2 20060526 assertion fail /var/tmp/portage/binutils-2.17.50.0.2/work/binutils-2.17.50.0.2/bfd/elflink.c:8692 /bin/sh: line 1: 8073 Segmentation fault ld -m elf_x86_64 -o .tmp_vmlinux1 -T arch/x86_64/kernel/vmlinux.lds arch/x86_64/kernel/head.o arch/x86_64/kernel/head64.o arch/x86_64/kernel/init_task.o init/built-in.o --start-group usr/built-in.o arch/x86_64/kernel/built-in.o arch/x86_64/mm/built-in.o arch/x86_64/crypto/built-in.o arch/x86_64/ia32/built-in.o kernel/built-in.o mm/built-in.o fs/built-in.o ipc/built-in.o security/built-in.o crypto/built-in.o block/built-in.o lib/lib.a arch/x86_64/lib/lib.a lib/built-in.o arch/x86_64/lib/built-in.o drivers/built-in.o sound/built-in.o arch/x86_64/pci/built-in.o net/built-in.o --end-group make: *** [.tmp_vmlinux1] Error 139 As you can see, this is now appearing with 2.16.94. The only difference is the line number in elflink.c: ld: BFD 2.16.94 20060612 assertion fail /var/tmp/portage/binutils-2.16.94/work/binutils-2.16.94/bfd/elflink.c:8679 /bin/sh: line 1: 15229 Segmentation fault ld -m elf_x86_64 -o .tmp_vmlinux1 -T arch/x86_64/kernel/vmlinux.lds arch/x86_64/kernel/head.o arch/x86_64/kernel/head64.o arch/x86_64/kernel/init_task.o init/built-in.o --start-group usr/built-in.o arch/x86_64/kernel/built-in.o arch/x86_64/mm/built-in.o arch/x86_64/crypto/built-in.o arch/x86_64/ia32/built-in.o kernel/built-in.o mm/built-in.o fs/built-in.o ipc/built-in.o security/built-in.o crypto/built-in.o block/built-in.o lib/lib.a arch/x86_64/lib/lib.a lib/built-in.o arch/x86_64/lib/built-in.o drivers/built-in.o sound/built-in.o arch/x86_64/pci/built-in.o net/built-in.o --end-group make: *** [.tmp_vmlinux1] Error 139 this is probably because of 66-all-binutils-xxx-warn-textrel.patch I have this problem with wine compilation, it seems that the patch removes the check for shared object && info->shared which results in the assestion afterwards. As the problems are with objects, which are not shared or so it seems. Created attachment 89397 [details, diff]
66_all_binutils-2.17.50.0.2-warn-textrel.patch
What about patching it this way, it uses the 2.16.93 of checking for text-relocations for non-shared objects and leave the new upstream check in peace. Well I'm not sure how correct this will check for relocations (which is what this patch does), although the logic is the same as earlier and it adds a ignore line for the upstream message, but at least I could compile wine now.
it is for 2.16.94 I haven't tested it with 2.17.xx ebuild
thanks ... ive fixed the patch in a slightly different way though ;) |