* small ld/emultempl cleanup
@ 2005-02-10 8:58 Ben Elliston
2005-02-10 10:36 ` Alan Modra
0 siblings, 1 reply; 2+ messages in thread
From: Ben Elliston @ 2005-02-10 8:58 UTC (permalink / raw)
To: binutils
[-- Attachment #1: Type: text/plain, Size: 2036 bytes --]
I'm just flushing a few lurking patches from my tree, so here is a
small one against emultempl/beos.em. Okay for mainline?
2005-02-10 Ben Elliston <bje@au.ibm.com>
* emultempl/beos.em: Remove #if 0 and #if 1 blocks.
Index: emultempl/beos.em
===================================================================
RCS file: /home/bje/src-cvs/src/ld/emultempl/beos.em,v
retrieving revision 1.25
diff -u -p -u -r1.25 beos.em
--- emultempl/beos.em 3 Jan 2004 11:09:07 -0000 1.25
+++ emultempl/beos.em 9 Feb 2005 23:02:36 -0000
@@ -187,10 +187,6 @@ set_pe_subsystem (void)
{ "wwindows", 2, "_wWinMainCRTStartup" },
{ "console", 3, "_mainCRTStartup" },
{ "wconsole", 3, "_wmainCRTStartup" },
-#if 0
- /* The Microsoft linker does not recognize this. */
- { "os2", 5, "" },
-#endif
{ "posix", 7, "___PosixProcessStartup"},
{ 0, 0, 0 }
};
@@ -733,30 +729,7 @@ gld${EMULATION_NAME}_place_orphan (lang_
}
ps[0] = 0;
if (l == NULL)
-#if 1
einfo ("%P%F: *(%s\$) missing from linker script\n", output_secname);
-#else /* FIXME: This block is untried. It exists to convey the intent,
- should one decide to not require *(.foo\$) to appear in the linker
- script. */
- {
- lang_wild_statement_type *new;
- struct wildcard_list *tmp;
-
- tmp = (struct wildcard_list *) xmalloc (sizeof *tmp);
- tmp->next = NULL;
- tmp->spec.name = xmalloc (strlen (output_secname) + 2);
- sprintf (tmp->spec.name, "%s\$", output_secname);
- tmp->spec.exclude_name_list = NULL;
- tmp->sorted = FALSE;
- new = new_stat (lang_wild_statement, &os->children);
- new->filename = NULL;
- new->filenames_sorted = FALSE;
- new->section_list = tmp;
- new->keep_sections = FALSE;
- lang_list_init (&new->children);
- l = new;
- }
-#endif
/* Link the input section in and we're done for now.
The sections still have to be sorted, but that has to wait until
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: small ld/emultempl cleanup
2005-02-10 8:58 small ld/emultempl cleanup Ben Elliston
@ 2005-02-10 10:36 ` Alan Modra
0 siblings, 0 replies; 2+ messages in thread
From: Alan Modra @ 2005-02-10 10:36 UTC (permalink / raw)
To: Ben Elliston; +Cc: binutils
On Thu, Feb 10, 2005 at 10:05:26AM +1100, Ben Elliston wrote:
> * emultempl/beos.em: Remove #if 0 and #if 1 blocks.
OK.
--
Alan Modra
IBM OzLabs - Linux Technology Centre
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-02-09 23:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-10 8:58 small ld/emultempl cleanup Ben Elliston
2005-02-10 10:36 ` Alan Modra
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).