Date: Mon, 27 Apr 2026 00:04:03 +0000 From: Robert Clausecker <fuz@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Cc: Paul Floyd <pjfloyd@wanadoo.fr> Subject: git: b654e93a2500 - main - sysutils/pstack: fix lookup for functions with notype and 0 size Message-ID: <69eea7f3.1c757.4bbc605e@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by fuz: URL: https://cgit.FreeBSD.org/ports/commit/?id=b654e93a2500c8e42180036f4c315485cc5666e2 commit b654e93a2500c8e42180036f4c315485cc5666e2 Author: Paul Floyd <pjfloyd@wanadoo.fr> AuthorDate: 2026-04-25 11:28:13 +0000 Commit: Robert Clausecker <fuz@FreeBSD.org> CommitDate: 2026-04-27 00:01:44 +0000 sysutils/pstack: fix lookup for functions with notype and 0 size PR: 273688 MFH: 2026Q2 Approved by: pizzamig (maintainer timeout) Event: Wiesbaden Hackathon 202604 --- sysutils/pstack/Makefile | 2 +- sysutils/pstack/files/patch-elf.c | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/sysutils/pstack/Makefile b/sysutils/pstack/Makefile index efe90bab4226..6fb41531a28f 100644 --- a/sysutils/pstack/Makefile +++ b/sysutils/pstack/Makefile @@ -1,6 +1,6 @@ PORTNAME= pstack PORTVERSION= 1.3 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= sysutils MAINTAINER= pizzamig@FreeBSD.org diff --git a/sysutils/pstack/files/patch-elf.c b/sysutils/pstack/files/patch-elf.c new file mode 100644 index 000000000000..722730c31792 --- /dev/null +++ b/sysutils/pstack/files/patch-elf.c @@ -0,0 +1,11 @@ +--- elf.c.orig 2013-01-14 19:40:18 UTC ++++ elf.c +@@ -196,7 +196,7 @@ elfFindSymbolByAddress(struct ElfObject *obj, Elf_Addr + symSection->sh_offset + symSection->sh_size); + + for (; sym < endSym; sym++) { +- if ((type == STT_NOTYPE || ++ if ((ELF_ST_TYPE(sym->st_info) == STT_NOTYPE || + ELF_ST_TYPE(sym->st_info) == type) && + sym->st_value <= addr && + (shdrs[sym->st_shndx]->sh_flags & SHF_ALLOC)) {home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69eea7f3.1c757.4bbc605e>
