* dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2012-01-10 H.J. Lu <hongjiu.lu@intel.com>
2
3 PR ld/13581
4 * elf64-x86-64.c (elf_x86_64_relocate_section): Remove ABI_64_P
5 check on R_X86_64_PCXX.
6
7 2012-01-10 Tristan Gingold <gingold@adacore.com>
8
9 * mach-o.c (bfd_mach_o_build_commands): Avoid uninitialized false
10 warning.
11
12 2012-01-10 Tristan Gingold <gingold@adacore.com>
13
14 * bfdio.c (bfd_tell): Handle nested archives.
15 (bfd_seek): Ditto.
16 * cache.c (bfd_cache_lookup_worker): Ditto.
17 * archive.c (_bfd_get_elt_at_filepos): Remove code dealing with
18 nested archives.
19 (bfd_generic_openr_next_archived_file): Likewise.
20
21 2012-01-09 Iain Sandoe <idsandoe@googlemail.com>
22
23 * mach-o.c (bfd_mach_o_bfd_copy_private_symbol_data): Implement.
24 (bfd_mach_o_write_symtab): Remove handling for indirect syms.
25 (bfd_mach_o_primary_symbol_sort_key): Likewise.
26 (bfd_mach_o_cf_symbols): Likewise.
27 (bfd_mach_o_sort_symbol_table): Remove.
28 (bfd_mach_o_mangle_symbols): Adjust arguments, remove handling
29 for indirect and dysymtab counts. Do the symbol sorting here.
30 (bfd_mach_o_build_dysymtab_command): Count the symbol types here.
31 Make the indirect symbols a TODO.
32 (bfd_mach_o_build_commands): Adjust call to bfd_mach_o_mangle_symbols.
33 (bfd_mach_o_make_empty_symbol): Specifically flag unset symbols with
34 a non-zero value.
35 (bfd_mach_o_read_symtab_symbol): Record the symbol index.
36 (bfd_mach_o_read_symtab_symbol): Adjust recording of global status.
37 * mach-o.h (mach_o_data_struct): Remove indirect and dysymtab entries.
38 (IS_MACHO_INDIRECT): Remove.
39 (SYM_MACHO_FIELDS_UNSET, SYM_MACHO_FIELDS_NOT_VALIDATED): New.
40
41 2012-01-06 Nick Clifton <nickc@redhat.com>
42
43 PR binutils/13121
44 * reloc.c (bfd_generic_lookup_section_flags): Rename 'finfo' to
45 'flaginfo' to avoid conflicts with AIX system headers.
46
47 2012-01-06 Tristan Gingold <gingold@adacore.com>
48
49 * bfdio.c (bfd_bread): Use arelt_size macro.
50
51 2012-01-06 Tristan Gingold <gingold@adacore.com>
52
53 * config.bfd (i[3-7]86-*-darwin*): Define targ64_selvecs.
54
55 2012-01-05 Nick Clifton <nickc@redhat.com>
56
57 PR ld/12161
58 * elf32-avr.c (elf32_avr_relax_delete_bytes): Read in relocs if
59 necessary.
60
61 2012-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
62
63 Fix zero registers core files when built by gcc-4.7.
64 * elf64-x86-64.c (elf_x86_64_write_core_note): Remove variables p and
65 size. Call elfcore_write_note for the local variables. Remove the
66 final elfcore_write_note call. Add NOTREACHED comments.
67
68 2012-01-04 Tristan Gingold <gingold@adacore.com>
69
70 * mach-o.c (bfd_mach_o_fat_stat_arch_elt): New function.
71 (bfd_mach_o_generic_stat_arch_elt): Adjust.
72
73 2012-01-04 Tristan Gingold <gingold@adacore.com>
74
75 * mach-o.c (bfd_mach_o_fat_member_init): New function.
76 (bfd_mach_o_openr_next_archived_file): Reindent.
77 Adjust to call bfd_mach_o_fat_member_init.
78 (bfd_mach_o_fat_extract): Adjust to call bfd_mach_o_fat_member_init.
79
80 2012-01-04 Tristan Gingold <gingold@adacore.com>
81
82 * mach-o-x86-64.c (bfd_mach_o_x86_64_swap_reloc_out): Handle
83 BFD_RELOC_32, BFD_RELOC_MACH_O_X86_64_PCREL32_1,
84 BFD_RELOC_MACH_O_X86_64_PCREL32_2,
85 BFD_RELOC_MACH_O_X86_64_PCREL32_4,
86 BFD_RELOC_MACH_O_X86_64_BRANCH32,
87 BFD_RELOC_MACH_O_X86_64_SUBTRACTOR32,
88 BFD_RELOC_MACH_O_X86_64_GOT.
89
90 2012-01-04 Tristan Gingold <gingold@adacore.com>
91
92 * mach-o.h (bfd_mach_o_fvmlib_command): New structure.
93 (bfd_mach_o_load_command): Add fvmlib field.
94
95 * mach-o.c (bfd_mach_o_read_fvmlib): New function.
96 (bfd_mach_o_read_command): Handle fvmlib.
97
98 2012-01-04 Tristan Gingold <gingold@adacore.com>
99
100 * mach-o.c (bfd_mach_o_convert_architecture): Reindent.
101 Decode msubtype for ARM.
102
103 2012-01-04 Tristan Gingold <gingold@adacore.com>
104
105 * mach-o.c (bfd_mach_o_get_synthetic_symtab): Add comments.
106
107 2012-01-04 Tristan Gingold <gingold@adacore.com>
108
109 * mach-o.h: Reindent header.
110 (bfd_mach_o_encryption_info_command): New structure.
111 (bfd_mach_o_load_command): Add encryption_info field.
112
113 * mach-o.c (bfd_mach_o_read_encryption_info): New function.
114 (bfd_mach_o_read_command): Handle BFD_MACH_O_LC_ENCRYPTION_INFO.
115 (bfd_mach_o_read_command): Adjust error message.
116
117 2012-01-04 Shinichiro Hamaji <shinichiro.hamaji@gmail.com>
118
119 * dwarf2.c (_bfd_dwarf2_slurp_debug_info): Factor out the part
120 which reads DWARF2 and stores in stash from find_line.
121 (find_line) Call _bfd_dwarf2_slurp_debug_info.
122 * libbfd-in.h (_bfd_dwarf2_slurp_debug_info): Add declaration.
123 * libbfd.h (_bfd_dwarf2_slurp_debug_info): Regenerate.
124 * mach-o.c (dsym_subdir): The name of subdir where debug
125 information may be stored.
126 (bfd_mach_o_lookup_uuid_command): New. Lookup a load command whose
127 type is UUID.
128 (bfd_mach_o_dsym_for_uuid_p): New. Check if the specified BFD is
129 corresponding to the executable.
130 (bfd_mach_o_find_dsym): New. Find a debug information BFD in the
131 specified binary file.
132 (bfd_mach_o_follow_dsym): New. Find a debug information BFD for
133 the original BFD.
134 (bfd_mach_o_find_nearest_line): Check dSYM files for Mach-O
135 executables, dylibs, and bundles.
136 (bfd_mach_o_close_and_cleanup): Clean up BFDs for the dSYM file.
137 * mach-o.h (dsym_bfd): The BFD of the dSYM file.
138
139 2012-01-03 Iain Sandoe <idsandoe@googlemail.com>
140
141 * mach-o.c (bfd_mach_o_mangle_symbols): Put in the section index
142 for stabd symbols.
143 (bfd_mach_o_primary_symbol_sort_key): Adjust for stabs.
144 (bfd_mach_o_cf_symbols): Likewise.
145
146 2012-01-03 Iain Sandoe <idsandoe@googlemail.com>
147
148 * mach-o.c (bfd_mach_o_mangle_symbols): Correct typo.
149
150 2012-01-03 Iain Sandoe <idsandoe@googlemail.com>
151
152 * mach-o.c (bfd_mach_o_write_symtab): Fill in the string table index
153 as the value of an indirect symbol. Keep the string table index in
154 non-indirect syms for reference.
155 (bfd_mach_o_write_dysymtab): New.
156 (bfd_mach_o_primary_symbol_sort_key): New.
157 (bfd_mach_o_cf_symbols): New.
158 (bfd_mach_o_sort_symbol_table): New.
159 (bfd_mach_o_mangle_symbols): Return early if no symbols. Sort symbols.
160 If we are emitting a dysymtab, process indirect symbols and count the
161 number of each other kind.
162 (bfd_mach_o_mangle_sections): New.
163 (bfd_mach_o_write_contents): Split out some pre-requisite code into
164 the command builder. Write dysymtab if the command is present.
165 (bfd_mach_o_count_sections_for_seg): New.
166 (bfd_mach_o_build_seg_command): New.
167 (bfd_mach_o_build_dysymtab_command): New.
168 (bfd_mach_o_build_commands): Reorganize to support the fact that some
169 commands are optional and should not be emitted if there are no
170 sections or symbols.
171 (bfd_mach_o_set_section_contents): Amend comment.
172 * mach-o.h: Amend and add to comments.
173 (mach_o_data_struct): Add fields for dysymtab symbols counts and a
174 pointer to the indirects, when present.
175 (bfd_mach_o_should_emit_dysymtab): New macro.
176 (IS_MACHO_INDIRECT): Likewise.
177
178 For older changes see ChangeLog-2011
179 \f
180 Local Variables:
181 mode: change-log
182 left-margin: 8
183 fill-column: 74
184 version-control: never
185 End:
This page took 0.03315 seconds and 4 git commands to generate.