nasm/output
H. Peter Anvin 3e555483b3 labels, outelf: remove casts for allocations
Remove casts from allocations.  This is simply Not How To Do Things:
every cast carries a potential risk of being a toxic type misuse
(e.g. pointer as integer) and so any unnecessary cast is actively
harmful.

Note that a lot of allocations here are completely unnecessary: the
core code now guarantees that all filenames are permanently allocated
for the duration of the assembly, and so should be turned into const
char * without any further allocation.  Any remaining malloc+strcpy
should be turned into nasm_strdup(), and nasm_new[n]() used whereever
possible.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2017-04-23 17:02:46 -07:00
..
codeview.c Add a generic pragma-handling infrastructure 2017-03-07 21:32:37 -08:00
dwarf.h output/dwarf.h: update dwarf constants 2009-08-10 16:00:43 -07:00
elf.h output: elf -- Fix typo in ELF32_ST_INFO 2017-03-12 11:40:52 +03:00
legacy.c Properly keep track of the base of relative relocations 2017-02-21 11:30:22 -08:00
nulldbg.c Add a generic pragma-handling infrastructure 2017-03-07 21:32:37 -08:00
nullout.c Add generic perfect string hashes, use for directives 2017-04-03 00:27:07 -07:00
outaout.c output: remove the completely unused set_info method 2017-03-31 11:41:16 -07:00
outaout.mac NASM: relicense under the 2-clause BSD license 2009-07-06 11:09:11 -07:00
outas86.c output: remove the completely unused set_info method 2017-03-31 11:41:16 -07:00
outas86.mac NASM: relicense under the 2-clause BSD license 2009-07-06 11:09:11 -07:00
outbin.c Add generic perfect string hashes, use for directives 2017-04-03 00:27:07 -07:00
outbin.mac NASM: relicense under the 2-clause BSD license 2009-07-06 11:09:11 -07:00
outcoff.c Add generic perfect string hashes, use for directives 2017-04-03 00:27:07 -07:00
outcoff.mac NASM: relicense under the 2-clause BSD license 2009-07-06 11:09:11 -07:00
outdbg.c Fix errors uncovered by clang warnings 2017-04-17 14:01:33 -07:00
outelf.c labels, outelf: remove casts for allocations 2017-04-23 17:02:46 -07:00
outelf.h output: make the return value from the directives method more meaningful 2017-03-07 22:42:39 -08:00
outelf.mac output: output format macros should be case insensitive 2017-03-07 22:53:48 -08:00
outform.c Reorganize the source code into subdirectories 2016-05-25 12:06:29 -07:00
outform.h Merge remote-tracking branch 'origin/nasm-2.12.xx' 2016-03-08 01:08:53 -08:00
outieee.c Add generic perfect string hashes, use for directives 2017-04-03 00:27:07 -07:00
outlib.c Reorganize the source code into subdirectories 2016-05-25 12:06:29 -07:00
outlib.h Add generic perfect string hashes, use for directives 2017-04-03 00:27:07 -07:00
outmacho.c macho: add file path to the dwarf debugging output 2017-04-23 16:46:45 -07:00
outmacho.mac macho: implement do_dead_strip, make subsections_by_symbols a pragma 2017-03-14 18:46:31 -07:00
outobj.c Add generic perfect string hashes, use for directives 2017-04-03 00:27:07 -07:00
outobj.mac NASM: relicense under the 2-clause BSD license 2009-07-06 11:09:11 -07:00
outrdf2.c Add generic perfect string hashes, use for directives 2017-04-03 00:27:07 -07:00
outrdf2.mac NASM: relicense under the 2-clause BSD license 2009-07-06 11:09:11 -07:00
outrdf.mac NASM: relicense under the 2-clause BSD license 2009-07-06 11:09:11 -07:00
pecoff.h coff: Add support for the Codeview 8 debug format 2016-01-24 14:14:39 +03:00
stabs.h lib: split library into stdlib and nasmlib; header handling fixes 2016-03-08 12:20:02 -08:00