c01bc27911
- 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.
15 lines
656 B
Text
15 lines
656 B
Text
$NetBSD: patch-libelfsh_symbol_c,v 1.1 2011/10/02 23:50:56 dholland Exp $
|
|
|
|
- LP64 fixes
|
|
|
|
--- libelfsh/symbol.c~ 2003-08-20 21:11:03.000000000 -0400
|
|
+++ libelfsh/symbol.c 2008-08-02 18:09:35.000000000 -0400
|
|
@@ -277,7 +277,7 @@ int elfsh_insert_symbol(elfshsect_t *se
|
|
/* Check if symbol already exists */
|
|
orig = elfsh_get_symbol_by_name(sect->parent, name);
|
|
if (orig != NULL && sym->st_value == orig->st_value)
|
|
- return (((u_int) orig - (u_int) sect->data) / ELFSH_SYMTAB_ENTRY_SIZE);
|
|
+ return (((uintptr_t) orig - (uintptr_t) sect->data) / ELFSH_SYMTAB_ENTRY_SIZE);
|
|
|
|
/* Shift some special symbols */
|
|
elfsh_shift_usualsyms(sect, sym);
|