| Summary: | binutils-2.23.2/bfd fails with undefined reference to __fini_array_end | ||
|---|---|---|---|
| Product: | buildroot | Reporter: | Adam Nielsen <a.nielsen> |
| Component: | Other | Assignee: | unassigned |
| Status: | RESOLVED WORKSFORME | ||
| Severity: | normal | CC: | buildroot |
| Priority: | P5 | ||
| Version: | 2012.08 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Host: | Target: | ||
| Build: | |||
| Attachments: |
buildroot config to generate error
uClibc config, generated through buildroot |
||
Created attachment 4892 [details]
uClibc config, generated through buildroot
Add uClibc config to generate error
I tried building binutils on the specified configuration (buildroot 2014.02-rc1 based) and succeeded. As there was no response on the seemingly related bug #6218, I'm closing this bug. Please reopen if you still experience the same problem, and provide more details. |
Created attachment 4886 [details] buildroot config to generate error Compiling a toolchain with no MMU support (and consequently ELF support disabled, so STATIC FLAT binaries in use) gives this error: libtool: link: buildroot/host/usr/bin/ccache buildroot/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc -shared .libs/archive.o .libs/archures.o .libs/bfd.o .libs/bfdio.o .libs/bfdwin.o .libs/cache.o .libs/coffgen.o .libs/corefile.o .libs/format.o .libs/init.o .libs/libbfd.o .libs/opncls.o .libs/reloc.o .libs/section.o .libs/syms.o .libs/targets.o .libs/hash.o .libs/linker.o .libs/srec.o .libs/binary.o .libs/tekhex.o .libs/ihex.o .libs/stabs.o .libs/stab-syms.o .libs/merge.o .libs/dwarf2.o .libs/simple.o .libs/compress.o .libs/verilog.o .libs/elf32-arm.o .libs/elf32.o .libs/elf-nacl.o .libs/elf-vxworks.o .libs/elf.o .libs/elflink.o .libs/elf-attrs.o .libs/elf-strtab.o .libs/elf-eh-frame.o .libs/dwarf1.o .libs/elf32-gen.o .libs/cpu-arm.o -Lbuildroot/build/binutils-2.23.2/bfd/../libiberty/pic -liberty -Wl,-lc -Wl,--as-needed -Wl,-lm -Wl,--no-as-needed -Wl,-soname -Wl,libbfd-2.23.2.so -o .libs/libbfd-2.23.2.so buildroot/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib/libc.a(__uClibc_main.os): In function `__uClibc_fini': __uClibc_main.c:(.text+0xc8): undefined reference to `__fini_array_end' __uClibc_main.c:(.text+0xcc): undefined reference to `__fini_array_start' __uClibc_main.c:(.text+0xd0): undefined reference to `__fini_array_start' buildroot/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib/libc.a(__uClibc_main.os): In function `__uClibc_main': __uClibc_main.c:(.text+0x298): undefined reference to `__preinit_array_start' __uClibc_main.c:(.text+0x29c): undefined reference to `__preinit_array_end' __uClibc_main.c:(.text+0x2a0): undefined reference to `__init_array_start' __uClibc_main.c:(.text+0x2a4): undefined reference to `__init_array_end' buildroot/host/usr/lib/gcc/arm-buildroot-linux-uclibcgnueabi/4.8.0/../../../../arm-buildroot-linux-uclibcgnueabi/bin/ld: .libs/libbfd-2.23.2.so: hidden symbol `__fini_array_end' isn't defined buildroot/host/usr/lib/gcc/arm-buildroot-linux-uclibcgnueabi/4.8.0/../../../../arm-buildroot-linux-uclibcgnueabi/bin/ld: final link failed: Bad value collect2: error: ld returned 1 exit status make[4]: *** [libbfd.la] Error 1 make[4]: Leaving directory `buildroot/build/binutils-2.23.2/bfd' It seems to have something to do with binutils still trying to handle ELF files?