+Fri Jan 5 14:07:45 1996 Steve Chamberlain <sac@slash.cygnus.com>
+
+ * emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation):
+ sort using right pointer.
+
Fri Jan 5 12:25:47 1996 Michael Meissner <meissner@tiktok.cygnus.com>
* scripttempl/elfppc.sc: Remove support for creating special
* ldexp.c (exp_fold_tree): Permit assignments to dot in the final
phase if the current section is abs_output_section.
+
+Tue Dec 5 09:49:39 1995 Doug Evans <dje@canuck.cygnus.com>
+
+ * emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation): Fix call
+ to sort_sections.
+
Fri Dec 1 16:48:36 1995 Ian Lance Taylor <ian@cygnus.com>
* ldgram.y (PHDRS): New token.
#include "coff/internal.h"
#include "../bfd/libcoff.h"
+#define TARGET_IS_${EMULATION_NAME}
+
static void gld_${EMULATION_NAME}_before_parse PARAMS ((void));
static char *gld_${EMULATION_NAME}_get_script PARAMS ((int *isfile));
return 0;
case OPTION_BASE_FILE:
- link_info.base_file = (PTR) fopen (optarg,"w");
+ link_info.base_file = (PTR) fopen (optarg, FOPEN_WB);
if (link_info.base_file == NULL)
{
fprintf (stderr, "%s: Can't open base file %s\n",
? NT_DLL_IMAGE_BASE : NT_EXE_IMAGE_BASE;
/* Glue the assignments into the abs section */
- save=stat_ptr;
+ save = stat_ptr;
stat_ptr = &(abs_output_section->children);
+
for (j = 0; init[j].ptr; j++)
{
long val = init[j].value;
gld_${EMULATION_NAME}_before_allocation()
{
extern lang_statement_list_type *stat_ptr;
+
+#ifdef TARGET_IS_ppcpe
+ /* Here we rummage through the found bfds to collect toc information */
+ {
+ LANG_FOR_EACH_INPUT_STATEMENT (is)
+ {
+ ppc_process_before_allocation(is->the_bfd, &link_info);
+ }
+ }
+
+ /* We have seen it all. Allocate it, and carry on */
+ ppc_allocate_toc_section (&link_info);
+#endif
+
sort_sections (*stat_ptr);
}