* elflink.c (_bfd_elf_create_got_section): Don't abort().
authorAlexandre Oliva <aoliva@redhat.com>
Wed, 16 Aug 2000 18:02:16 +0000 (18:02 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Wed, 16 Aug 2000 18:02:16 +0000 (18:02 +0000)
Formatting fixes.
(_bfd_elf_create_dynamic_sections): Likewise.

bfd/ChangeLog
bfd/elflink.c

index 67b5e85e1d8f405f2fd5f3a33900898871f2d7b2..51cbfdf6b470cc8850727e6fa304a755e8393667 100644 (file)
@@ -1,3 +1,9 @@
+2000-08-16  Alexandre Oliva  <aoliva@redhat.com>
+
+       * elflink.c (_bfd_elf_create_got_section): Don't abort().
+       Formatting fixes.
+       (_bfd_elf_create_dynamic_sections): Likewise.
+
 2000-08-16  Andrew Macleod  <amacleod@cygnus.com>
 
        * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address
index 8039b4fe35b006f8681f975549a5d8b42a8d23e3..e9fb64d04727ce3fc22af04aec94f9c3255cc13a 100644 (file)
@@ -41,9 +41,17 @@ _bfd_elf_create_got_section (abfd, info)
 
   switch (bed->s->arch_size)
     {
-    case 32: ptralign = 2; break;
-    case 64: ptralign = 3; break;
-    default: abort();
+    case 32:
+      ptralign = 2;
+      break;
+
+    case 64:
+      ptralign = 3;
+      break;
+
+    default:
+      bfd_set_error (bfd_error_bad_value);
+      return false;
     }
 
   flags = (SEC_ALLOC | SEC_LOAD | SEC_HAS_CONTENTS | SEC_IN_MEMORY
@@ -104,9 +112,17 @@ _bfd_elf_create_dynamic_sections (abfd, info)
 
   switch (bed->s->arch_size)
     {
-    case 32: ptralign = 2; break;
-    case 64: ptralign = 3; break;
-    default: abort();
+    case 32:
+      ptralign = 2;
+      break;
+
+    case 64:
+      ptralign = 3;
+      break;
+
+    default:
+      bfd_set_error (bfd_error_bad_value);
+      return false;
     }
 
   /* We need to create .plt, .rel[a].plt, .got, .got.plt, .dynbss, and
This page took 0.031582 seconds and 4 git commands to generate.