ubsan: m10300: shift exponent -4
[deliverable/binutils-gdb.git] / gdb / hppa-bsd-tdep.c
index ee8b2133a2696bf9596f3b3a65266306ccb0c391..34dec20298fb5217a014c19d2302e9b655247fa5 100644 (file)
@@ -1,6 +1,6 @@
 /* Target-dependent code for HP PA-RISC BSD's.
 
-   Copyright (C) 2004-2018 Free Software Foundation, Inc.
+   Copyright (C) 2004-2020 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -87,8 +87,7 @@ hppabsd_find_global_pointer (struct gdbarch *gdbarch, struct value *function)
                     we have to do it ourselves.  */
                  pltgot = extract_unsigned_integer (buf, sizeof buf,
                                                     byte_order);
-                 pltgot += ANOFFSET (sec->objfile->section_offsets,
-                                     SECT_OFF_TEXT (sec->objfile));
+                 pltgot += sec->objfile->section_offsets[SECT_OFF_TEXT (sec->objfile)];
 
                  return pltgot;
                }
This page took 0.02842 seconds and 4 git commands to generate.