delete some dead ld code
Alan Modra
amodra@bigpond.net.au
Tue Dec 2 05:57:00 GMT 2003
mpc860c0 support was removed with the 2003-07-28 change to elf32-ppc.c.
include/ChangeLog
* bfdlink.h (struct bfd_link_info): Remove mpc860c0 field.
ld/ChangeLog
* ldmain.c (main): Remove mpc860c0 code.
* lexsup.c (enum option_values): Delete OPTION_MPC860C0.
(ld_options): Delete mpc860c0 entry.
(parse_args): Likewise.
Index: include/bfdlink.h
===================================================================
RCS file: /cvs/src/src/include/bfdlink.h,v
retrieving revision 1.37
diff -u -p -r1.37 bfdlink.h
--- include/bfdlink.h 24 Oct 2003 14:55:14 -0000 1.37
+++ include/bfdlink.h 2 Dec 2003 04:49:47 -0000
@@ -366,11 +366,6 @@ struct bfd_link_info
unloaded. */
const char *fini_function;
- /* If non-zero, specifies that branches which are problematic for the
- MPC860 C0 (or earlier) should be checked for and modified. It gives the
- number of bytes that should be checked at the end of each text page. */
- int mpc860c0;
-
/* Non-zero if auto-import thunks for DATA items in pei386 DLLs
should be generated/linked against. Set to 1 if this feature
is explicitly requested by the user, -1 if enabled by default. */
Index: ld/ldmain.c
===================================================================
RCS file: /cvs/src/src/ld/ldmain.c,v
retrieving revision 1.75
diff -u -p -r1.75 ldmain.c
--- ld/ldmain.c 30 Sep 2003 16:17:14 -0000 1.75
+++ ld/ldmain.c 2 Dec 2003 04:49:49 -0000
@@ -316,7 +316,6 @@ main (int argc, char **argv)
and _fini symbols. We are compatible. */
link_info.init_function = "_init";
link_info.fini_function = "_fini";
- link_info.mpc860c0 = 0;
link_info.pei386_auto_import = -1;
link_info.pei386_runtime_pseudo_reloc = FALSE;
link_info.spare_dynamic_tags = 5;
@@ -345,8 +344,6 @@ main (int argc, char **argv)
{
if (command_line.gc_sections)
einfo ("%P%F: --gc-sections and -r may not be used together\n");
- if (link_info.mpc860c0)
- einfo (_("%P%F: -r and --mpc860c0 may not be used together\n"));
else if (command_line.relax)
einfo (_("%P%F: --relax and -r may not be used together\n"));
if (link_info.shared)
Index: ld/lexsup.c
===================================================================
RCS file: /cvs/src/src/ld/lexsup.c,v
retrieving revision 1.68
diff -u -p -r1.68 lexsup.c
--- ld/lexsup.c 8 Oct 2003 13:52:33 -0000 1.68
+++ ld/lexsup.c 2 Dec 2003 04:49:51 -0000
@@ -118,7 +118,6 @@ enum option_values
OPTION_NO_GC_SECTIONS,
OPTION_CHECK_SECTIONS,
OPTION_NO_CHECK_SECTIONS,
- OPTION_MPC860C0,
OPTION_NO_UNDEFINED,
OPTION_INIT,
OPTION_FINI,
@@ -440,9 +439,7 @@ static const struct ld_option ld_options
{ {"whole-archive", no_argument, NULL, OPTION_WHOLE_ARCHIVE},
'\0', NULL, N_("Include all objects from following archives"), TWO_DASHES },
{ {"wrap", required_argument, NULL, OPTION_WRAP},
- '\0', N_("SYMBOL"), N_("Use wrapper functions for SYMBOL"), TWO_DASHES },
- { {"mpc860c0", optional_argument, NULL, OPTION_MPC860C0},
- '\0', N_("[=WORDS]"), N_("Modify problematic branches in last WORDS (1-10,\n\t\t\t\tdefault 5) words of a page"), TWO_DASHES }
+ '\0', N_("SYMBOL"), N_("Use wrapper functions for SYMBOL"), TWO_DASHES }
};
#define OPTION_COUNT ARRAY_SIZE (ld_options)
@@ -1244,22 +1241,6 @@ parse_args (unsigned argc, char **argv)
lang_leave_group ();
ingroup = 0;
- break;
- case OPTION_MPC860C0:
- /* Default value (in bytes). */
- link_info.mpc860c0 = 20;
- if (optarg)
- {
- unsigned words;
-
- words = is_num (optarg, 1, 10, 0);
- if (words == 0)
- einfo (_("%P%F: invalid argument to option \"mpc860c0\"\n"));
-
- /* Convert words to bytes. */
- link_info.mpc860c0 = words * 4;
- }
- command_line.relax = TRUE;
break;
case OPTION_INIT:
--
Alan Modra
IBM OzLabs - Linux Technology Centre
More information about the Binutils
mailing list