#!/bin/bash tag=' %ifidn __OUTPUT_FORMAT__,elf section .note.GNU-stack noalloc noexec nowrite progbits %endif' for file in $* do echo "${tag}" >> "${file}" done