aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2000-08-16 18:02:16 +0000
committerAlexandre Oliva <aoliva@redhat.com>2000-08-16 18:02:16 +0000
commitbb0deeff61737e12de88783f050507c3a7b3785b (patch)
tree871b196d1d87d7d4a487360c5416c51992c54a0d /bfd
parentc2158c24331a0217a9abbcff41a7a80734d92c46 (diff)
downloadgdb-bb0deeff61737e12de88783f050507c3a7b3785b.zip
gdb-bb0deeff61737e12de88783f050507c3a7b3785b.tar.gz
gdb-bb0deeff61737e12de88783f050507c3a7b3785b.tar.bz2
* elflink.c (_bfd_elf_create_got_section): Don't abort().
Formatting fixes. (_bfd_elf_create_dynamic_sections): Likewise.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog6
-rw-r--r--bfd/elflink.c28
2 files changed, 28 insertions, 6 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 67b5e85..51cbfdf 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -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
diff --git a/bfd/elflink.c b/bfd/elflink.c
index 8039b4f..e9fb64d 100644
--- a/bfd/elflink.c
+++ b/bfd/elflink.c
@@ -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