summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1995-02-09 06:01:54 +0000
committerRoland McGrath <roland@gnu.org>1995-02-09 06:01:54 +0000
commit00896b8ce45fb527d5e922a618613846a143b5d3 (patch)
tree04f108b4cd833e2ae3aff5d50fbd4e022e35e11e
parent8d44b964aef85ed64616ec99365d92011ebaa073 (diff)
(check_section): Don't check SEC_RELOC flag.
-rw-r--r--exec/exec.c10
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)