[linker] Add safe weak symbol macros