x86-64: Restore PIC check for PCREL reloc against protected symbol
[deliverable/binutils-gdb.git] / bfd / elfxx-x86.h
index dce24dc10690366c3d14d83c7cb82846db1ae928..28d540b83b3fb9dbb6a6980b5c67cdd7998b4e00 100644 (file)
        || (ELF_ST_VISIBILITY ((H)->other) \
           && (H)->root.type == bfd_link_hash_undefweak))
 
+/* TRUE if this symbol isn't defined by a shared object.  */
+#define SYMBOL_DEFINED_NON_SHARED_P(H) \
+  ((H)->def_regular \
+   || (H)->root.linker_def \
+   || (H)->root.ldscript_def \
+   || ELF_COMMON_DEF_P (H))
+
 /* TRUE if relative relocation should be generated.  GOT reference to
    global symbol in PIC will lead to dynamic symbol.  It becomes a
    problem when "time" or "times" is defined as a variable in an
This page took 0.024416 seconds and 4 git commands to generate.