#8288: Undefined weak symbols should get a value of 0 ------------------------------------+------------------------------ Reporter: hamish | Owner: bonefish Type: bug | Status: new Priority: normal | Milestone: R1 Component: System/runtime_loader | Version: R1/Development Keywords: undefined weak symbols | Blocked By: Blocking: | Has a Patch: 0 Platform: All | ------------------------------------+------------------------------ This has apparently already been fixed for kernel code in #6272 but persists in runtime_loader. Weak symbols that are unresolved should get set to 0. For example, this program should run and return successfully: {{{ #include <stdlib.h> extern void func() __attribute__ ((weak)); int main() { // Always false but won't be optimized away. if (malloc(1)==(void*)1) func(); return 0; } }}} But instead runtime_loader complains about unresolved symbols. -- Ticket URL: <http://dev.haiku-os.org/ticket/8288> Haiku <http://dev.haiku-os.org> Haiku - the operating system.