aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2005-11-24 06:02:08 +0000
committerAlan Modra <amodra@gmail.com>2005-11-24 06:02:08 +0000
commit390fbbf109a72362de0ff83ee32aedfe57c71292 (patch)
treede4002fa585abff2fd2da7d660e05d4bf7949f1f /bfd
parentbe5291325d6402206276092e018ad6bb4210bcf0 (diff)
downloadgdb-390fbbf109a72362de0ff83ee32aedfe57c71292.zip
gdb-390fbbf109a72362de0ff83ee32aedfe57c71292.tar.gz
gdb-390fbbf109a72362de0ff83ee32aedfe57c71292.tar.bz2
bfd/
* elf-bfd.h (_bfd_generic_match_sections_by_type): Don't define. * libbfd-in.h (_bfd_generic_match_sections_by_type): Delete. * libbfd.c (_bfd_generic_match_sections_by_type): Delete. * targets.c (bfd_match_sections_by_type): Don't define. (BFD_JUMP_TABLE_LINK): Remove _bfd_generic_match_sections_by_type. * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Likewise. * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Likewise. * bfd-in2.h: Regenerate. * libbfd.h: Regenerate. ld/ * ldlang.c (lang_output_section_find_by_flags): Add match_type param. Run two passes, first using match_type, second without. * ldlang.h (lang_match_sec_type_func): New typedef. (lang_output_section_find_by_flags): Update prototype. bfd_match_sections_by_type and lang_output_section_find_by_flags. * emultempl/pe.em (place_orphan): Likewise.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog12
-rw-r--r--bfd/bfd-in2.h7
-rw-r--r--bfd/coff-rs6000.c2
-rw-r--r--bfd/coff64-rs6000.c2
-rw-r--r--bfd/elf-bfd.h2
-rw-r--r--bfd/libbfd-in.h2
-rw-r--r--bfd/libbfd.c9
-rw-r--r--bfd/libbfd.h2
-rw-r--r--bfd/targets.c7
9 files changed, 12 insertions, 33 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 6b78c6b..dcd3be6 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,15 @@
+2005-11-24 Alan Modra <amodra@bigpond.net.au>
+
+ * elf-bfd.h (_bfd_generic_match_sections_by_type): Don't define.
+ * libbfd-in.h (_bfd_generic_match_sections_by_type): Delete.
+ * libbfd.c (_bfd_generic_match_sections_by_type): Delete.
+ * targets.c (bfd_match_sections_by_type): Don't define.
+ (BFD_JUMP_TABLE_LINK): Remove _bfd_generic_match_sections_by_type.
+ * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Likewise.
+ * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Likewise.
+ * bfd-in2.h: Regenerate.
+ * libbfd.h: Regenerate.
+
2005-11-23 Daniel Jacobowitz <dan@codesourcery.com>
Thiemo Seufer <ths@networkno.de>
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index d857086..81fb666 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -4945,7 +4945,6 @@ typedef struct bfd_target
NAME##_bfd_link_split_section, \
NAME##_bfd_gc_sections, \
NAME##_bfd_merge_sections, \
- _bfd_generic_match_sections_by_type, \
NAME##_bfd_is_group_section, \
NAME##_bfd_discard_group, \
NAME##_section_already_linked \
@@ -4985,12 +4984,6 @@ typedef struct bfd_target
/* Attempt to merge SEC_MERGE sections. */
bfd_boolean (*_bfd_merge_sections) (bfd *, struct bfd_link_info *);
-#define bfd_match_sections_by_type(abfd, asec, bbfd, bsec) \
- BFD_SEND (abfd, _bfd_match_sections_by_type, (abfd, asec, bbfd, bsec))
- /* Return TRUE if 2 section types are compatible. */
- bfd_boolean (*_bfd_match_sections_by_type)
- (bfd *, const asection *, bfd *, const asection *);
-
/* Is this section a member of a group? */
bfd_boolean (*_bfd_is_group_section) (bfd *, const struct bfd_section *);
diff --git a/bfd/coff-rs6000.c b/bfd/coff-rs6000.c
index 8e54c6a..220edf8 100644
--- a/bfd/coff-rs6000.c
+++ b/bfd/coff-rs6000.c
@@ -4196,7 +4196,6 @@ const bfd_target rs6000coff_vec =
_bfd_generic_link_split_section,
bfd_generic_gc_sections,
bfd_generic_merge_sections,
- _bfd_generic_match_sections_by_type,
bfd_generic_is_group_section,
bfd_generic_discard_group,
_bfd_generic_section_already_linked,
@@ -4447,7 +4446,6 @@ const bfd_target pmac_xcoff_vec =
_bfd_generic_link_split_section,
bfd_generic_gc_sections,
bfd_generic_merge_sections,
- _bfd_generic_match_sections_by_type,
bfd_generic_is_group_section,
bfd_generic_discard_group,
_bfd_generic_section_already_linked,
diff --git a/bfd/coff64-rs6000.c b/bfd/coff64-rs6000.c
index 77a6eec..e0aa87e 100644
--- a/bfd/coff64-rs6000.c
+++ b/bfd/coff64-rs6000.c
@@ -2743,7 +2743,6 @@ const bfd_target rs6000coff64_vec =
_bfd_generic_link_split_section,
bfd_generic_gc_sections,
bfd_generic_merge_sections,
- _bfd_generic_match_sections_by_type,
bfd_generic_is_group_section,
bfd_generic_discard_group,
_bfd_generic_section_already_linked,
@@ -2995,7 +2994,6 @@ const bfd_target aix5coff64_vec =
_bfd_generic_link_split_section,
bfd_generic_gc_sections,
bfd_generic_merge_sections,
- _bfd_generic_match_sections_by_type,
bfd_generic_is_group_section,
bfd_generic_discard_group,
_bfd_generic_section_already_linked,
diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h
index be1c65f..f957283 100644
--- a/bfd/elf-bfd.h
+++ b/bfd/elf-bfd.h
@@ -1476,8 +1476,6 @@ extern bfd_boolean _bfd_elf_merge_sections
(bfd *, struct bfd_link_info *);
extern bfd_boolean _bfd_elf_match_sections_by_type
(bfd *, const asection *, bfd *, const asection *);
-#define _bfd_generic_match_sections_by_type \
- _bfd_elf_match_sections_by_type
extern bfd_boolean bfd_elf_is_group_section
(bfd *, const struct bfd_section *);
extern void _bfd_elf_section_already_linked
diff --git a/bfd/libbfd-in.h b/bfd/libbfd-in.h
index f81452f..e3468c1 100644
--- a/bfd/libbfd-in.h
+++ b/bfd/libbfd-in.h
@@ -402,8 +402,6 @@ extern bfd_boolean _bfd_generic_set_section_contents
((bfd_boolean (*) (bfd *, struct bfd_section *)) bfd_false)
#define _bfd_nolink_section_already_linked \
((void (*) (bfd *, struct bfd_section *)) bfd_void)
-extern bfd_boolean _bfd_generic_match_sections_by_type
- (bfd *, const asection *, bfd *, const asection *);
/* Routines to use for BFD_JUMP_TABLE_DYNAMIC for targets which do not
have dynamic symbols or relocs. Use BFD_JUMP_TABLE_DYNAMIC
diff --git a/bfd/libbfd.c b/bfd/libbfd.c
index 34e32ac..57cfabc 100644
--- a/bfd/libbfd.c
+++ b/bfd/libbfd.c
@@ -1035,15 +1035,6 @@ _bfd_generic_find_line (bfd *abfd ATTRIBUTE_UNUSED,
}
bfd_boolean
-_bfd_generic_match_sections_by_type (bfd *abfd ATTRIBUTE_UNUSED,
- const asection *asec ATTRIBUTE_UNUSED,
- bfd *bbfd ATTRIBUTE_UNUSED,
- const asection *bsec ATTRIBUTE_UNUSED)
-{
- return TRUE;
-}
-
-bfd_boolean
_bfd_generic_init_private_section_data (bfd *ibfd ATTRIBUTE_UNUSED,
asection *isec ATTRIBUTE_UNUSED,
bfd *obfd ATTRIBUTE_UNUSED,
diff --git a/bfd/libbfd.h b/bfd/libbfd.h
index e05252c..8b01aaa 100644
--- a/bfd/libbfd.h
+++ b/bfd/libbfd.h
@@ -407,8 +407,6 @@ extern bfd_boolean _bfd_generic_set_section_contents
((bfd_boolean (*) (bfd *, struct bfd_section *)) bfd_false)
#define _bfd_nolink_section_already_linked \
((void (*) (bfd *, struct bfd_section *)) bfd_void)
-extern bfd_boolean _bfd_generic_match_sections_by_type
- (bfd *, const asection *, bfd *, const asection *);
/* Routines to use for BFD_JUMP_TABLE_DYNAMIC for targets which do not
have dynamic symbols or relocs. Use BFD_JUMP_TABLE_DYNAMIC
diff --git a/bfd/targets.c b/bfd/targets.c
index 8f5795c..c0372a1 100644
--- a/bfd/targets.c
+++ b/bfd/targets.c
@@ -434,7 +434,6 @@ BFD_JUMP_TABLE macros.
. NAME##_bfd_link_split_section, \
. NAME##_bfd_gc_sections, \
. NAME##_bfd_merge_sections, \
-. _bfd_generic_match_sections_by_type, \
. NAME##_bfd_is_group_section, \
. NAME##_bfd_discard_group, \
. NAME##_section_already_linked \
@@ -474,12 +473,6 @@ BFD_JUMP_TABLE macros.
. {* Attempt to merge SEC_MERGE sections. *}
. bfd_boolean (*_bfd_merge_sections) (bfd *, struct bfd_link_info *);
.
-.#define bfd_match_sections_by_type(abfd, asec, bbfd, bsec) \
-. BFD_SEND (abfd, _bfd_match_sections_by_type, (abfd, asec, bbfd, bsec))
-. {* Return TRUE if 2 section types are compatible. *}
-. bfd_boolean (*_bfd_match_sections_by_type)
-. (bfd *, const asection *, bfd *, const asection *);
-.
. {* Is this section a member of a group? *}
. bfd_boolean (*_bfd_is_group_section) (bfd *, const struct bfd_section *);
.