Fix compile error with use of 'typename' outside of template
* i386.cc (Target_i386::Classify_reloc::get_r_addend): Remove 'typename'.
This commit is contained in:
parent
f9498162b9
commit
41549dfbcc
2 changed files with 7 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
* i386.cc (Target_i386::Classify_reloc::get_r_addend): Remove
|
||||||
|
'typename'.
|
||||||
|
|
||||||
2016-01-12 Cary Coutant <ccoutant@gmail.com>
|
2016-01-12 Cary Coutant <ccoutant@gmail.com>
|
||||||
|
|
||||||
* arm.cc (Target_arm::Classify_reloc::get_r_addend): New method.
|
* arm.cc (Target_arm::Classify_reloc::get_r_addend): New method.
|
||||||
|
|
|
@ -743,11 +743,10 @@ class Target_i386 : public Sized_target<32, false>
|
||||||
public gold::Default_classify_reloc<elfcpp::SHT_REL, 32, false>
|
public gold::Default_classify_reloc<elfcpp::SHT_REL, 32, false>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
typedef typename Reloc_types<elfcpp::SHT_REL, 32, false>::Reloc
|
typedef Reloc_types<elfcpp::SHT_REL, 32, false>::Reloc Reltype;
|
||||||
Reltype;
|
|
||||||
|
|
||||||
// Return the explicit addend of the relocation (return 0 for SHT_REL).
|
// Return the explicit addend of the relocation (return 0 for SHT_REL).
|
||||||
static typename elfcpp::Elf_types<32>::Elf_Swxword
|
static elfcpp::Elf_types<32>::Elf_Swxword
|
||||||
get_r_addend(const Reltype*)
|
get_r_addend(const Reltype*)
|
||||||
{ return 0; }
|
{ return 0; }
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue