wrong htons() used?
Grant.Edwards@comtrol.com
Grant.Edwards@comtrol.com
Thu Oct 21 15:15:00 GMT 1999
On Thu, Oct 21, 1999 at 04:57:02PM -0500, Grant.Edwards@comtrol.com wrote:
> I don't know what I did to fix it, so I take out
> -Wl,-Map,gdb.map and rebuild it without generating the map
> file, and it doesn't work.
OK, this is wierd. Running gcc -E -O2 produces source with an
external declaration for htons() but no calls. Running gcc -E
without -O2 generates source with calls to htons().
I didn't know that -O altered the pre-processor's behavior.
That doesn't sound too kosher.
The object files produced with and without -O2 differ
similarly, so the binary works if that particular file is
compiled with optimization off.
--
Grant Edwards
Grant.Edwards@comtrol.com
More information about the Gdb
mailing list