I guess the 64k section support is incomplete. If there are more than 64k
sections, entries in the dynamic symbol table may reference sections beyond
64k:
gcc -B./ -o bar sect.o bar.o
/usr/local/bin/ld: BFD 2.16.91.0.7 20060228 internal error, aborting at
/net/gnu-13/export/linux/src/binutils/binutils/bfd/elfcode.h line 215 in
bfd_elf64_swap_symbol_out
/usr/local/bin/ld: Please report this bug.
collect2: ld returned 1 exit status
I guess linker should stop well before getting abort.