aboutsummaryrefslogtreecommitdiff
path: root/bfd/seclet.c
diff options
context:
space:
mode:
authorSteve Chamberlain <sac@cygnus>1992-05-26 23:53:00 +0000
committerSteve Chamberlain <sac@cygnus>1992-05-26 23:53:00 +0000
commitab98fd5dbc5623f4905267b02a02a83d3401ee0a (patch)
tree3c4e17171a9336a33b3de0414fb7174e96870fad /bfd/seclet.c
parentd312e231b5eabbc1f7071ca3aabafada2e52b97f (diff)
downloadgdb-ab98fd5dbc5623f4905267b02a02a83d3401ee0a.zip
gdb-ab98fd5dbc5623f4905267b02a02a83d3401ee0a.tar.gz
gdb-ab98fd5dbc5623f4905267b02a02a83d3401ee0a.tar.bz2
* coff-a29k.c: do byte relocs correctly
* coffcode.h (styp_to_sec_flags): never load INFO sections * seclet.c (rel): don't relocate INFO sections
Diffstat (limited to 'bfd/seclet.c')
-rw-r--r--bfd/seclet.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/seclet.c b/bfd/seclet.c
index d13d683..e16fa28 100644
--- a/bfd/seclet.c
+++ b/bfd/seclet.c
@@ -58,7 +58,8 @@ DEFUN(rel,(abfd, seclet, output_section),
asection *output_section)
{
- if (output_section->flags & SEC_HAS_CONTENTS )
+ if (output_section->flags & SEC_HAS_CONTENTS
+ && !(output_section->flags & SEC_NEVER_LOAD))
{
bfd_byte *data = (bfd_byte *)alloca(seclet->size);
data = bfd_get_relocated_section_contents(abfd, seclet, data);