summaryrefslogtreecommitdiffstats
path: root/ld/emultempl
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2006-06-21 02:53:43 +0000
committerHans-Peter Nilsson <hp@axis.com>2006-06-21 02:53:43 +0000
commita4308b792c484d8591846e1ee1850d62739aba3e (patch)
treee95b307ddd39c1cb342ca1aab4293d9fb6f23ab5 /ld/emultempl
parent03b6d2cfd02379475af7cc64c09f00370580d743 (diff)
downloadppe42-binutils-a4308b792c484d8591846e1ee1850d62739aba3e.tar.gz
ppe42-binutils-a4308b792c484d8591846e1ee1850d62739aba3e.zip
* emultempl/mmo.em: Improve comments. Explain why there's
ELF-stuff here.
Diffstat (limited to 'ld/emultempl')
-rw-r--r--ld/emultempl/mmo.em16
1 files changed, 11 insertions, 5 deletions
diff --git a/ld/emultempl/mmo.em b/ld/emultempl/mmo.em
index 3bf1c5b8a8..11475751da 100644
--- a/ld/emultempl/mmo.em
+++ b/ld/emultempl/mmo.em
@@ -1,5 +1,5 @@
# This shell script emits a C file. -*- C -*-
-# Copyright 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
+# Copyright 2001, 2002, 2003, 2004, 2006 Free Software Foundation, Inc.
#
# This file is part of GLD, the Gnu Linker.
#
@@ -18,14 +18,20 @@
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
#
-# This file is sourced from generic.em
+# This file is sourced from generic.em.
cat >>e${EMULATION_NAME}.c <<EOF
-/* Need to have this define before mmix-elfnmmo, which includes
- needrelax.em which uses this name for the before_allocation function,
- normally defined in elf32.em. */
+/* Need to have this macro defined before mmix-elfnmmo, which uses the
+ name for the before_allocation function, defined in ldemul.c (for
+ the mmo "emulation") or in elf32.em (for the elf64mmix
+ "emulation"). */
#define gldmmo_before_allocation before_allocation_default
+/* We include this header *not* because we expect to handle ELF here
+ but because we re-use the map_segments function in elf-generic.em,
+ a file which is rightly somewhat ELF-centric. But this is only to
+ get a weird testcase right; ld-mmix/bpo-22, forcing ELF to be
+ output from the mmo emulation: -m mmo --oformat elf64-mmix! */
#include "elf-bfd.h"
EOF
OpenPOWER on IntegriCloud