2006-09-08 H.J. Lu <hongjiu.lu@intel.com>
[binutils.git] / gold / i386.cc
blob5ecd2e333523f5f25ff4bdb7fbe6b8b2bf5b0611
1 // i386.cc -- i386 target support for gold.
3 #include "gold.h"
4 #include "elfcpp.h"
5 #include "target.h"
6 #include "target-select.h"
8 namespace
11 using namespace gold;
13 // The i386 target class.
15 class Target_i386 : public Sized_target<32, false>
17 public:
18 Target_i386()
19 : Sized_target<32, false>(false, false)
20 { }
23 // The selector for i386 object files.
25 class Target_selector_i386 : public Target_selector
27 public:
28 Target_selector_i386()
29 : Target_selector(elfcpp::EM_386, 32, false)
30 { }
32 Target*
33 recognize(int machine, int osabi, int abiversion) const;
36 // Recognize an i386 object file when we already know that the machine
37 // number is EM_386.
39 Target*
40 Target_selector_i386::recognize(int, int, int) const
42 return new Target_i386();
45 Target_selector_i386 target_selector_i386;
47 } // End anonymous namespace.