git: 3c07cfb25283 - main - elfdump: Decode SHT_LLVM_ADDRSIG section header type

From: Ed Maste <emaste_at_FreeBSD.org>
Date: Tue, 19 May 2026 23:54:20 UTC
The branch main has been updated by emaste:

URL: https://cgit.FreeBSD.org/src/commit/?id=3c07cfb25283d93f03cdac51158289853d0e17a8

commit 3c07cfb25283d93f03cdac51158289853d0e17a8
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2026-05-18 15:43:41 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2026-05-19 23:54:07 +0000

    elfdump: Decode SHT_LLVM_ADDRSIG section header type
    
    Reported by:    bz
    Sponsored by:   The FreeBSD Foundation
---
 usr.bin/elfdump/elfdump.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/usr.bin/elfdump/elfdump.c b/usr.bin/elfdump/elfdump.c
index 49704cde1b08..3bca46c26cf3 100644
--- a/usr.bin/elfdump/elfdump.c
+++ b/usr.bin/elfdump/elfdump.c
@@ -354,6 +354,7 @@ sh_types(uint64_t machine, uint64_t sht) {
 	} else if (sht < 0x70000000) {
 		/* 0x60000000-0x6fffffff operating system-specific semantics */
 		switch (sht) {
+		case SHT_LLVM_ADDRSIG:	return "SHT_LLVM_ADDRSIG";
 		case 0x6ffffff0:	return "XXX:VERSYM";
 		case SHT_SUNW_dof:	return "SHT_SUNW_dof";
 		case SHT_GNU_HASH:	return "SHT_GNU_HASH";