aboutsummaryrefslogtreecommitdiff
path: root/gold/i386.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2006-09-27 22:53:42 +0000
committerIan Lance Taylor <iant@google.com>2006-09-27 22:53:42 +0000
commit75f65a3e309b8cd885c782f6af106d1e2a1876f6 (patch)
tree0f21c32a5e40156d007fd6a676b5d74a8c423c90 /gold/i386.cc
parent6b89cc2108a525fdc4186bae5365acc258e9c23c (diff)
downloadgdb-75f65a3e309b8cd885c782f6af106d1e2a1876f6.zip
gdb-75f65a3e309b8cd885c782f6af106d1e2a1876f6.tar.gz
gdb-75f65a3e309b8cd885c782f6af106d1e2a1876f6.tar.bz2
Finished layout code.
Diffstat (limited to 'gold/i386.cc')
-rw-r--r--gold/i386.cc16
1 files changed, 15 insertions, 1 deletions
diff --git a/gold/i386.cc b/gold/i386.cc
index 5ecd2e3..21dd57a 100644
--- a/gold/i386.cc
+++ b/gold/i386.cc
@@ -16,8 +16,22 @@ class Target_i386 : public Sized_target<32, false>
{
public:
Target_i386()
- : Sized_target<32, false>(false, false)
+ : Sized_target<32, false>(&i386_info)
{ }
+
+ private:
+ static const Target::Target_info i386_info;
+};
+
+const Target::Target_info Target_i386::i386_info =
+{
+ 32, // size
+ false, // is_big_endian
+ false, // has_make_symbol
+ false, // has_resolve,
+ 0x08048000, // text_segment_address,
+ 0x1000, // abi_pagesize
+ 0x1000 // common_pagesize
};
// The selector for i386 object files.