#
2493c10c |
| 07-Nov-2021 |
semarie <semarie@openbsd.org> |
nm: add some .text.* support for symbols
.text.* are generated when using -ffunction-sections.
makes nm(1) to correctly identify the function symbols as N_TEXT.
found while debugging librsvg build
nm: add some .text.* support for symbols
.text.* are generated when using -ffunction-sections.
makes nm(1) to correctly identify the function symbols as N_TEXT.
found while debugging librsvg build error, where some symbols where not found by libtool(1) (which is using nm(1)).
ok gkoehler@
show more ...
|
#
93722fe6 |
| 22-Nov-2020 |
jsg <jsg@openbsd.org> |
fix typo; from Kris Katterjohn
|
#
7feae41f |
| 14-Dec-2018 |
guenther <guenther@openbsd.org> |
Delete unused phdr functions; move declarations for functions internal to elf.c to that file
ok mpi@
|
#
06ccf07d |
| 09-Dec-2017 |
deraadt <deraadt@openbsd.org> |
recognize .openbsd.randomdata section and indicate it roughly, so that objects within it are identified as being in read-only space. ok guenther
|
#
e9d517b1 |
| 27-Oct-2017 |
mpi <mpi@openbsd.org> |
Use <elf.h> instead of <elf_abi.h>
ok jasper@, jca@, deraadt@
|
#
5cbef84f |
| 09-Dec-2015 |
mmcc <mmcc@openbsd.org> |
Remove NULL-checks before free(). ok tb@
|
#
1a0915b6 |
| 13-Aug-2015 |
miod <miod@openbsd.org> |
Grow -P (POSIX output) and -t (POSIX output radix) support. Several 3rd-party software depend upon this.
Requested by feinerer@, ok millert@; manpage bits ok jmc@
|
#
c4fd534d |
| 23-Jun-2015 |
semarie <semarie@openbsd.org> |
This patch ensure that when an error is detected, the freed variables in elf_symloadx() are reinitialised.
Else show_file() in nm.c will used these variables, even if they has just been freed. (nm.c
This patch ensure that when an error is detected, the freed variables in elf_symloadx() are reinitialised.
Else show_file() in nm.c will used these variables, even if they has just been freed. (nm.c +689).
Problem found by afl.
ok miod@
show more ...
|
#
8e73cb8c |
| 23-Jun-2015 |
semarie <semarie@openbsd.org> |
This patch ensure that e_shentsize (sections header's size in bytes) is big enough to fill at least one Elf_Shdr.
While here, inverts calloc() arguments to be calloc(nmemb, size), according to fread
This patch ensure that e_shentsize (sections header's size in bytes) is big enough to fill at least one Elf_Shdr.
While here, inverts calloc() arguments to be calloc(nmemb, size), according to fread() call after.
This problem was found with afl, with e_shentsize=1.
ok miod@
show more ...
|
#
06105045 |
| 23-Jun-2015 |
semarie <semarie@openbsd.org> |
corrects a read after bound that occurs in strcmp (line just after the added bound check).
Found with afl.
ok miod@
|
#
642c3e06 |
| 23-Jun-2015 |
semarie <semarie@openbsd.org> |
add some check before accessing data: - if section header table is be present - consistency of section header table size
ok miod@
|
#
96272ccb |
| 17-May-2015 |
guenther <guenther@openbsd.org> |
Add -D option for displaying the dynamic symbol table
ok miod@
|
#
2c739b87 |
| 09-Apr-2015 |
guenther <guenther@openbsd.org> |
ELF weak symbols are _not_ like a.out indirect symbols. Nothing in ELF is, so remove N_INDR handling.
ok kettenis@
|
#
4239b822 |
| 06-Feb-2015 |
millert <millert@openbsd.org> |
SIZE_MAX is standard, we should be using it in preference to the obsolete SIZE_T_MAX. OK miod@ beck@
|
#
2b8e2220 |
| 19-Jan-2015 |
miod <miod@openbsd.org> |
Missing initialization; tjenahej@speedmail.se
|
#
b9fc9a72 |
| 16-Jan-2015 |
deraadt <deraadt@openbsd.org> |
Replace <sys/param.h> with <limits.h> and other less dirty headers where possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_N
Replace <sys/param.h> with <limits.h> and other less dirty headers where possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
show more ...
|
#
6cd4fad2 |
| 26-Nov-2013 |
deraadt <deraadt@openbsd.org> |
unsigned char casts for ctype ok krw
|
#
52f919cc |
| 13-Nov-2013 |
deraadt <deraadt@openbsd.org> |
proto and such cleanup ok guenther
|
#
68f71d8e |
| 30-Mar-2013 |
miod <miod@openbsd.org> |
Correctly report `weak' status of non-function symbols. Makes nm agree with objdump -t on, say, _DYNAMIC in libpthread.
|
#
1f647038 |
| 28-Sep-2011 |
uwe <uwe@openbsd.org> |
Support symbols in .tbss and .tdata ELF sections
With this change nm(1) prints the expected symbol type ('B' or 'D') for variables in the .tbss and .tdata sections respectively, instead of '?'. Thi
Support symbols in .tbss and .tdata ELF sections
With this change nm(1) prints the expected symbol type ('B' or 'D') for variables in the .tbss and .tdata sections respectively, instead of '?'. This would be what binutils do for non-automatic variables that are marked as thread-local with the __thread attribute in GCC.
help and ok miod@, guenther@
show more ...
|
#
043fbe51 |
| 27-Oct-2009 |
deraadt <deraadt@openbsd.org> |
rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (th
rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
show more ...
|
#
1ed98fdf |
| 02-Sep-2007 |
deraadt <deraadt@openbsd.org> |
use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsg
|
#
44579ce9 |
| 18-Apr-2007 |
miod <miod@openbsd.org> |
Fix a NULL dereference if the symbol table size is zero; ok millert@ deraadt@
|
#
ee53977c |
| 08-Feb-2007 |
ray <ray@openbsd.org> |
Do all allocation and deallocation of shstr in elf_symload() to prevent double-freeing shstr.
Also don't free known NULL values (*pnames and *psnames).
Initially inspired by Charles Longeau's first
Do all allocation and deallocation of shstr in elf_symload() to prevent double-freeing shstr.
Also don't free known NULL values (*pnames and *psnames).
Initially inspired by Charles Longeau's first diff to tech@; he later sent a second diff to tech@ nearly identical to this commit. Freaky.
OK mickey@.
show more ...
|
#
f6451fd3 |
| 07-Feb-2007 |
mickey <mickey@openbsd.org> |
check st_name validity also check for overflow and not only for zero; found by Charles Longeau <chl@tuxfamily.org>
|