[PATCH v3] aarch64: Emit jump slot for conditional branch to undefined symbols
[deliverable/binutils-gdb.git] / ld / deffile.h
index 1e7a0cbeeddfd2eb306d17149d7bc2966a09fedf..dd7d9935cae768e927930897df648dab544bbf1d 100644 (file)
@@ -1,5 +1,5 @@
 /* deffile.h - header for .DEF file parser
-   Copyright 1998, 1999, 2000, 2002, 2003, 2007 Free Software Foundation, Inc.
+   Copyright (C) 1998-2020 Free Software Foundation, Inc.
    Written by DJ Delorie dj@cygnus.com
 
    This file is part of the GNU Binutils.
@@ -34,6 +34,7 @@ typedef struct def_file_section {
 typedef struct def_file_export {
   char *name;                  /* always set */
   char *internal_name;         /* always set, may == name */
+  char *its_name;              /* optional export table name referred to. */
   int ordinal;                 /* -1 if not specified */
   int hint;
   char flag_private, flag_constant, flag_noname, flag_data, flag_forward;
@@ -49,10 +50,17 @@ typedef struct def_file_import {
   char *internal_name;         /* always set */
   def_file_module *module;     /* always set */
   char *name;                  /* may be NULL; either this or ordinal will be set */
+  char *its_name;              /* optional import table name referred to. */
   int ordinal;                 /* may be -1 */
   int data;                    /* = 1 if data */
 } def_file_import;
 
+typedef struct def_file_aligncomm {
+  struct def_file_aligncomm *next;     /* Chain pointer.  */
+  char *symbol_name;           /* Name of common symbol.  */
+  unsigned int alignment;      /* log-2 alignment.        */
+} def_file_aligncomm;
+
 typedef struct def_file {
   /* From the NAME or LIBRARY command.  */
   char *name;
@@ -83,6 +91,10 @@ typedef struct def_file {
 
   /* From the VERSION command, -1 if not specified.  */
   int version_major, version_minor;
+
+  /* Only expected from .drectve sections, not .DEF files.  */
+  def_file_aligncomm *aligncomms;
+
 } def_file;
 
 extern def_file *def_file_empty (void);
@@ -91,9 +103,21 @@ extern def_file *def_file_empty (void);
 extern def_file *def_file_parse (const char *, def_file *);
 extern void def_file_free (def_file *);
 extern def_file_export *def_file_add_export (def_file *, const char *,
-                                            const char *, int);
+                                            const char *, int,
+                                            const char *, int *);
 extern def_file_import *def_file_add_import (def_file *, const char *,
-                                            const char *, int, const char *);
+                                            const char *, int, const char *,
+                                            const char *, int *);
+extern int def_file_add_import_from (def_file *fdef,
+                                    int num_imports,
+                                    const char *name,
+                                    const char *module,
+                                    int ordinal,
+                                    const char *internal_name,
+                                    const char *its_name);
+extern def_file_import *def_file_add_import_at (def_file *, int, const char *,
+                                               const char *, int, const char *,
+                                               const char *);
 extern void def_file_add_directive (def_file *, const char *, int);
 extern def_file_module *def_get_module (def_file *, const char *);
 #ifdef DEF_FILE_PRINT
This page took 0.024793 seconds and 4 git commands to generate.