forked from Imagelibrary/binutils-gdb
* 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
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user