Properly set arm-specific elf flags wrt hardfp.
authorHan Shen <shenhan@google.com>
Thu, 16 Jul 2015 22:59:16 +0000 (15:59 -0700)
committerHan Shen <shenhan@google.com>
Mon, 20 Jul 2015 18:50:10 +0000 (11:50 -0700)
gold/ChangeLog:
* arm.cc (Target_arm::do_adjust_elf_header): Set flags into view.

gold/ChangeLog
gold/arm.cc

index 596c1d7a942a8fcc734dd7b1cef4f4b10e6a93cd..41e32da3357e830c94ad03ccd6a158635e9c27a0 100644 (file)
@@ -1,3 +1,9 @@
+2015-07-20  Han Shen  <shenhan@google.com>
+
+       Fix arm elf header flags wrt hardfp bit.
+
+       * arm.cc (Target_arm::do_adjust_elf_header): Set flags into view.
+
 2015-07-20  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR gold/18689
index ec8b89d2f30b01847ea0913fe15f2f091eaf8f30..621b28e4c26f18cd37cf31e4a022d2bc8f1366a3 100644 (file)
@@ -10556,6 +10556,7 @@ Target_arm<big_endian>::do_adjust_elf_header(
   }
   elfcpp::Ehdr_write<32, big_endian> oehdr(view);
   oehdr.put_e_ident(e_ident);
+  oehdr.put_e_flags(this->processor_specific_flags());
 }
 
 // do_make_elf_object to override the same function in the base class.