Up to [local] / src / usr.bin / ctfconv
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.20 / (download) - annotate - [select for diffs], Sun Oct 2 11:56:43 2022 UTC (20 months, 1 week ago) by mpi
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE,
OPENBSD_7_5,
OPENBSD_7_4_BASE,
OPENBSD_7_4,
OPENBSD_7_3_BASE,
OPENBSD_7_3,
HEAD
Changes since 1.19: +1 -2 lines
Diff to previous 1.19 (colored) to selected 1.4 (colored)
Remove unused DEBUG_LINE define.
Revision 1.19 / (download) - annotate - [select for diffs], Mon Jul 12 15:09:19 2021 UTC (2 years, 10 months ago) by beck
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE,
OPENBSD_7_2,
OPENBSD_7_1_BASE,
OPENBSD_7_1,
OPENBSD_7_0_BASE,
OPENBSD_7_0
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored) to selected 1.4 (colored)
Change the error reporting pattern throughout the tree when unveil fails to report the path that the failure occured on. Suggested by deraadt@ after some tech discussion. Work done and verified by Ashton Fagg <ashton@fagg.id.au> ok deraadt@ semarie@ claudio@
Revision 1.18 / (download) - annotate - [select for diffs], Thu Nov 7 13:39:08 2019 UTC (4 years, 7 months ago) by mpi
Branch: MAIN
CVS Tags: OPENBSD_6_9_BASE,
OPENBSD_6_9,
OPENBSD_6_8_BASE,
OPENBSD_6_8,
OPENBSD_6_7_BASE,
OPENBSD_6_7
Changes since 1.17: +48 -7 lines
Diff to previous 1.17 (colored) to selected 1.4 (colored)
Do a better job at guessing the name of localy defined static variables. Handle the "varname.id" schema used by gcc(1) and "funcname.varname" used by clang(1). Fix a shadowing issue with clang(1).
Revision 1.17 / (download) - annotate - [select for diffs], Wed Aug 8 20:15:17 2018 UTC (5 years, 10 months ago) by mestre
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE,
OPENBSD_6_6,
OPENBSD_6_5_BASE,
OPENBSD_6_5,
OPENBSD_6_4_BASE,
OPENBSD_6_4
Changes since 1.16: +13 -4 lines
Diff to previous 1.16 (colored) to selected 1.4 (colored)
add unveil(2) to ctfconv(1) Once we know what the input file is, usually /bsd.gdb, we can unveil it in read mode. If we also define as argument an output file we can additionally unveil that one with write/create permissions. We don't need to care about calling unveil(NULL, NULL) since we can call pledge(2) and reduce the permissions down the road depending on the code path. "reads OK" jasper@, "put it in if works" mpi@ prodded by deraadt@
Revision 1.16 / (download) - annotate - [select for diffs], Mon Nov 6 14:59:27 2017 UTC (6 years, 7 months ago) by mpi
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE,
OPENBSD_6_3
Changes since 1.15: +5 -9 lines
Diff to previous 1.15 (colored) to selected 1.4 (colored)
Use the symtab's sh_link to get the string table section. This is technically more correct than looking for ".strtab" and allows us to get rid of unportable ELF_STRTAB. We can also get rid of the hack for some incorrect ELF files since we no longer try to apply relocations for the string table. From Mark Johnston, markj@FreeBSD
Revision 1.15 / (download) - annotate - [select for diffs], Fri Nov 3 12:55:43 2017 UTC (6 years, 7 months ago) by mpi
Branch: MAIN
Changes since 1.14: +6 -2 lines
Diff to previous 1.14 (colored) to selected 1.4 (colored)
Make dump_itype() dump enum members. From Mark Johnston, markj@FreeBSD
Revision 1.14 / (download) - annotate - [select for diffs], Fri Nov 3 12:54:50 2017 UTC (6 years, 7 months ago) by mpi
Branch: MAIN
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored) to selected 1.4 (colored)
Fix a format string warning in dump_type(). From Mark Johnston, markj@FreeBSD
Revision 1.13 / (download) - annotate - [select for diffs], Fri Oct 27 08:33:46 2017 UTC (6 years, 7 months ago) by mpi
Branch: MAIN
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored) to selected 1.4 (colored)
Use <elf.h> rather than <sys/exec_elf.h>. The former is more portable.
Revision 1.12 / (download) - annotate - [select for diffs], Fri Sep 29 16:05:53 2017 UTC (6 years, 8 months ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE,
OPENBSD_6_2
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored) to selected 1.4 (colored)
Check that the end of sections do not exceed the filesize for both symtab and sections. Corrects behaviour that led to crashes found via afl. ok mpi@
Revision 1.11 / (download) - annotate - [select for diffs], Fri Sep 29 09:30:42 2017 UTC (6 years, 8 months ago) by mpi
Branch: MAIN
Changes since 1.10: +34 -13 lines
Diff to previous 1.10 (colored) to selected 1.4 (colored)
Do not segfault when the string table is invalid or not present. Based on a diff from jsg@. Found independently by jsg@ with afl and markj@FreeBSD with a port.
Revision 1.10 / (download) - annotate - [select for diffs], Tue Sep 26 09:40:28 2017 UTC (6 years, 8 months ago) by jsg
Branch: MAIN
Changes since 1.9: +6 -6 lines
Diff to previous 1.9 (colored) to selected 1.4 (colored)
Ignore file offset values in section headers that exceed the length of the file. Avoids a crash found with afl. ok mpi@
Revision 1.9 / (download) - annotate - [select for diffs], Tue Sep 19 08:28:57 2017 UTC (6 years, 8 months ago) by jsg
Branch: MAIN
Changes since 1.8: +3 -1 lines
Diff to previous 1.8 (colored) to selected 1.4 (colored)
fix fd leaks in error paths ok mpi@
Revision 1.8 / (download) - annotate - [select for diffs], Tue Aug 29 21:10:20 2017 UTC (6 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.7: +1 -2 lines
Diff to previous 1.7 (colored) to selected 1.4 (colored)
quarterly rescan of the tree: remove unneccessary sys/param.h, and annotate the ones which are needed.
Revision 1.7 / (download) - annotate - [select for diffs], Sat Aug 12 19:00:08 2017 UTC (6 years, 9 months ago) by jasper
Branch: MAIN
Changes since 1.6: +2 -3 lines
Diff to previous 1.6 (colored) to selected 1.4 (colored)
tweak usage prompted by and ok jmc@
Revision 1.6 / (download) - annotate - [select for diffs], Fri Aug 11 20:49:26 2017 UTC (6 years, 10 months ago) by jasper
Branch: MAIN
Changes since 1.5: +16 -7 lines
Diff to previous 1.5 (colored) to selected 1.4 (colored)
pledge ctfconv feedback/ok mpi@ tb@
Revision 1.5 / (download) - annotate - [select for diffs], Fri Aug 11 19:34:24 2017 UTC (6 years, 10 months ago) by jasper
Branch: MAIN
Changes since 1.4: +9 -4 lines
Diff to previous 1.4 (colored)
make 'dump' mutually exclusive with writing out the data, to ease pleding ok mpi@
Revision 1.4 / (download) - annotate - [selected], Fri Aug 11 16:55:46 2017 UTC (6 years, 10 months ago) by mpi
Branch: MAIN
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)
Fix nested declaration inside union or struct.
Revision 1.3 / (download) - annotate - [select for diffs], Fri Aug 11 16:28:29 2017 UTC (6 years, 10 months ago) by mpi
Branch: MAIN
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored) to selected 1.4 (colored)
Do not insert random name for anonymous member.
Revision 1.2 / (download) - annotate - [select for diffs], Fri Aug 11 14:58:56 2017 UTC (6 years, 10 months ago) by jasper
Branch: MAIN
Changes since 1.1: +2 -0 lines
Diff to previous 1.1 (colored) to selected 1.4 (colored)
add rcs ids
Revision 1.1 / (download) - annotate - [select for diffs], Fri Aug 11 14:21:24 2017 UTC (6 years, 10 months ago) by mpi
Branch: MAIN
Diff to selected 1.4 (colored)
Import a tool for generating CTF data section (SUNW_ctf) based on DWARF information. ctfconv(1) support multiple CUs in order to work on binaries. ctfstrip(1) works like strip(1) but also insert a .SUNW_ctf section inside a binary. ok deraadt@, kettenis@, jasper@