From c9d707578e291858083028f1b4230be113d84d46 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 1 Jul 2009 16:21:36 +0000 Subject: [PATCH] * freebsd.h (Target_freebsd::do_adjust_elf_header): Use size instead of 32. --- gold/ChangeLog | 5 +++++ gold/freebsd.h | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/gold/ChangeLog b/gold/ChangeLog index efa806f2131..1c854efe288 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,8 @@ +2009-07-01 Ian Lance Taylor + + * freebsd.h (Target_freebsd::do_adjust_elf_header): Use size + instead of 32. + 2009-06-24 Ian Lance Taylor PR 10156 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::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::ehdr_size); - elfcpp::Ehdr<32, false> ehdr(view); + elfcpp::Ehdr 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 oehdr(view); oehdr.put_e_ident(e_ident); } } -- 2.30.2