aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorSteve Chamberlain <sac@cygnus>1992-02-07 00:33:57 +0000
committerSteve Chamberlain <sac@cygnus>1992-02-07 00:33:57 +0000
commitd58b7049a71721f1ce04f5eb468ff8ef1faa1d69 (patch)
tree3273908543bdb63aba85e2ce3c386cedb4ed4f4e /bfd
parent424f02027213e8e4ed386bca4d7973022e63dac6 (diff)
downloadgdb-d58b7049a71721f1ce04f5eb468ff8ef1faa1d69.zip
gdb-d58b7049a71721f1ce04f5eb468ff8ef1faa1d69.tar.gz
gdb-d58b7049a71721f1ce04f5eb468ff8ef1faa1d69.tar.bz2
Fluff removal.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/coffcode.h2
-rw-r--r--bfd/libbfd.h5
-rw-r--r--bfd/reloc.c28
-rw-r--r--bfd/targets.c2
4 files changed, 36 insertions, 1 deletions
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index e80370d..c7098cd 100644
--- a/bfd/coffcode.h
+++ b/bfd/coffcode.h
@@ -255,6 +255,8 @@ CODE_FRAGMENT
. {* A pointer to the linenumber information for this symbol *}
.struct lineno_cache_entry *lineno;
.
+. {* Have the line numbers been relocated yet ? *}
+.boolean done_lineno;
.} coff_symbol_type;
diff --git a/bfd/libbfd.h b/bfd/libbfd.h
index 81f327d..69f6398 100644
--- a/bfd/libbfd.h
+++ b/bfd/libbfd.h
@@ -213,6 +213,11 @@ void EXFUN(bfd_constructor_entry, (bfd *abfd,
CONST struct reloc_howto_struct *EXFUN(bfd_default_reloc_type_lookup
, (CONST struct bfd_arch_info *,
bfd_reloc_code_type code));
+boolean EXFUN(bfd_generic_relax_section
+ , (bfd *abfd,
+ asection *section,
+ asymbol **symbols,
+ struct bfd_seclet_struct *seclet));
bfd_byte *
EXFUN(bfd_generic_get_relocated_section_contents, (bfd *abfd,
struct bfd_seclet_struct *seclet)
diff --git a/bfd/reloc.c b/bfd/reloc.c
index 622d198..89a92b4 100644
--- a/bfd/reloc.c
+++ b/bfd/reloc.c
@@ -737,7 +737,35 @@ return (struct reloc_howto_struct *)NULL;
}
+/*
+INTERNAL_FUNCTION
+ bfd_generic_relax_section
+
+SYNOPSIS
+ boolean bfd_generic_relax_section
+ (bfd *abfd,
+ asection *section,
+ asymbol **symbols,
+ struct bfd_seclet_struct *seclet);
+
+DESCRIPTION
+ Provides default handling for relaxing for back ends which
+ don't do relaxing - ie does nothing
+*/
+
+boolean
+DEFUN(bfd_generic_relax_section,(abfd, section, symbols, seclet),
+ bfd *abfd AND
+ asection *section AND
+ asymbol **symbols AND
+ struct bfd_seclet_struct *seclet)
+{
+
+ return false;
+
+}
+
/*
INTERNAL_FUNCTION
bfd_generic_get_relocated_section_contents
diff --git a/bfd/targets.c b/bfd/targets.c
index d67e6e2..bfd05d4 100644
--- a/bfd/targets.c
+++ b/bfd/targets.c
@@ -268,7 +268,7 @@ Symbols and reloctions
. SDEF (void, _bfd_debug_info_end, (bfd *));
. SDEF (void, _bfd_debug_info_accumulate, (bfd *, struct sec *));
. SDEF (bfd_byte *, _bfd_get_relocated_section_contents, (bfd*,struct bfd_seclet_struct *));
-
+. SDEF (boolean,_bfd_relax_section,(bfd *, struct sec *, struct symbol_cache_entry **, struct bfd_seclet_struct *));
Special entry points for gdb to swap in coff symbol table parts
. SDEF(void, _bfd_coff_swap_aux_in,(