title: Do not pass --build-id to linker from gcc
body: <p>I'm trying to compile for an embedded arm processor using <code>gcc-arm-linux-gnueabi</code>, and <code>-nostdlib</code> to remove the dependencies on the c libraries and startup files. The chip doesn't have any way of interpreting elf files, so using <code>objcopy -O binary</code>, I can remove the elf headers from it. However, if I leave the build ID in, then the binary has the build ID at the start of the output, and so it fails to run. I can remove the build id in the linker script using <code>/DISCARD/ : { *(.note.gnu.build-id) *(.ARM.attributes) }</code>, however then the linker warns about <code>.note.gnu.build-id section discarded, --build-id ignored.</code>. While this works fine, and the code runs on the chip fine, I'd like to not have to pass and then drop the build ID.  Is there any way to instruct <code>gcc</code> to pass commands to the linker without also passing <code>--build-id</code>?</p>