Featured post
c - Is there an equivalent to the GNU linker "--just-symbols" option for non-GNU linkers? -
-r filename
--just-symbols=filename
read symbol names , addresses filename, not relocate or include in output. allows output file refer symbolically absolute locations of memory defined in other programs. may use option more once.
for example, on mac, ld -r libsomething.a
or gcc -wl,-r,libsomething.a
doesn't work.
since you're talking "your mac", assume talking os x operating systems.
on unix-based systems linker "ld" (with -r option) used of times (see also: elf). in contrast os x systems use mach-o binary format , tool dyld linking. os x doesn't provide same features libraries unix does. try otool -l
on binary see libraries expected. may want try setting dyld_library_path
(man dyld
) binaries keep in mind security risk (this used inject code ld_library_path
on unix-systems).
- Get link
- X
- Other Apps
Comments
Post a Comment