diff options
author | Geoffrey Noer <noer@cygnus> | 1996-10-03 06:55:39 +0000 |
---|---|---|
committer | Geoffrey Noer <noer@cygnus> | 1996-10-03 06:55:39 +0000 |
commit | 417fe276e36d4ef5e5c6e97b5cad99649b046538 (patch) | |
tree | 0bc2820ce5d1cbae341fc1af5062fb975eb29620 | |
parent | bdec6bdb4ba4d0ca1e8d85167fdd2ae5b174ad3e (diff) | |
download | gdb-417fe276e36d4ef5e5c6e97b5cad99649b046538.zip gdb-417fe276e36d4ef5e5c6e97b5cad99649b046538.tar.gz gdb-417fe276e36d4ef5e5c6e97b5cad99649b046538.tar.bz2 |
Wed Oct 2 23:45:25 1996 Geoffrey Noer <noer@cygnus.com>
* emultmpl/pe.em: increase size of stack reserve to 0x2000000
(necessary in order to compile parse.c in gcc sources under NT)
-rw-r--r-- | ld/ChangeLog | 5 | ||||
-rw-r--r-- | ld/emultempl/pe.em | 47 |
2 files changed, 31 insertions, 21 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 5a23b81..b5eb447 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -2,6 +2,11 @@ Thu Oct 3 15:41:24 1996 Jason Molenda (crash@godzilla.cygnus.co.jp) * Makefile.in (mostlyclean): Move config.log to distclean. +Wed Oct 2 23:45:25 1996 Geoffrey Noer <noer@cygnus.com> + + * emultmpl/pe.em: increase size of stack reserve to 0x2000000 + (necessary in order to compile parse.c in gcc sources under NT) + Wed Oct 2 14:49:10 1996 Ian Lance Taylor <ian@cygnus.com> * lexsup.c (ld_options): Fix typo in --rpath-link description. diff --git a/ld/emultempl/pe.em b/ld/emultempl/pe.em index e4696fa..1f83102 100644 --- a/ld/emultempl/pe.em +++ b/ld/emultempl/pe.em @@ -139,7 +139,7 @@ static definfo init[] = D(MajorSubsystemVersion,"__major_subsystem_version__", 4), D(MinorSubsystemVersion,"__minor_subsystem_version__", 0), D(Subsystem,"__subsystem__", 3), - D(SizeOfStackReserve,"__size_of_stack_reserve__", 0x100000), + D(SizeOfStackReserve,"__size_of_stack_reserve__", 0x2000000), D(SizeOfStackCommit,"__size_of_stack_commit__", 0x1000), D(SizeOfHeapReserve,"__size_of_heap_reserve__", 0x100000), D(SizeOfHeapCommit,"__size_of_heap_commit__", 0x1000), @@ -460,7 +460,8 @@ sort_sections (s) lang_statement_union_type **p = &s->wild_statement.children.head; /* Is this the .idata section? */ - if (strncmp (s->wild_statement.section_name, ".idata", 6) == 0) + if (s->wild_statement.section_name != NULL + && strncmp (s->wild_statement.section_name, ".idata", 6) == 0) { /* Sort any children in the same archive. Run through all the children of this wild statement, when an @@ -498,24 +499,25 @@ sort_sections (s) Don't sort them if \$ is not the last character (not sure if this is really useful, but it allows explicitly mentioning some \$ sections and letting the linker handle the rest). */ - { - char *q = strchr (s->wild_statement.section_name, '\$'); - - if (q && q[1] == 0) - { - lang_statement_union_type *end; - int count; - - for (end = *p, count = 0; end; end = end->next) - { - if (end->header.type != lang_input_section_enum) - abort (); - count++; - } - (void) sort_sections_1 (p, end, count, sort_by_section_name); - } - break; - } + if (s->wild_statement.section_name != NULL) + { + char *q = strchr (s->wild_statement.section_name, '\$'); + + if (q && q[1] == 0) + { + lang_statement_union_type *end; + int count; + + for (end = *p, count = 0; end; end = end->next) + { + if (end->header.type != lang_input_section_enum) + abort (); + count++; + } + (void) sort_sections_1 (p, end, count, sort_by_section_name); + } + break; + } } break; default: @@ -533,7 +535,10 @@ gld_${EMULATION_NAME}_before_allocation() { LANG_FOR_EACH_INPUT_STATEMENT (is) { - ppc_process_before_allocation(is->the_bfd, &link_info); + if (!ppc_process_before_allocation(is->the_bfd, &link_info)) + { + einfo("Errors encountered processing file %s", is->filename); + } } } |