tccelf.c: factor out elf_output_obj()
commit62c0c4c77a1ce9ca075bc76b9ced509d6000cab1
authorgrischka <grischka>
Tue, 12 Jan 2021 14:13:30 +0000 (12 15:13 +0100)
committergrischka <grischka>
Tue, 12 Jan 2021 17:39:35 +0000 (12 18:39 +0100)
tree2a04338a9a72211082c5b4199d72106858386593
parentc74c6ed61aad0c2ae1f85f357fd9484554a936ce
tccelf.c: factor out elf_output_obj()

The small common parts within elf_output_file() aren't
worth the many #ifdefs.  Also, set section sizes and
allocate section names in 2 separate functions.
Makefile
libtcc.c
tccelf.c
tests/Makefile