aboutsummaryrefslogtreecommitdiff
path: root/bfd/cofflink.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1999-09-07 02:58:00 +0000
committerIan Lance Taylor <ian@airs.com>1999-09-07 02:58:00 +0000
commit2820a0b7139f155aa33c7e094826d36606c1564a (patch)
tree3d8e24d95712a5134847c956c90d5c572dd218e6 /bfd/cofflink.c
parenta33132fd8e27166b7d74ba6f96b86b3e7b73090c (diff)
downloadgdb-2820a0b7139f155aa33c7e094826d36606c1564a.zip
gdb-2820a0b7139f155aa33c7e094826d36606c1564a.tar.gz
gdb-2820a0b7139f155aa33c7e094826d36606c1564a.tar.bz2
add comment
Diffstat (limited to 'bfd/cofflink.c')
-rw-r--r--bfd/cofflink.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/bfd/cofflink.c b/bfd/cofflink.c
index 74d1a12..0b492ae 100644
--- a/bfd/cofflink.c
+++ b/bfd/cofflink.c
@@ -438,6 +438,11 @@ coff_link_add_symbols (abfd, info)
(*sym_hash)->coff_link_hash_flags |=
COFF_LINK_HASH_PE_SECTION_SYMBOL;
+ /* Limit the alignment of a common symbol to the possible
+ alignment of a section. There is no point to permitting
+ a higher alignment for a common symbol: we can not
+ guarantee it, and it may cause us to allocate extra space
+ in the common section. */
if (section == bfd_com_section_ptr
&& (*sym_hash)->root.type == bfd_link_hash_common
&& ((*sym_hash)->root.u.c.p->alignment_power