summaryrefslogtreecommitdiff
path: root/bfd/elflink.c
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
commit2ac7cc355c6e26277d540214df9cf0a7670a6bba (patch)
treea12ed49ced9200afd5a0ba388a35b5550327f48d /bfd/elflink.c
parentc99bc18027d1fd77ed0b525e14ec22cfcbf8c953 (diff)
downloadbinutils-redhat-2ac7cc355c6e26277d540214df9cf0a7670a6bba.tar.gz
* elflink.c (_bfd_elf_create_got_section): Don't abort().
Formatting fixes. (_bfd_elf_create_dynamic_sections): Likewise.
Diffstat (limited to 'bfd/elflink.c')
-rw-r--r--bfd/elflink.c28
1 files changed, 22 insertions, 6 deletions
diff --git a/bfd/elflink.c b/bfd/elflink.c
index 8039b4fe35..e9fb64d047 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