mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 03:51:15 +08:00
* bfd-in.h (struct bfd_link_needed_list): Rename from
bfd_elf_link_needed_list. * bfd-in2.h: Rebuild. * elf.c, elflink.h, libelf.h: Corresponding changes.
This commit is contained in:
parent
dd98464413
commit
54406786f0
@ -4,6 +4,11 @@ Mon Oct 16 14:43:59 1995 steve chamberlain <sac@slash.cygnus.com>
|
|||||||
|
|
||||||
Mon Oct 16 10:52:50 1995 Ian Lance Taylor <ian@cygnus.com>
|
Mon Oct 16 10:52:50 1995 Ian Lance Taylor <ian@cygnus.com>
|
||||||
|
|
||||||
|
* bfd-in.h (struct bfd_link_needed_list): Rename from
|
||||||
|
bfd_elf_link_needed_list.
|
||||||
|
* bfd-in2.h: Rebuild.
|
||||||
|
* elf.c, elflink.h, libelf.h: Corresponding changes.
|
||||||
|
|
||||||
Add start at AIX linker support; no shared libraries yet.
|
Add start at AIX linker support; no shared libraries yet.
|
||||||
* xcofflink.c: New file.
|
* xcofflink.c: New file.
|
||||||
* configure.in (rs600coff_vec): Use xcofflink.o.
|
* configure.in (rs600coff_vec): Use xcofflink.o.
|
||||||
|
20
bfd/bfd-in.h
20
bfd/bfd-in.h
@ -88,6 +88,11 @@ typedef struct _bfd bfd;
|
|||||||
#if defined (__GNUG__) && (__GNUC_MINOR__ > 5)
|
#if defined (__GNUG__) && (__GNUC_MINOR__ > 5)
|
||||||
#define TRUE_FALSE_ALREADY_DEFINED
|
#define TRUE_FALSE_ALREADY_DEFINED
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef MPW
|
||||||
|
/* Pre-emptive strike - get the file with the enum. */
|
||||||
|
#include <Types.h>
|
||||||
|
#define TRUE_FALSE_ALREADY_DEFINED
|
||||||
|
#endif /* MPW */
|
||||||
#ifndef TRUE_FALSE_ALREADY_DEFINED
|
#ifndef TRUE_FALSE_ALREADY_DEFINED
|
||||||
typedef enum bfd_boolean {false, true} boolean;
|
typedef enum bfd_boolean {false, true} boolean;
|
||||||
#define BFD_TRUE_FALSE
|
#define BFD_TRUE_FALSE
|
||||||
@ -558,17 +563,18 @@ extern boolean bfd_mips_ecoff_create_embedded_relocs
|
|||||||
|
|
||||||
/* Externally visible ELF routines. */
|
/* Externally visible ELF routines. */
|
||||||
|
|
||||||
|
struct bfd_link_needed_list
|
||||||
|
{
|
||||||
|
struct bfd_link_needed_list *next;
|
||||||
|
bfd *by;
|
||||||
|
const char *name;
|
||||||
|
};
|
||||||
|
|
||||||
extern boolean bfd_elf32_record_link_assignment
|
extern boolean bfd_elf32_record_link_assignment
|
||||||
PARAMS ((bfd *, struct bfd_link_info *, const char *, boolean));
|
PARAMS ((bfd *, struct bfd_link_info *, const char *, boolean));
|
||||||
extern boolean bfd_elf64_record_link_assignment
|
extern boolean bfd_elf64_record_link_assignment
|
||||||
PARAMS ((bfd *, struct bfd_link_info *, const char *, boolean));
|
PARAMS ((bfd *, struct bfd_link_info *, const char *, boolean));
|
||||||
struct bfd_elf_link_needed_list
|
extern struct bfd_link_needed_list *bfd_elf_get_needed_list
|
||||||
{
|
|
||||||
struct bfd_elf_link_needed_list *next;
|
|
||||||
bfd *by;
|
|
||||||
const char *name;
|
|
||||||
};
|
|
||||||
extern struct bfd_elf_link_needed_list *bfd_elf_get_needed_list
|
|
||||||
PARAMS ((bfd *, struct bfd_link_info *));
|
PARAMS ((bfd *, struct bfd_link_info *));
|
||||||
extern boolean bfd_elf32_size_dynamic_sections
|
extern boolean bfd_elf32_size_dynamic_sections
|
||||||
PARAMS ((bfd *, const char *, const char *, boolean,
|
PARAMS ((bfd *, const char *, const char *, boolean,
|
||||||
|
@ -563,17 +563,18 @@ extern boolean bfd_mips_ecoff_create_embedded_relocs
|
|||||||
|
|
||||||
/* Externally visible ELF routines. */
|
/* Externally visible ELF routines. */
|
||||||
|
|
||||||
|
struct bfd_link_needed_list
|
||||||
|
{
|
||||||
|
struct bfd_link_needed_list *next;
|
||||||
|
bfd *by;
|
||||||
|
const char *name;
|
||||||
|
};
|
||||||
|
|
||||||
extern boolean bfd_elf32_record_link_assignment
|
extern boolean bfd_elf32_record_link_assignment
|
||||||
PARAMS ((bfd *, struct bfd_link_info *, const char *, boolean));
|
PARAMS ((bfd *, struct bfd_link_info *, const char *, boolean));
|
||||||
extern boolean bfd_elf64_record_link_assignment
|
extern boolean bfd_elf64_record_link_assignment
|
||||||
PARAMS ((bfd *, struct bfd_link_info *, const char *, boolean));
|
PARAMS ((bfd *, struct bfd_link_info *, const char *, boolean));
|
||||||
struct bfd_elf_link_needed_list
|
extern struct bfd_link_needed_list *bfd_elf_get_needed_list
|
||||||
{
|
|
||||||
struct bfd_elf_link_needed_list *next;
|
|
||||||
bfd *by;
|
|
||||||
const char *name;
|
|
||||||
};
|
|
||||||
extern struct bfd_elf_link_needed_list *bfd_elf_get_needed_list
|
|
||||||
PARAMS ((bfd *, struct bfd_link_info *));
|
PARAMS ((bfd *, struct bfd_link_info *));
|
||||||
extern boolean bfd_elf32_size_dynamic_sections
|
extern boolean bfd_elf32_size_dynamic_sections
|
||||||
PARAMS ((bfd *, const char *, const char *, boolean,
|
PARAMS ((bfd *, const char *, const char *, boolean,
|
||||||
@ -1872,6 +1873,7 @@ struct _bfd
|
|||||||
struct _oasys_ar_data *oasys_ar_data;
|
struct _oasys_ar_data *oasys_ar_data;
|
||||||
struct coff_tdata *coff_obj_data;
|
struct coff_tdata *coff_obj_data;
|
||||||
struct pe_tdata *pe_obj_data;
|
struct pe_tdata *pe_obj_data;
|
||||||
|
struct xcoff_tdata *xcoff_obj_data;
|
||||||
struct ecoff_tdata *ecoff_obj_data;
|
struct ecoff_tdata *ecoff_obj_data;
|
||||||
struct ieee_data_struct *ieee_data;
|
struct ieee_data_struct *ieee_data;
|
||||||
struct ieee_ar_data_struct *ieee_ar_data;
|
struct ieee_ar_data_struct *ieee_ar_data;
|
||||||
|
@ -442,12 +442,11 @@ elf_link_add_object_symbols (abfd, info)
|
|||||||
}
|
}
|
||||||
if (dyn.d_tag == DT_NEEDED)
|
if (dyn.d_tag == DT_NEEDED)
|
||||||
{
|
{
|
||||||
struct bfd_elf_link_needed_list *n, **pn;
|
struct bfd_link_needed_list *n, **pn;
|
||||||
char *fnm, *anm;
|
char *fnm, *anm;
|
||||||
|
|
||||||
n = (struct bfd_elf_link_needed_list *)
|
n = ((struct bfd_link_needed_list *)
|
||||||
bfd_alloc (abfd,
|
bfd_alloc (abfd, sizeof (struct bfd_link_needed_list)));
|
||||||
sizeof (struct bfd_elf_link_needed_list));
|
|
||||||
fnm = bfd_elf_string_from_elf_section (abfd, link,
|
fnm = bfd_elf_string_from_elf_section (abfd, link,
|
||||||
dyn.d_un.d_val);
|
dyn.d_un.d_val);
|
||||||
if (n == NULL || fnm == NULL)
|
if (n == NULL || fnm == NULL)
|
||||||
|
@ -146,7 +146,7 @@ struct elf_link_hash_table
|
|||||||
size_t bucketcount;
|
size_t bucketcount;
|
||||||
/* A linked list of DT_NEEDED names found in dynamic objects
|
/* A linked list of DT_NEEDED names found in dynamic objects
|
||||||
included in the link. */
|
included in the link. */
|
||||||
struct bfd_elf_link_needed_list *needed;
|
struct bfd_link_needed_list *needed;
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Look up an entry in an ELF linker hash table. */
|
/* Look up an entry in an ELF linker hash table. */
|
||||||
|
Loading…
Reference in New Issue
Block a user