# This shell script emits a C file. -*- C -*- # Copyright 2002 Free Software Foundation, Inc. # # This file is part of GLD, the Gnu Linker. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # This file is sourced from elf32.em, and defines extra powerpc64-elf # specific routines. # cat >>e${EMULATION_NAME}.c <head, abs_output_section, &stat_ptr->head, 0, (bfd_vma) 0, NULL); /* Recalculate TOC base. */ ldemul_after_allocation (); /* Do the assignments again. */ lang_do_assignments (stat_ptr->head, abs_output_section, (fill_type) 0, (bfd_vma) 0); } if (! ppc64_elf_build_stubs (output_bfd, &link_info)) einfo ("%X%P: can not build stubs: %E\n"); } EOF # Put these extra ppc64elf routines in ld_${EMULATION_NAME}_emulation # LDEMUL_AFTER_ALLOCATION=gld${EMULATION_NAME}_after_allocation LDEMUL_FINISH=gld${EMULATION_NAME}_finish