5cf2a68438
Convert each ack.out symbol to ELF, preserving its name and value, and some but not all other symbol info. The ELF symbol table comes with ELF section headers. If the input file has no symbols (ack -Rled-s), then the output file has no ELF section headers. Append the symbol table and section headers to the ELF file. Linux ignores this appended info when it execs the file. The info might pollute the last page of the ELF segment, but Linux clears this pollution. Tools like nm and gdb can read the ELF symbol table. I include code to translate debugger symbols to an ELF .stab section. I did not test this code, because I did not find a platform that can put S_STB symbols in the ack.out file. |
||
---|---|---|
.. | ||
aelflod.1 | ||
aelflod.c | ||
anm.1 | ||
anm.c | ||
ashow.1 | ||
ashow.c | ||
asize.1 | ||
asize.c | ||
aslod.1 | ||
aslod.c | ||
astrip.1 | ||
astrip.c | ||
build.lua |