summaryrefslogtreecommitdiffstats
path: root/backends/common-reloc.c
diff options
context:
space:
mode:
authorUlrich Drepper <[email protected]>2006-06-12 22:40:23 +0000
committerUlrich Drepper <[email protected]>2006-06-12 22:40:23 +0000
commit6ca4600fb59d1e1ae3dfb872b184ac91f10c473f (patch)
treedf850603e6b4df8787b23a46321c13f60e53bac1 /backends/common-reloc.c
parentcbb51e5253e05d98af8bdaf2217fed00b2e489b9 (diff)
Don't create INTERP and PHDR program header entry if a DSO is created without
a specific interpreter. Ignore duplicate COMDAT group sections. elflint should not complain about anything about *_NONE relocations. Add support to libebl to determine whether given relocation is *_NONE relocation.
Diffstat (limited to 'backends/common-reloc.c')
-rw-r--r--backends/common-reloc.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/backends/common-reloc.c b/backends/common-reloc.c
index b3b75530..9b956557 100644
--- a/backends/common-reloc.c
+++ b/backends/common-reloc.c
@@ -1,5 +1,5 @@
/* Common code for ebl reloc functions.
- Copyright (C) 2005 Red Hat, Inc.
+ Copyright (C) 2005, 2006 Red Hat, Inc.
This file is part of Red Hat elfutils.
Red Hat elfutils is free software; you can redistribute it and/or modify
@@ -115,6 +115,12 @@ EBLHOOK(copy_reloc_p) (int reloc)
return reloc == R_TYPE (COPY);
}
+bool
+EBLHOOK(none_reloc_p) (int reloc)
+{
+ return reloc == R_TYPE (NONE);
+}
+
static void
EBLHOOK(init_reloc) (Ebl *ebl)
{
@@ -122,4 +128,5 @@ EBLHOOK(init_reloc) (Ebl *ebl)
ebl->reloc_type_check = EBLHOOK(reloc_type_check);
ebl->reloc_valid_use = EBLHOOK(reloc_valid_use);
ebl->copy_reloc_p = EBLHOOK(copy_reloc_p);
+ ebl->none_reloc_p = EBLHOOK(none_reloc_p);
}