History log of /openbsd-src/usr.bin/ctfconv/ctfconv.c (Results 1 – 20 of 20)
Revision Date Author Comments
# 0f9855f7 02-Oct-2022 mpi <mpi@openbsd.org>

Remove unused DEBUG_LINE define.


# bc5a8259 12-Jul-2021 beck <beck@openbsd.org>

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 A

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@

show more ...


# 08b0026d 07-Nov-2019 mpi <mpi@openbsd.org>

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).


# 62a5ce36 08-Aug-2018 mestre <mestre@openbsd.org>

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 wit

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@

show more ...


# 622b7392 06-Nov-2017 mpi <mpi@openbsd.org>

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 h

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

show more ...


# 991cae8c 03-Nov-2017 mpi <mpi@openbsd.org>

Make dump_itype() dump enum members.

From Mark Johnston, markj@FreeBSD


# faf74f15 03-Nov-2017 mpi <mpi@openbsd.org>

Fix a format string warning in dump_type().

From Mark Johnston, markj@FreeBSD


# e4b342e5 27-Oct-2017 mpi <mpi@openbsd.org>

Use <elf.h> rather than <sys/exec_elf.h>.

The former is more portable.


# be9aadfa 29-Sep-2017 jsg <jsg@openbsd.org>

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@


# 589f0bfa 29-Sep-2017 mpi <mpi@openbsd.org>

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.


# 59153d10 26-Sep-2017 jsg <jsg@openbsd.org>

Ignore file offset values in section headers that exceed the length of
the file. Avoids a crash found with afl.

ok mpi@


# c8f519c3 19-Sep-2017 jsg <jsg@openbsd.org>

fix fd leaks in error paths
ok mpi@


# 2c999465 29-Aug-2017 deraadt <deraadt@openbsd.org>

quarterly rescan of the tree: remove unneccessary sys/param.h, and
annotate the ones which are needed.


# f471c1b3 12-Aug-2017 jasper <jasper@openbsd.org>

tweak usage

prompted by and ok jmc@


# 5dd7bfae 11-Aug-2017 jasper <jasper@openbsd.org>

pledge ctfconv

feedback/ok mpi@ tb@


# d92886f7 11-Aug-2017 jasper <jasper@openbsd.org>

make 'dump' mutually exclusive with writing out the data, to ease pleding

ok mpi@


# d84376f1 11-Aug-2017 mpi <mpi@openbsd.org>

Fix nested declaration inside union or struct.


# 72c906af 11-Aug-2017 mpi <mpi@openbsd.org>

Do not insert random name for anonymous member.


# 0687c322 11-Aug-2017 jasper <jasper@openbsd.org>

add rcs ids


# 192095f7 11-Aug-2017 mpi <mpi@openbsd.org>

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

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@

show more ...