summaryrefslogtreecommitdiff
path: root/bfd/section.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2000-07-10 02:05:40 +0000
committerAlan Modra <amodra@bigpond.net.au>2000-07-10 02:05:40 +0000
commit75aa46f1262aa8b545e60b10e9e7b7a96c8846bd (patch)
treefe0bcefd0ecb15a8d17b9092d06ae1be0153d655 /bfd/section.c
parentfecf9d47f81fb9d75105c2fa645dde864482ad62 (diff)
downloadbinutils-redhat-75aa46f1262aa8b545e60b10e9e7b7a96c8846bd.tar.gz
Avoid negative section sequence ids.
Diffstat (limited to 'bfd/section.c')
-rw-r--r--bfd/section.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bfd/section.c b/bfd/section.c
index 3b5162983e..9006d195f8 100644
--- a/bfd/section.c
+++ b/bfd/section.c
@@ -552,8 +552,8 @@ static const asymbol global_syms[] =
#define STD_SECTION(SEC, FLAGS, SYM, NAME, IDX) \
const asymbol * const SYM = (asymbol *) &global_syms[IDX]; \
const asection SEC = \
- /* name, id, index, next, flags, user_set_vma, reloc_done, */ \
- { NAME, -1-(IDX), 0, NULL, FLAGS, 0, 0, \
+ /* name, id, index, next, flags, user_set_vma, reloc_done, */ \
+ { NAME, IDX, 0, NULL, FLAGS, 0, 0, \
\
/* linker_mark, gc_mark, vma, lma, _cooked_size, _raw_size, */ \
0, 0, 0, 0, 0, 0, \
@@ -693,7 +693,7 @@ bfd_make_section_anyway (abfd, name)
bfd *abfd;
const char *name;
{
- static int section_id = 0;
+ static int section_id = 0x10; /* id 0 to 3 used by STD_SECTION. */
asection *newsect;
asection **prev = &abfd->sections;
asection *sect = abfd->sections;