summaryrefslogtreecommitdiff
path: root/gold/freebsd.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2009-07-01 16:21:36 +0000
committerIan Lance Taylor <ian@airs.com>2009-07-01 16:21:36 +0000
commitc9d707578e291858083028f1b4230be113d84d46 (patch)
tree17df0a9a2cd05a4994f3e75dcc691ad5e2865664 /gold/freebsd.h
parentd70e31dd87284c541b3d67001e5cdcd16c8b3ac7 (diff)
downloadbinutils-gdb-c9d707578e291858083028f1b4230be113d84d46.tar.gz
* freebsd.h (Target_freebsd::do_adjust_elf_header): Use size
instead of 32.
Diffstat (limited to 'gold/freebsd.h')
-rw-r--r--gold/freebsd.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/gold/freebsd.h b/gold/freebsd.h
index f98efafe470..de697357f41 100644
--- a/gold/freebsd.h
+++ b/gold/freebsd.h
@@ -68,15 +68,15 @@ Target_freebsd<size, big_endian>::do_adjust_elf_header(unsigned char* view,
{
if (this->osabi_ != elfcpp::ELFOSABI_NONE)
{
- gold_assert(len == elfcpp::Elf_sizes<32>::ehdr_size);
+ gold_assert(len == elfcpp::Elf_sizes<size>::ehdr_size);
- elfcpp::Ehdr<32, false> ehdr(view);
+ elfcpp::Ehdr<size, false> ehdr(view);
unsigned char e_ident[elfcpp::EI_NIDENT];
memcpy(e_ident, ehdr.get_e_ident(), elfcpp::EI_NIDENT);
e_ident[elfcpp::EI_OSABI] = this->osabi_;
- elfcpp::Ehdr_write<32, false> oehdr(view);
+ elfcpp::Ehdr_write<size, false> oehdr(view);
oehdr.put_e_ident(e_ident);
}
}