Line 1... |
Line 1... |
// sparc.cc -- sparc target support for gold.
|
// sparc.cc -- sparc target support for gold.
|
|
|
// Copyright 2008, 2009, 2010 Free Software Foundation, Inc.
|
// Copyright 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
|
// Written by David S. Miller <davem@davemloft.net>.
|
// Written by David S. Miller <davem@davemloft.net>.
|
|
|
// This file is part of gold.
|
// This file is part of gold.
|
|
|
// This program is free software; you can redistribute it and/or modify
|
// This program is free software; you can redistribute it and/or modify
|
Line 401... |
Line 401... |
elfcpp::EM_SPARC, // machine_code
|
elfcpp::EM_SPARC, // machine_code
|
false, // has_make_symbol
|
false, // has_make_symbol
|
false, // has_resolve
|
false, // has_resolve
|
false, // has_code_fill
|
false, // has_code_fill
|
true, // is_default_stack_executable
|
true, // is_default_stack_executable
|
|
false, // can_icf_inline_merge_sections
|
'\0', // wrap_char
|
'\0', // wrap_char
|
"/usr/lib/ld.so.1", // dynamic_linker
|
"/usr/lib/ld.so.1", // dynamic_linker
|
0x00010000, // default_text_segment_address
|
0x00010000, // default_text_segment_address
|
64 * 1024, // abi_pagesize (overridable by -z max-page-size)
|
64 * 1024, // abi_pagesize (overridable by -z max-page-size)
|
8 * 1024, // common_pagesize (overridable by -z common-page-size)
|
8 * 1024, // common_pagesize (overridable by -z common-page-size)
|
Line 424... |
Line 425... |
elfcpp::EM_SPARCV9, // machine_code
|
elfcpp::EM_SPARCV9, // machine_code
|
false, // has_make_symbol
|
false, // has_make_symbol
|
false, // has_resolve
|
false, // has_resolve
|
false, // has_code_fill
|
false, // has_code_fill
|
true, // is_default_stack_executable
|
true, // is_default_stack_executable
|
|
false, // can_icf_inline_merge_sections
|
'\0', // wrap_char
|
'\0', // wrap_char
|
"/usr/lib/sparcv9/ld.so.1", // dynamic_linker
|
"/usr/lib/sparcv9/ld.so.1", // dynamic_linker
|
0x100000, // default_text_segment_address
|
0x100000, // default_text_segment_address
|
64 * 1024, // abi_pagesize (overridable by -z max-page-size)
|
64 * 1024, // abi_pagesize (overridable by -z max-page-size)
|
8 * 1024, // common_pagesize (overridable by -z common-page-size)
|
8 * 1024, // common_pagesize (overridable by -z common-page-size)
|
Line 3477... |
Line 3479... |
class Target_selector_sparc : public Target_selector
|
class Target_selector_sparc : public Target_selector
|
{
|
{
|
public:
|
public:
|
Target_selector_sparc()
|
Target_selector_sparc()
|
: Target_selector(elfcpp::EM_NONE, size, big_endian,
|
: Target_selector(elfcpp::EM_NONE, size, big_endian,
|
(size == 64 ? "elf64-sparc" : "elf32-sparc"))
|
(size == 64 ? "elf64-sparc" : "elf32-sparc"),
|
|
(size == 64 ? "elf64_sparc" : "elf32_sparc"))
|
{ }
|
{ }
|
|
|
Target* do_recognize(int machine, int, int)
|
Target* do_recognize(int machine, int, int)
|
{
|
{
|
switch (size)
|
switch (size)
|