aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@acm.org>2007-10-16 23:51:55 +0000
committerBob Wilson <bob.wilson@acm.org>2007-10-16 23:51:55 +0000
commit73c5c7a8d60b0570c2890911f5ae062b293b19bb (patch)
treef8e5dd37aeec0c0a34469d1e3befc3c18a26f574
parent436ca963fd42564971f2906e4ba7263d513e483c (diff)
downloadfsf-binutils-gdb-73c5c7a8d60b0570c2890911f5ae062b293b19bb.zip
fsf-binutils-gdb-73c5c7a8d60b0570c2890911f5ae062b293b19bb.tar.gz
fsf-binutils-gdb-73c5c7a8d60b0570c2890911f5ae062b293b19bb.tar.bz2
* section.c (struct bfd_section): Clarify comment for rawsize field.
* bfd-in2.h: Regenerate.
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/bfd-in2.h14
-rw-r--r--bfd/section.c14
3 files changed, 19 insertions, 14 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index ef84265..06ea929 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,10 @@
2007-10-16 Bob Wilson <bob.wilson@acm.org>
+ * section.c (struct bfd_section): Clarify comment for rawsize field.
+ * bfd-in2.h: Regenerate.
+
+2007-10-16 Bob Wilson <bob.wilson@acm.org>
+
* elflink.c (_bfd_elf_check_kept_section): Use the section rawsize
values if they are set.
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index db9cd85..e425db1 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -1422,13 +1422,13 @@ typedef struct bfd_section
bfd_size_type size;
/* For input sections, the original size on disk of the section, in
- octets. This field is used by the linker relaxation code. It is
- currently only set for sections where the linker relaxation scheme
- doesn't cache altered section and reloc contents (stabs, eh_frame,
- SEC_MERGE, some coff relaxing targets), and thus the original size
- needs to be kept to read the section multiple times.
- For output sections, rawsize holds the section size calculated on
- a previous linker relaxation pass. */
+ octets. This field should be set for any section whose size is
+ changed by linker relaxation. It is required for sections where
+ the linker relaxation scheme doesn't cache altered section and
+ reloc contents (stabs, eh_frame, SEC_MERGE, some coff relaxing
+ targets), and thus the original size needs to be kept to read the
+ section multiple times. For output sections, rawsize holds the
+ section size calculated on a previous linker relaxation pass. */
bfd_size_type rawsize;
/* If this section is going to be output, then this value is the
diff --git a/bfd/section.c b/bfd/section.c
index 008d2e5..4ee6c89 100644
--- a/bfd/section.c
+++ b/bfd/section.c
@@ -413,13 +413,13 @@ CODE_FRAGMENT
. bfd_size_type size;
.
. {* For input sections, the original size on disk of the section, in
-. octets. This field is used by the linker relaxation code. It is
-. currently only set for sections where the linker relaxation scheme
-. doesn't cache altered section and reloc contents (stabs, eh_frame,
-. SEC_MERGE, some coff relaxing targets), and thus the original size
-. needs to be kept to read the section multiple times.
-. For output sections, rawsize holds the section size calculated on
-. a previous linker relaxation pass. *}
+. octets. This field should be set for any section whose size is
+. changed by linker relaxation. It is required for sections where
+. the linker relaxation scheme doesn't cache altered section and
+. reloc contents (stabs, eh_frame, SEC_MERGE, some coff relaxing
+. targets), and thus the original size needs to be kept to read the
+. section multiple times. For output sections, rawsize holds the
+. section size calculated on a previous linker relaxation pass. *}
. bfd_size_type rawsize;
.
. {* If this section is going to be output, then this value is the