aboutsummaryrefslogtreecommitdiff
path: root/bfd/seclet.c
diff options
context:
space:
mode:
authorSteve Chamberlain <sac@cygnus>1992-05-04 23:42:03 +0000
committerSteve Chamberlain <sac@cygnus>1992-05-04 23:42:03 +0000
commit2cfd05621b47ac1b59e751533289e255b85e2ae5 (patch)
tree11da4e41cfa561dd760bada29c6657a27890f214 /bfd/seclet.c
parentbfbdc80f0adfc6000accbc468ed1764f5aeb8aae (diff)
downloadgdb-2cfd05621b47ac1b59e751533289e255b85e2ae5.zip
gdb-2cfd05621b47ac1b59e751533289e255b85e2ae5.tar.gz
gdb-2cfd05621b47ac1b59e751533289e255b85e2ae5.tar.bz2
* bfd-in.h: bump version to 1.96
Major change; changed calling convention for bfd_get_relocated_section_contents so that caller allocates memory for section data. * coffcode.h (bfd_coff_get_relocated_section_contents), reloc.c, seclet.c, targets.c, bfd.c: reflect new convention. * coffcode.h (styp_to_sec_flags): if styp_flags is not a special case, then use reasonable default values for SEC_* flags.
Diffstat (limited to 'bfd/seclet.c')
-rw-r--r--bfd/seclet.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/bfd/seclet.c b/bfd/seclet.c
index e030488..871b26f 100644
--- a/bfd/seclet.c
+++ b/bfd/seclet.c
@@ -57,10 +57,11 @@ DEFUN(rel,(abfd, seclet, output_section),
bfd_seclet_type *seclet AND
asection *output_section)
{
- bfd_byte *data;
+
if (output_section->flags & SEC_HAS_CONTENTS )
{
- data = bfd_get_relocated_section_contents(abfd, seclet);
+ bfd_byte *data = alloca(seclet->size);
+ data = bfd_get_relocated_section_contents(abfd, seclet, data);
if(bfd_set_section_contents(abfd,
output_section,
data,
@@ -69,6 +70,7 @@ DEFUN(rel,(abfd, seclet, output_section),
{
abort();
}
+
}
}