* elf-hppa.h (elf_hppa_final_write_processing): Turn on TRAPNIL.
authorJeff Law <law@redhat.com>
Thu, 16 Sep 1999 21:01:08 +0000 (21:01 +0000)
committerJeff Law <law@redhat.com>
Thu, 16 Sep 1999 21:01:08 +0000 (21:01 +0000)
bfd/ChangeLog
bfd/elf-hppa.h

index 95c0254d34fb317df11c73c12bad80b8a9e4e758..572cbca2a88be508223f4e3c51fbef15cf7c63ab 100644 (file)
@@ -5,6 +5,8 @@ Thu Sep 16 11:21:13 1999  Catherine Moore  <clm@cygnus.com>
 
 Thu Sep 16 10:48:17 1999  Jeffrey A Law  (law@cygnus.com)
 
+       * elf-hppa.h (elf_hppa_final_write_processing): Turn on TRAPNIL.
+
        * elf-hppa.h (elf_hppa_final_link): If unable to find __gp in the
        symbol table, then just compute a suitable value (but do not
        create a __gp symbol).
index 900247ce3a3a78aab17c3994fcfa0e02f55756f6..99cc17e51f5d418175519016a22328b1cd4b3570 100644 (file)
@@ -656,7 +656,13 @@ elf_hppa_final_write_processing (abfd, linker)
   else if (mach == 20)
     elf_elfheader (abfd)->e_flags |= EFA_PARISC_2_0;
   else if (mach == 25)
-    elf_elfheader (abfd)->e_flags |= EF_PARISC_WIDE | EFA_PARISC_2_0;
+    elf_elfheader (abfd)->e_flags |= (EF_PARISC_WIDE
+                                     | EFA_PARISC_2_0
+                                     /* The GNU tools have trapped without
+                                        option since 1993, so need to take
+                                        a step backwards with the ELF
+                                        based toolchains.  */
+                                     | EF_PARISC_TRAPNIL);
 }
 
 /* Return true if SYM represents a local label symbol.  */