Commit | Line | Data |
---|---|---|
0a65a3a7 CC |
1 | 2008-03-24 Cary Coutant <ccoutant@google.com> |
2 | ||
3 | * i386.cc (Target_i386::Got_type): New enum declaration. | |
4 | (Target_i386::Scan::local): Updated callers of Output_data_got | |
5 | member functions. | |
6 | (Target_i386::Scan::global): Likewise. | |
7 | (Target_i386::Relocate::relocate): Likewise. | |
8 | (Target_i386::Relocate::relocate_tls): Likewise. | |
9 | * object.h (Got_offset_list): New class. | |
10 | (Sized_relobj::local_has_got_offset): Added got_type parameter. | |
11 | (Sized_relobj::local_got_offset): Likewise. | |
12 | (Sized_relobj::set_local_got_offset): Likewise. | |
13 | (Sized_relobj::local_has_tls_got_offset): Removed. | |
14 | (Sized_relobj::local_tls_got_offset): Removed. | |
15 | (Sized_relobj::set_local_tls_got_offset): Removed. | |
16 | (Sized_relobj::Local_got_offsets): Changed to store a list of offsets. | |
17 | * output.cc (Output_data_got::add_global): Added got_type parameter. | |
18 | (Output_data_got::add_global_with_rel): Likewise. | |
19 | (Output_data_got::add_global_with_rela): Likewise. | |
20 | (Output_data_got::add_global_pair_with_rel): New function. | |
21 | (Output_data_got::add_global_pair_with_rela): New function. | |
22 | (Output_data_got::add_local): Added got_type parameter. | |
23 | (Output_data_got::add_local_with_rel): Likewise. | |
24 | (Output_data_got::add_local_with_rela): Likewise. | |
25 | (Output_data_got::add_local_pair_with_rel): New function. | |
26 | (Output_data_got::add_local_pair_with_rela): New function. | |
27 | (Output_data_got::add_global_tls): Removed. | |
28 | (Output_data_got::add_global_tls_with_rel): Removed. | |
29 | (Output_data_got::add_global_tls_with_rela): Removed. | |
30 | (Output_data_got::add_local_tls): Removed. | |
31 | (Output_data_got::add_local_tls_with_rel): Removed. | |
32 | (Output_data_got::add_local_tls_with_rela): Removed. | |
33 | * output.h (Output_data_got::add_global): Added got_type parameter. | |
34 | (Output_data_got::add_global_with_rel): Likewise. | |
35 | (Output_data_got::add_global_with_rela): Likewise. | |
36 | (Output_data_got::add_global_pair_with_rel): New function. | |
37 | (Output_data_got::add_global_pair_with_rela): New function. | |
38 | (Output_data_got::add_local): Added got_type parameter. | |
39 | (Output_data_got::add_local_with_rel): Likewise. | |
40 | (Output_data_got::add_local_with_rela): Likewise. | |
41 | (Output_data_got::add_local_pair_with_rel): New function. | |
42 | (Output_data_got::add_local_pair_with_rela): New function. | |
43 | (Output_data_got::add_global_tls): Removed. | |
44 | (Output_data_got::add_global_tls_with_rel): Removed. | |
45 | (Output_data_got::add_global_tls_with_rela): Removed. | |
46 | (Output_data_got::add_local_tls): Removed. | |
47 | (Output_data_got::add_local_tls_with_rel): Removed. | |
48 | (Output_data_got::add_local_tls_with_rela): Removed. | |
49 | * resolve.cc (Symbol::override_base_with_special): Removed | |
50 | reference to has_got_offset_ field. | |
51 | * symtab.cc (Symbol::init_fields): Replaced initialization | |
52 | of got_offset_ with got_offsets_. Removed initialization | |
53 | of has_got_offset_ | |
54 | *symtab.h (Symbol::has_got_offset): Aded got_type parameter. | |
55 | (Symbol::got_offset): Likewise. | |
56 | (Symbol::set_got_offset): Likewise. | |
57 | (Symbol::has_tls_got_offset): Removed. | |
58 | (Symbol::tls_got_offset): Removed. | |
59 | (Symbol::set_tls_got_offset): Removed. | |
60 | (Symbol::got_offset_): Removed. | |
61 | (Symbol::tls_mod_got_offset_): Removed. | |
62 | (Symbol::tls_pair_got_offset_): Removed. | |
63 | (Symbol::got_offsets_): New field. | |
64 | (Symbol::has_got_offset): Removed. | |
65 | (Symbol::has_tls_mod_got_offset): Removed. | |
66 | (Symbol::has_tls_pair_got_offset): Removed. | |
67 | * x86_64.cc (Target_x86_64::Got_type): New enum declaration. | |
68 | (Target_x86_64::Scan::local): Updated callers of Output_data_got | |
69 | member functions. | |
70 | (Target_x86_64::Scan::global): Likewise. | |
71 | (Target_x86_64::Relocate::relocate): Likewise. | |
72 | (Target_x86_64::Relocate::relocate_tls): Likewise. | |
73 | ||
bd52eafb BE |
74 | 2008-03-25 Ben Elliston <bje@au.ibm.com> |
75 | ||
76 | * yyscript.y: Fix spelling error in comment. | |
77 | ||
8b105e34 ILT |
78 | 2008-03-24 Ian Lance Taylor <iant@google.com> |
79 | ||
8ed814a9 ILT |
80 | * options.h (class General_options): Define build_id option. |
81 | * layout.h (class Layout): Declare write_build_id, create_note, | |
82 | create_build_id. Add build_id_note_ member. | |
83 | * layout.cc: Include <cerrno>, <fcntl.h>, <unistd.h>, | |
84 | "libiberty.h", "md5.h", "sha1.h". | |
85 | (Layout::Layout): Initialize eh_frame_data_, | |
86 | eh_frame_hdr_section_, and build_id_note_. | |
87 | (Layout::finalize): Call create_build_id. | |
88 | (Layout::create_note): New function, broken out of | |
89 | Layout::create_gold_note. | |
90 | (Layout::create_gold_note): Call create_note. | |
91 | (Layout::create_build_id): New function. | |
92 | (Layout::write_build_id): New function. | |
93 | (Close_task_runner::run): Call write_build_id. | |
94 | ||
8b105e34 ILT |
95 | * x86_64.cc: Correct license to GPLv3. |
96 | ||
086a1841 ILT |
97 | 2008-03-23 Ian Lance Taylor <iant@google.com> |
98 | ||
99 | * options.cc: Include "demangle.h". | |
100 | (parse_optional_string): New function. | |
101 | (parse_long_option): Handle takes_optional_argument. | |
102 | (parse_short_option): Update dash_z initializer. Handle | |
103 | takes_optional_argument. | |
104 | (General_options::General_options): Initialize do_demangle_. | |
105 | (General_options::finalize): Set do_demangle_. Handle demangling | |
106 | style. | |
107 | * options.h (parse_optional_string): Declare. | |
108 | (struct One_option): Add optional_arg field. Update constructor. | |
109 | Update call constructor calls. Add takes_optional_argument | |
110 | function. | |
111 | (DEFINE_var): Add optional_arg__ parameter. Change all callers. | |
112 | (DEFINE_optional_string): Define. | |
113 | (General_options::demangle): Change from DEFINE_bool to | |
114 | DEFINE_optional_string. | |
115 | (General_options::no_demangle): New function. | |
116 | (General_options::do_demangle): New function. | |
117 | (General_options::set_do_demangle): New function. | |
118 | (General_options::execstack_status_): Move definition to end of | |
119 | class definition. | |
120 | (General_options::static_): Likewise. | |
121 | (General_options::do_demangle_): New field. | |
122 | * object.cc (big_endian>::get_symbol_location_info): Call | |
123 | Options::do_demangle, not Options::demangle. | |
124 | * symtab.cc (demangle): Likewise. | |
125 | ||
cbb93e63 ILT |
126 | 2008-03-22 Ian Lance Taylor <iant@google.com> |
127 | ||
128 | * gold.h: Include <cstddef> and <sys/types.h> | |
129 | * options.h: Include <cstring>. | |
130 | ||
ec531623 ILT |
131 | 2008-03-21 Ian Lance Taylor <iant@google.com> |
132 | ||
133 | * Added source code to GNU binutils. | |
134 |