Author Topic: String in ELF object files  (Read 5837 times)

nobody

  • Guest
String in ELF object files
« 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)?

Offline Frank Kotler

  • NASM Developer
  • Hero Member
  • *****
  • Posts: 2667
  • Country: us
Re: String in ELF object files
« Reply #1 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

nobody

  • Guest
Re: String in ELF object files
« Reply #2 on: July 06, 2005, 11:57:39 PM »
Thanks!