Handle copy relocations
[deliverable/binutils-gdb.git] / gdb / dwarf2read.h
index aee8742a79ce7f4d43a439e9e074efe5070c688e..a737168b62953fc3c899d2c69cd55d85bd872015 100644 (file)
@@ -106,9 +106,12 @@ struct dwarf2_per_objfile
 {
   /* Construct a dwarf2_per_objfile for OBJFILE.  NAMES points to the
      dwarf2 section names, or is NULL if the standard ELF names are
-     used.  */
+     used.  CAN_COPY is true for formats where symbol
+     interposition is possible and so symbol values must follow copy
+     relocation rules.  */
   dwarf2_per_objfile (struct objfile *objfile,
-                     const dwarf2_debug_sections *names);
+                     const dwarf2_debug_sections *names,
+                     bool can_copy);
 
   ~dwarf2_per_objfile ();
 
@@ -208,6 +211,9 @@ public:
      original data was compressed using 'dwz -m'.  */
   std::unique_ptr<struct dwz_file> dwz_file;
 
+  /* Whether copy relocations are supported by this object format.  */
+  bool can_copy;
+
   /* A flag indicating whether this objfile has a section loaded at a
      VMA of 0.  */
   bool has_section_at_zero = false;
This page took 0.026614 seconds and 4 git commands to generate.