OpenBSD CVS

CVS log for src/usr.bin/ctfconv/elf.c


[BACK] Up to [local] / src / usr.bin / ctfconv

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.10 / (download) - annotate - [select for diffs], Sun Aug 14 14:54:13 2022 UTC (21 months ago) by millert
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, OPENBSD_7_2_BASE, OPENBSD_7_2, HEAD
Changes since 1.9: +4 -3 lines
Diff to previous 1.9 (colored)

Use size_t, not off_t, for length parameters.
This matches how the functions are called and eliminates a few casts.
OK tb@

Revision 1.9 / (download) - annotate - [select for diffs], Tue Nov 14 09:14:50 2017 UTC (6 years, 6 months ago) by mpi
Branch: MAIN
CVS Tags: OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3
Changes since 1.8: +38 -16 lines
Diff to previous 1.8 (colored)

Verify that every section header lies within the mapped file.

Pointed out by Mark Johnston, Markj@FreeBSD

Revision 1.8 / (download) - annotate - [select for diffs], Mon Nov 6 14:59:27 2017 UTC (6 years, 6 months ago) by mpi
Branch: MAIN
Changes since 1.7: +22 -6 lines
Diff to previous 1.7 (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.7 / (download) - annotate - [select for diffs], Fri Oct 27 08:33:46 2017 UTC (6 years, 6 months ago) by mpi
Branch: MAIN
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

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

The former is more portable.

Revision 1.6 / (download) - annotate - [select for diffs], Sat Sep 30 10:15:59 2017 UTC (6 years, 7 months ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.5: +17 -1 lines
Diff to previous 1.5 (colored)

Add some more boundary checks and prevent an attempt to divide by zero
to resolve some additional crashes found by afl.
ok mpi@ deraadt@

Revision 1.5 / (download) - annotate - [select for diffs], Fri Sep 29 16:05:53 2017 UTC (6 years, 7 months ago) by jsg
Branch: MAIN
Changes since 1.4: +15 -10 lines
Diff to previous 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.4 / (download) - annotate - [select for diffs], Tue Sep 26 09:40:28 2017 UTC (6 years, 7 months ago) by jsg
Branch: MAIN
Changes since 1.3: +5 -2 lines
Diff to previous 1.3 (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.3 / (download) - annotate - [select for diffs], Tue Aug 29 21:10:20 2017 UTC (6 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored)

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

Revision 1.2 / (download) - annotate - [select for diffs], Fri Aug 11 14:58:56 2017 UTC (6 years, 9 months ago) by jasper
Branch: MAIN
Changes since 1.1: +2 -0 lines
Diff to previous 1.1 (colored)

add rcs ids

Revision 1.1 / (download) - annotate - [select for diffs], Fri Aug 11 14:21:24 2017 UTC (6 years, 9 months ago) by mpi
Branch: MAIN

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@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.