aboutsummaryrefslogtreecommitdiff
path: root/gold/binary.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2008-06-05 17:29:44 +0000
committerIan Lance Taylor <ian@airs.com>2008-06-05 17:29:44 +0000
commitf0b886e312147c9e1b063bedcf35fc8eb839cb46 (patch)
tree70357077733f4bf579352f0169265114d2dad13c /gold/binary.cc
parent8d3854312650473c3244bc3c10767aa29751a754 (diff)
downloadgdb-f0b886e312147c9e1b063bedcf35fc8eb839cb46.zip
gdb-f0b886e312147c9e1b063bedcf35fc8eb839cb46.tar.gz
gdb-f0b886e312147c9e1b063bedcf35fc8eb839cb46.tar.bz2
PR 6584
* binary.cc (Binary_to_elf::sized_convert): Fix .data alignment.
Diffstat (limited to 'gold/binary.cc')
-rw-r--r--gold/binary.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/gold/binary.cc b/gold/binary.cc
index bee5157..7eb7223 100644
--- a/gold/binary.cc
+++ b/gold/binary.cc
@@ -198,16 +198,16 @@ Binary_to_elf::sized_convert(const Task* task)
this->write_section_header<size, big_endian>("", &shstrtab, elfcpp::SHT_NULL,
0, 0, 0, 0, 0,
0, 0, &pout);
- // Having the section be named ".data" and having it be writable is
- // because th GNU linker does it that way, and existing linker
- // script expect it.
+ // Having the section be named ".data", having it be writable, and
+ // giving it an alignment of 1 is because the GNU linker does it
+ // that way, and existing linker script expect it.
this->write_section_header<size, big_endian>(".data", &shstrtab,
elfcpp::SHT_PROGBITS,
(elfcpp::SHF_ALLOC
| elfcpp::SHF_WRITE),
data_offset,
filesize, 0, 0,
- align, 0, &pout);
+ 1, 0, &pout);
this->write_section_header<size, big_endian>(".symtab", &shstrtab,
elfcpp::SHT_SYMTAB,
0, symtab_offset, 4 * sym_size,