NASM - The Netwide Assembler

NASM Forum => Using NASM => Topic started by: nobody on July 06, 2005, 11:01:08 PM

Title: String in ELF object files
Post by: nobody on July 06, 2005, 11:01:08 PM
How does one disable the "The Netwide Assembler 0.98.38" string inserted into ELF object files (yes, I'm obsessed w/ size for some irrational reason)?
Title: Re: String in ELF object files
Post by: Frank Kotler on July 06, 2005, 11:15:42 PM
strip --remove-section .comment smallprog

Alternatively, find and delete the offending code in output/outelf.c and recompile. It has crossed my mind of late (I've been examining file contents to see what crashes on 2.6.10+) that there ought to be a switch to disable that output, but at present, there is none.

Best,
Frank
Title: Re: String in ELF object files
Post by: nobody on July 06, 2005, 11:57:39 PM
Thanks!