Displaying 1 result from an estimated 1 matches for "ld32_main".
2017 Feb 18
2
[lld] Has anybody ever run into the Solaris linker before?
...common/ld.c
This is where `main` is.
The actual linker has a "main in a library" type interface that is called
into from main() by:
718 /* Call the libld entry point for the specified ELFCLASS */
719 if (class == ELFCLASS64)
720 return (ld64_main(argc, argv, mach));
721 else
722 return (ld32_main(argc, argv, mach));
The rest of the code is in "libld". The header is here:
http://src.illumos.org/source/xref/illumos-gate/usr/src/cmd/
sgs/include/libld.h
There seems to be a huge "context" struct `struct ofl_desc`:
http://src.illumos.org/source/xref/illumos-gate/
usr/src/c...