git: DragonFly_RELEASE_6_4 binutils234: Patch readelf(1) to recognize DragonFly-specific notes
Aaron LI
aly at crater.dragonflybsd.org
Tue Sep 1 22:49:07 PDT 2026
commit 28b9924337571b2763283ee7e19ec28e48c81858
Author: Aaron LI <aly at aaronly.me>
Date: Wed Aug 26 13:16:04 2026 +0800
binutils234: Patch readelf(1) to recognize DragonFly-specific notes
* Define NT_DRAGONFLY_ABI and NT_DRAGONFLY_NOINIT in
'include/elf/common.h' according to 'lib/csu/common/notes.h'.
* Add process_dragonfly_elf_note() to readelf.c to decode
DragonFly-specific notes.
Before:
```
% readelf -n /bin/sh
Displaying notes found in: .note.tag
Owner Data size Description
DragonFly 0x00000004 NT_VERSION (version)
description data: c8 29 09 00
DragonFly 0x00000004 Unknown note type: (0x00000020)
description data: 00 00 00 00
```
After:
```
% readelf -n /bin/sh
Displaying notes found in: .note.tag
Owner Data size Description
DragonFly 0x00000004 ABI (ABI version)
ABI: 600520 (6.5.20)
DragonFly 0x00000004 NOINIT (C runtime no init)
```
Summary of changes:
contrib/binutils-2.34/README.DRAGONFLY | 2 ++
contrib/binutils-2.34/binutils/readelf.c | 47 ++++++++++++++++++++++++++++++
contrib/binutils-2.34/include/elf/common.h | 5 ++++
3 files changed, 54 insertions(+)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/28b9924337571b2763283ee7e19ec28e48c81858
--
DragonFly BSD source repository
More information about the Commits
mailing list