From: Cyrill G. <gor...@gm...> - 2016-08-02 16:48:19
|
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. > > After thinking about it, I decided to add the -fno-common compiler > option (if supported.) Current NASM coding standard is to not use > common data anyway, and that will help us spot mistakes. > > Hopefully that will work around the problem. > > -hpa > Cyrill |