Thanks, can reproduce.
The first-order problem is that -T replaces the default linker script,
so it needs to specify everything that the default linker script would
(except of course for any bits that you're deliberately removing).
Attempting to link without any SECTIONS statements at all is unlikely to
produce good results, if it works at all. Maybe the bug reporter
realised this; I just thought I'd better point it out in case.
Still, I agree this is a bug either way. It's bad error recovery and a
bad user interface if nothing else.
FWIW, I tried with:
SEARCH_DIR("/usr/arm-linux-gnueabi/lib"); SEARCH_DIR("=/usr/local/lib");
SEARCH_DIR("=/lib"); SEARCH_DIR("=/usr/lib"); SEARCH_DIR("=/usr/local/lib");
SEARCH_DIR("=/lib"); SEARCH_DIR("=/usr/lib");
INSERT AFTER .text;
and got a "bad value" error, which is hardly good either.
--
arm-linux-gnueabi-ld: BFD (GNU Binutils for Ubuntu) 2.20.51.20100908 assertion
fail ../../bfd/elf32-arm.c:12562
https://bugs.launchpad.net/bugs/665598
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs