diff options
-rw-r--r-- | exec/exec.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/exec/exec.c b/exec/exec.c index 02c2b911..3c782cc6 100644 --- a/exec/exec.c +++ b/exec/exec.c @@ -4,7 +4,7 @@ #ifdef BFD Can exec any executable format the BFD library understands - to be for this flavor of machine. [requires nonexistent BFD support] + to be for this flavor of machine. #endif #ifdef AOUT Can exec a.out format. @@ -154,17 +154,11 @@ check_section (bfd *bfd, asection *sec, void *userdata) if (u->error) return; - if (!(sec->flags & SEC_ALLOC|SEC_LOAD) || + if (!(sec->flags & (SEC_ALLOC|SEC_LOAD)) || (sec->flags & SEC_NEVER_LOAD)) /* Nothing to do for this section. */ return; - if (sec->flags & SEC_RELOC) - { - u->error = EINVAL; - return; - } - addr = (vm_address_t) sec->vma; if (sec->flags & SEC_LOAD) |