diff options
author | Ian Lance Taylor <ian@airs.com> | 1994-01-07 20:43:55 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1994-01-07 20:43:55 +0000 |
commit | a5a835ffd8df3acb830d3b250bf7c264dc0d9822 (patch) | |
tree | f6de421247f2b6aa073adab3adfc090120339eb0 /bfd/ecoff.c | |
parent | 17d059d413c79a6e4b4bf0cd4524287005b16464 (diff) | |
download | gdb-a5a835ffd8df3acb830d3b250bf7c264dc0d9822.zip gdb-a5a835ffd8df3acb830d3b250bf7c264dc0d9822.tar.gz gdb-a5a835ffd8df3acb830d3b250bf7c264dc0d9822.tar.bz2 |
* ecoff.c (ecoff_mkobject_hook): Don't set SEC_SHARED_LIBRARY flag
for .reginfo section here.
(ecoff_new_section_hook): Set it here instead.
Diffstat (limited to 'bfd/ecoff.c')
-rw-r--r-- | bfd/ecoff.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bfd/ecoff.c b/bfd/ecoff.c index e2f2319..1e4cb3f 100644 --- a/bfd/ecoff.c +++ b/bfd/ecoff.c @@ -113,8 +113,6 @@ ecoff_mkobject_hook (abfd, filehdr, aouthdr) regsec = bfd_make_section (abfd, REGINFO); if (regsec == NULL) return NULL; - /* Tell the linker to leave this section completely alone. */ - regsec->flags = SEC_SHARED_LIBRARY; if (internal_a != (struct internal_aouthdr *) NULL) { @@ -174,7 +172,11 @@ ecoff_new_section_hook (abfd, section) section->flags |= SEC_ALLOC; else if (strcmp (section->name, REGINFO) == 0) { - section->flags |= SEC_HAS_CONTENTS | SEC_NEVER_LOAD; + /* Setting SEC_SHARED_LIBRARY should make the linker leave the + section completely alone. */ + section->flags |= (SEC_SHARED_LIBRARY + | SEC_HAS_CONTENTS + | SEC_NEVER_LOAD); section->_raw_size = sizeof (struct ecoff_reginfo); } |