summaryrefslogtreecommitdiff
path: root/sysdeps/hppa/dl-runtime.h
diff options
context:
space:
mode:
authorJohn David Anglin <danglin@gcc.gnu.org>2022-02-22 18:51:35 +0000
committerJohn David Anglin <danglin@gcc.gnu.org>2022-02-22 18:51:35 +0000
commitd2224ffbddc9d25ed5b0e34c212018c32d1e5a95 (patch)
treecc2618ce438634da192bfacf8afaed03764d9aad /sysdeps/hppa/dl-runtime.h
parent9e7e5fda38471e00d1190479ea91d7b08ae3e304 (diff)
downloadglibc-d2224ffbddc9d25ed5b0e34c212018c32d1e5a95.tar
glibc-d2224ffbddc9d25ed5b0e34c212018c32d1e5a95.tar.gz
glibc-d2224ffbddc9d25ed5b0e34c212018c32d1e5a95.tar.bz2
glibc-d2224ffbddc9d25ed5b0e34c212018c32d1e5a95.zip
hppa: Fix warnings from _dl_lookup_address
This change fixes two warnings from _dl_lookup_address. The first warning comes from dropping the volatile keyword from desc in the call to _dl_read_access_allowed. We now have a full atomic barrier between loading desc[0] and the access check, so desc no longer needs to be declared as volatile. The second warning comes from the implicit declaration of _dl_fix_reloc_arg. This is fixed by including dl-runtime.h and declaring _dl_fix_reloc_arg in dl-runtime.h.
Diffstat (limited to 'sysdeps/hppa/dl-runtime.h')
-rw-r--r--sysdeps/hppa/dl-runtime.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdeps/hppa/dl-runtime.h b/sysdeps/hppa/dl-runtime.h
index bdc778f4b2..0dada8fdf1 100644
--- a/sysdeps/hppa/dl-runtime.h
+++ b/sysdeps/hppa/dl-runtime.h
@@ -17,6 +17,9 @@
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA. */
+ElfW(Word) _dl_fix_reloc_arg (struct fdesc *, struct link_map *);
+rtld_hidden_proto (_dl_fix_reloc_arg)
+
/* Clear PA_GP_RELOC bit in relocation offset. */
static inline uintptr_t
reloc_offset (uintptr_t plt0, uintptr_t pltn)