summaryrefslogtreecommitdiffstats
path: root/trunk/src/prelink.h
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/src/prelink.h')
-rw-r--r--trunk/src/prelink.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/trunk/src/prelink.h b/trunk/src/prelink.h
index 5507eda..a50ddfe 100644
--- a/trunk/src/prelink.h
+++ b/trunk/src/prelink.h
@@ -1,5 +1,6 @@
/* Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 Red Hat, Inc.
Written by Jakub Jelinek <jakub@redhat.com>, 2001.
+ Updated by Maciej W. Rozycki <macro@codesourcery.com>, 2008.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -28,6 +29,10 @@
#include <sys/stat.h>
#include <utime.h>
+#ifndef HAVE_ELF64_BYTE
+typedef uint8_t Elf64_Byte;
+#endif
+
#ifndef DT_GNU_LIBLIST
#define DT_GNU_LIBLIST 0x6ffffef9
#define DT_GNU_LIBLISTSZ 0x6ffffdf7
@@ -94,6 +99,10 @@
#define DT_MIPS_RWPLT 0x70000034
#endif
+#ifndef RSS_UNDEF
+#define RSS_UNDEF 0
+#endif
+
struct prelink_entry;
struct prelink_info;
struct PLArch;
@@ -304,8 +313,8 @@ unsigned char *get_data_from_iterator (struct data_iterator *it,
GElf_Addr size);
int get_sym_from_iterator (struct data_iterator *it, GElf_Sym *sym);
-#define PL_ARCH \
-static struct PLArch plarch __attribute__((section("pl_arch"),used))
+#define PL_ARCH(F) \
+static struct PLArch plarch_##F __attribute__((section("pl_arch"),used))
#define addr_adjust(addr, start, adjust) \
do { \