Opened 22 months ago
Last modified 22 months ago
#18301 new bug
Broken ar libdep bfd-plugin
Reported by: | kallisti5 | Owned by: | nobody |
---|---|---|---|
Priority: | normal | Milestone: | Unscheduled |
Component: | System/runtime_loader | Version: | R1/beta4 |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
The libdep plugin for bfd is an ar file which isn't compatible with our runtime_loader due to the program size of 0.
runtime_loader: /boot/system/lib/bfd-plugins/libdep.a: Incorrect ELF header
This can be reproduced by calling ar using the libdep plugin...
ar r --record-libdeps=libhaha.so libtest.a blah.o
All of our gcc toolchains have a libdep.a ar which is a single libdep_plugin.o within it.
Looking at Linux, it has a libdep.so.
The fault triggering is: https://cgit.haiku-os.org/haiku/tree/src/system/runtime_loader/elf_load_image.cpp#n425
Change History (2)
comment:1 by , 22 months ago
comment:2 by , 22 months ago
Some more history. It looks like we shaved these runtime_loader checks down once before: https://review.haiku-os.org/c/haiku/+/2089
Note:
See TracTickets
for help on using tickets.
Some more relevant information:
https://sourceware.org/bugzilla/show_bug.cgi?id=27113
Looks like this has been a historical issue for them