OpenBSD CVS

CVS log for src/usr.bin/ctfdump/Attic/elf.c


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.10, Tue May 14 03:20:11 2019 UTC (5 years ago) by sunil
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +0 -0 lines
FILE REMOVED

Remove leftover elf.c

Revision 1.9 / (download) - annotate - [select for diffs], Tue May 14 03:16:55 2019 UTC (5 years ago) by sunil
Branch: MAIN
Changes since 1.8: +0 -348 lines
Diff to previous 1.8 (colored)

Use elf(3) api instead of an ad-hoc elf parser.

Ok mpi@

Revision 1.8 / (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_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3
Changes since 1.7: +38 -16 lines
Diff to previous 1.7 (colored)

Verify that every section header lies within the mapped file.

Pointed out by Mark Johnston, Markj@FreeBSD

Revision 1.7 / (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.6: +22 -8 lines
Diff to previous 1.6 (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.6 / (download) - annotate - [select for diffs], Wed Nov 1 15:45:28 2017 UTC (6 years, 6 months ago) by mpi
Branch: MAIN
Changes since 1.5: +3 -1 lines
Diff to previous 1.5 (colored)

Disable relocation until it is shown to be necessary.  This code
is present here because ctfconv(1) needs it.

Prevent an access violation since the file is mmap(2)'d without
write permission.

Triggered by jsg@ with afl(1).

Revision 1.5 / (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.4: +2 -2 lines
Diff to previous 1.4 (colored)

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

The former is more portable.

Revision 1.4 / (download) - annotate - [select for diffs], Thu Oct 5 02:59:39 2017 UTC (6 years, 7 months ago) by jsg
Branch: MAIN
Changes since 1.3: +34 -10 lines
Diff to previous 1.3 (colored)

sync elf.c with ctfconv
ok mpi@ jasper@

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
CVS Tags: OPENBSD_6_2_BASE, OPENBSD_6_2
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 15:00:00 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:17:05 2017 UTC (6 years, 9 months ago) by mpi
Branch: MAIN

Import a tool for dumping the contents of CTF data section (SUNW_ctf).

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.