diff options
author | Ian Lance Taylor <ian@airs.com> | 1994-05-10 18:29:19 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1994-05-10 18:29:19 +0000 |
commit | c16313f06cf9273b61a425a1cd3b9e5d04058a1b (patch) | |
tree | 9641300155bc095b6669e07c8da7bc5e4b704fad /bfd/bfd-in2.h | |
parent | 39a20ec6777401cc752d7766e0660cddacedc758 (diff) | |
download | gdb-c16313f06cf9273b61a425a1cd3b9e5d04058a1b.zip gdb-c16313f06cf9273b61a425a1cd3b9e5d04058a1b.tar.gz gdb-c16313f06cf9273b61a425a1cd3b9e5d04058a1b.tar.bz2 |
* section.c (SEC_COFF_SHARED_LIBRARY): Renamed from
SEC_SHARED_LIBRARY for clarity. Changed all uses.
* bfd-in2.h: Rebuilt.
* coffcode.h (sec_to_styp_flags): If SEC_COFF_SHARED_LIBRARY is
set, set STYP_NOLOAD.
* coffgen.c (coff_section_from_bfd_index): Don't get an assertion
failure because of a bad shared library.
Diffstat (limited to 'bfd/bfd-in2.h')
-rw-r--r-- | bfd/bfd-in2.h | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h index 997abcd..6ea2e08 100644 --- a/bfd/bfd-in2.h +++ b/bfd/bfd-in2.h @@ -463,8 +463,9 @@ void bfd_putb32 PARAMS ((bfd_vma, unsigned char *)); void bfd_putl32 PARAMS ((bfd_vma, unsigned char *)); void bfd_putb16 PARAMS ((bfd_vma, unsigned char *)); void bfd_putl16 PARAMS ((bfd_vma, unsigned char *)); + +/* Externally visible ECOFF routines. */ -/* ECOFF linking routines. */ #if defined(__STDC__) || defined(ALMOST_STDC) struct ecoff_debug_info; struct ecoff_debug_swap; @@ -472,6 +473,11 @@ struct ecoff_extr; struct symbol_cache_entry; struct bfd_link_info; #endif +extern bfd_vma bfd_ecoff_get_gp_value PARAMS ((bfd * abfd)); +extern boolean bfd_ecoff_set_gp_value PARAMS ((bfd *abfd, bfd_vma gp_value)); +extern boolean bfd_ecoff_set_regmasks + PARAMS ((bfd *abfd, unsigned long gprmask, unsigned long fprmask, + unsigned long *cprmask)); extern PTR bfd_ecoff_debug_init PARAMS ((bfd *output_bfd, struct ecoff_debug_info *output_debug, const struct ecoff_debug_swap *output_swap, @@ -693,13 +699,19 @@ typedef struct sec #define SEC_HAS_CONTENTS 0x200 /* An instruction to the linker to not output the section - even if it has information which would normally be written. */ + even if it has information which would normally be written. */ #define SEC_NEVER_LOAD 0x400 - /* The section is a shared library section. The linker must leave - these completely alone, as the vma and size are used when - the executable is loaded. */ -#define SEC_SHARED_LIBRARY 0x800 + /* The section is a COFF shared library section. This flag is + only for the linker. If this type of section appears in + the input file, the linker must copy it to the output file + without changing the vma or size. FIXME: Although this + was originally intended to be general, it really is COFF + specific (and the flag was renamed to indicate this). It + might be cleaner to have some more general mechanism to + allow the back end to control what the linker does with + sections. */ +#define SEC_COFF_SHARED_LIBRARY 0x800 /* The section is a common section (symbols may be defined multiple times, the value of a symbol is the amount of |