pkgsrc/devel/elfsh/patches/patch-libelfsh_debug_c
dholland c01bc27911 - Work around symbol name conflict with dprintf in current.
- The makefile's substitution of PREFIX and SH accidentally got rolled
into patch-ac at some point and thereby hardcoded. Since all patch-ac
was doing was setting these, make the substitution work without a
patch and remove patch-ac entirely.

- Commit some LP64 fixes I've had sitting in my tree since 2008 for
some reason.

- Fix some pkglint.

- PKGREVISION -> 4.
2011-10-02 23:50:56 +00:00

28 lines
1.1 KiB
Text

$NetBSD: patch-libelfsh_debug_c,v 1.1 2011/10/02 23:50:56 dholland Exp $
- LP64 fixes
--- libelfsh/debug.c~ 2003-08-20 21:11:03.000000000 -0400
+++ libelfsh/debug.c 2008-08-02 18:19:15.000000000 -0400
@@ -25,16 +25,16 @@ int elfsh_print_sectlist(elfshobj_t *ob
if (sctname == NULL)
sctname = "UNK";
data = (actual->data == NULL ? "\xFF\xFF\xFF" : actual->data);
- printf(" [%03u] %-15s HDRNAM: %-15s BYTES[%02X %02X %02X] P(%08X) "
- "A(%08X) N(%08X) SCTIDX(%03u) HDRFOFF:%08x SZ:%08x VADDR:%08X \n",
+ printf(" [%03u] %-15s HDRNAM: %-15s BYTES[%02X %02X %02X] P(%08lX) "
+ "A(%08lX) N(%08lX) SCTIDX(%03u) HDRFOFF:%08x SZ:%08x VADDR:%08X \n",
index, (actual->name != NULL ? actual->name : "UNK"),
sctname,
(u_int) data[0],
(u_int) data[1],
(u_int) data[2],
- (u_int) actual->prev,
- (u_int) actual,
- (u_int) actual->next,
+ (u_long)(uintptr_t) actual->prev,
+ (u_long)(uintptr_t) actual,
+ (u_long)(uintptr_t) actual->next,
actual->index,
(u_int) actual->shdr->sh_offset,
(u_int) actual->shdr->sh_size,