elf: Tidy section headers
commit24420bb5c091736d557b5941a32bd881f407731d
authorMichael Matz <matz@suse.de>
Mon, 23 Jan 2017 00:11:38 +0000 (23 01:11 +0100)
committerMichael Matz <matz@suse.de>
Tue, 2 May 2017 01:07:36 +0000 (2 03:07 +0200)
tree74fb85fb7742a02bb6cfb68671ecad885bf53f97
parent3c39cb5cd8f49e52353e72e3cd26467e4cd0ed0e
elf: Tidy section headers

Don't emit useless section headers and also sort them in allocated
order.  Doesn't change behaviour except makes the resulting files
a tiny bit smaller (though at the expense of some very tiny compile
time and code size increase of tcc itself; not 100% it's worth it).
tccelf.c