diff options
author | Steve Chamberlain <sac@cygnus> | 1992-07-16 15:12:28 +0000 |
---|---|---|
committer | Steve Chamberlain <sac@cygnus> | 1992-07-16 15:12:28 +0000 |
commit | b58e918004cd90daee6e48bffa5ae1753a9c674e (patch) | |
tree | 1ee2df97fe0c5d2649c9ab9f477b1b232e9bfb5a | |
parent | 169788ef7be9dfd1d4554342259570d2b74b0390 (diff) | |
download | gdb-b58e918004cd90daee6e48bffa5ae1753a9c674e.zip gdb-b58e918004cd90daee6e48bffa5ae1753a9c674e.tar.gz gdb-b58e918004cd90daee6e48bffa5ae1753a9c674e.tar.bz2 |
* bfd-in.h : add BFD_IS_RELAXABLE flag
* bout.c (bout_swap_exec_header_[in_out]): new field in exec
header e_relaxable, major hackery in callbacks
* libaout.h : add space for a_relaxable.
* seclet.c (rel): don't relax empty sections
-rw-r--r-- | bfd/ChangeLog | 9 | ||||
-rw-r--r-- | bfd/seclet.c | 3 |
2 files changed, 11 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index aa33fb1..42e0086 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,12 @@ +Thu Jul 16 08:08:25 1992 Steve Chamberlain (sac@thepub.cygnus.com) + + * bfd-in.h : add BFD_IS_RELAXABLE flag + * bout.c (bout_swap_exec_header_[in_out]): new field in exec + header e_relaxable, major hackery in callbacks + * libaout.h : add space for a_relaxable. + * seclet.c (rel): don't relax empty sections + + Wed Jul 15 07:57:46 1992 Steve Chamberlain (sac@thepub.cygnus.com) * section.c (STD_SECTION): add some casts to the initializers for diff --git a/bfd/seclet.c b/bfd/seclet.c index e16fa28..e7fb65c 100644 --- a/bfd/seclet.c +++ b/bfd/seclet.c @@ -59,7 +59,8 @@ DEFUN(rel,(abfd, seclet, output_section), { if (output_section->flags & SEC_HAS_CONTENTS - && !(output_section->flags & SEC_NEVER_LOAD)) + && !(output_section->flags & SEC_NEVER_LOAD) + && seclet->size) { bfd_byte *data = (bfd_byte *)alloca(seclet->size); data = bfd_get_relocated_section_contents(abfd, seclet, data); |