Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/gnu/dist/binutils/bfd Adding a note section, can result in a...
details: https://anonhg.NetBSD.org/src/rev/134934953c2c
branches: trunk
changeset: 566900:134934953c2c
user: christos <christos%NetBSD.org@localhost>
date: Sun May 23 18:08:16 2004 +0000
description:
Adding a note section, can result in adding two elf segments. Account for that.
diffstat:
gnu/dist/binutils/bfd/elf.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (16 lines):
diff -r 411ca8a995dd -r 134934953c2c gnu/dist/binutils/bfd/elf.c
--- a/gnu/dist/binutils/bfd/elf.c Sun May 23 17:47:09 2004 +0000
+++ b/gnu/dist/binutils/bfd/elf.c Sun May 23 18:08:16 2004 +0000
@@ -4105,7 +4105,11 @@
&& strncmp (s->name, ".note", 5) == 0)
{
/* We need a PT_NOTE segment. */
- ++segs;
+ /*
+ * XXX: we allocate 2 here, because we can get 2 elf_segment_map's
+ * from it.
+ */
+ segs += 2;
}
}
Home |
Main Index |
Thread Index |
Old Index