From: H. P. A. <hp...@zy...> - 2016-08-02 16:52:14
|
On 08/02/16 09:48, Cyrill Gorcunov wrote: > On Tue, Aug 02, 2016 at 09:37:15AM -0700, H. Peter Anvin wrote: >> On 08/02/16 07:23, Cyrill Gorcunov wrote: >>> On Tue, Aug 02, 2016 at 06:54:54AM -0700, anonymous coward wrote: >>>> >>>> I'm not sure what to try next -- nasmlib.a seems to contain the >>>> symbol, but somehow ld fails? >>> >>> I think --whole-archive option needed for ld >>> >> >> That would defeat the entire purpose with the library, though. > > How? IIRC --whole-archive tells linker to look into all objects > in archive instead of first one. No, it always does that. --whole-archive means "include all objects in the archive in the final executable", regardless of if an object is needed or not. The whole point of the exercise was to reduce the size of especially ndisasm by omitting objects it really doesn't need. -hpa |