~ubuntu-branches/ubuntu/precise/binutils/precise-updates

« back to all changes in this revision

Viewing changes to bfd/ChangeLog

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2011-08-11 22:51:48 UTC
  • mfrom: (1.7.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20110811225148-y61bcrw1ukl0z2k2
Tags: 2.21.53.20110810-0ubuntu1
Snapshot, taken from the trunk 20110810.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
2011-08-09  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
 
2
 
 
3
        * bfd-in.h (bfd_elf32_arm_set_target_relocs): Update prototype.
 
4
        * bfd-in2.h (bfd_elf32_arm_set_target_relocs): Likewise.
 
5
        * elf32-arm.c (elf32_arm_link_hash_table): New field.
 
6
        (elf232_arm_link_hash_table_create): Initialise new field.
 
7
        (check_use_blx): Change test depending on fix_arm1176.
 
8
        (bfd_elf32_arm_set_target_relocs): Set fix_arm1176 from
 
9
        command line options.
 
10
 
 
11
2011-08-08  Tristan Gingold  <gingold@adacore.com>
 
12
 
 
13
        * mach-o.c (struct mach_o_segment_name_xlat): Add comments.
 
14
        (segsec_names_xlat): Reorder elements.
 
15
        (bfd_mach_o_read_section_32): Fix typo.
 
16
        (bfd_mach_o_read_section_64): Fix typo.
 
17
 
 
18
2011-08-08  Tristan Gingold  <gingold@adacore.com>
 
19
 
 
20
        * mach-o.h (BFD_MACH_O_SEGNAME_SIZE): New macro.
 
21
        (BFD_MACH_O_SECTNAME_SIZE): Ditto.
 
22
        (bfd_mach_o_section): Use them.  Add next field.
 
23
        (bfd_mach_o_segment_command): Replace sections array by
 
24
        sect_head and sect_tail.
 
25
        (bfd_mach_o_get_mach_o_section): New macro.
 
26
        (bfd_mach_o_lookup_section): Remove.
 
27
        (bfd_mach_o_new_section_hook): New function.
 
28
        * mach-o.c (bfd_mach_o_normalize_section_name): Use strncmp
 
29
        instead of strcmp.
 
30
        (bfd_mach_o_convert_section_name_to_bfd): Replaces section
 
31
        parameter with segname and sectname parameters.  Adjust.
 
32
        (bfd_mach_o_append_section_to_segment): New function.  Use a
 
33
        linked list for Mach-O sections.
 
34
        (bfd_mach_o_write_segment_32): Adjust.
 
35
        (bfd_mach_o_write_segment_64): Ditto.
 
36
        (bfd_mach_o_build_commands): Fix comment.  Adjust.
 
37
        (bfd_mach_o_flatten_sections): Adjust.
 
38
        (bfd_mach_o_print_section_map): Adjust.
 
39
        (bfd_mach_o_set_section_flags_from_bfd): Ditto.
 
40
        (bfd_mach_o_new_section_hook): New function.
 
41
        (bfd_mach_o_init_section_from_mach_o): Ditto.
 
42
        (bfd_mach_o_read_section_32): Remove section parameter.
 
43
        Return a section instead.
 
44
        (bfd_mach_o_read_section_64): Ditto.
 
45
        (bfd_mach_o_read_section): Ditto.
 
46
        (bfd_mach_o_make_bfd_section): Adjust.
 
47
        (bfd_mach_o_read_segment): Adjust for new profile of
 
48
        bfd_mach_o_read_section.
 
49
        (bfd_mach_o_lookup_section): Remove.
 
50
        * mach-o-target.c (bfd_mach_o_new_section_hook): Remove.
 
51
 
 
52
2011-08-08  Tristan Gingold  <gingold@adacore.com>
 
53
 
 
54
        * mach-o.h (bfd_mach_o_version_min_command): New structure.
 
55
        (bfd_mach_o_load_command): Add version_min.
 
56
        (mach_o_data_struct): Fix comment.
 
57
        * mach-o.c (bfd_mach_o_read_version_min): New function.
 
58
        (bfd_mach_o_read_command): Handle BFD_MACH_O_LC_FUNCTION_STARTS,
 
59
        BFD_MACH_O_LC_VERSION_MIN_MACOSX and
 
60
        BFD_MACH_O_LC_VERSION_MIN_IPHONEOS.
 
61
        (bfd_mach_o_get_name_or_null): New function.
 
62
        (bfd_mach_o_get_name): Use the above new one.
 
63
        (bfd_mach_o_load_command_name): Add the above new commands.
 
64
        (bfd_mach_o_bfd_print_private_bfd_data): Display numerically
 
65
        unknown commands.  Handle BFD_MACH_O_LC_FUNCTION_STARTS,
 
66
        BFD_MACH_O_LC_VERSION_MIN_MACOSX and
 
67
        BFD_MACH_O_LC_VERSION_MIN_IPHONEOS.
 
68
 
 
69
2011-08-08  Tristan Gingold  <gingold@adacore.com>
 
70
 
 
71
        * mach-o.h: Move size macros to external.h
 
72
        Move reloc macros to reloc.h and x86-64.h.
 
73
        * mach-o-i386.c: Includes mach-o/reloc.h
 
74
        * mach-o-x86-64.c: Ditto and includes mach-o/x86-64.h
 
75
        * mach-o.c: Add includes.
 
76
        (bfd_mach_o_write_header): Use structure from external.h to convert.
 
77
        (bfd_mach_o_write_thread): Ditto.
 
78
        (bfd_mach_o_write_relocs): Ditto.
 
79
        (bfd_mach_o_write_section_32): Ditto.
 
80
        (bfd_mach_o_write_section_64): Ditto.
 
81
        (bfd_mach_o_write_segment_32): Ditto.
 
82
        (bfd_mach_o_write_segment_64): Ditto.
 
83
        (bfd_mach_o_write_symtab): Ditto.
 
84
        (bfd_mach_o_write_contents): Ditto.
 
85
        (bfd_mach_o_read_header): Ditto.
 
86
        (bfd_mach_o_read_section_32): Ditto.
 
87
        (bfd_mach_o_read_section_64): Ditto.
 
88
        (bfd_mach_o_read_symtab_symbol): Ditto.
 
89
        (bfd_mach_o_read_dylinker): Ditto.
 
90
        (bfd_mach_o_read_dylib): Ditto.
 
91
        (bfd_mach_o_read_dysymtab): Ditto.
 
92
        (bfd_mach_o_read_symtab): Ditto.
 
93
        (bfd_mach_o_read_linkedit): Ditto.
 
94
        (bfd_mach_o_read_str): Ditto.
 
95
        (bfd_mach_o_read_dyld_info): Ditto.
 
96
        (bfd_mach_o_read_segment): Ditto.
 
97
        (bfd_mach_o_read_command): Ditto.
 
98
        (bfd_mach_o_archive_p): Ditto.
 
99
        (bfd_mach_o_canonicalize_one_reloc): Ditto. Change the BUF parameter.
 
100
        (bfd_mach_o_canonicalize_relocs): Adjust to call the above function.
 
101
        (bfd_mach_o_read_dysymtab_symbol): Rename BUF variable.
 
102
        (bfd_mach_o_read_uuid): Remove useless cast.  Use a macro instead
 
103
        of an hard-coded value.
 
104
 
 
105
2011-08-08  Tristan Gingold  <gingold@adacore.com>
 
106
 
 
107
        * mach-o-x86-64.c (bfd_mach_o_x86_64_mkobject): Fix cut-and-past typos.
 
108
        (bfd_mach_o_x86_64_swap_reloc_out): Handle BFD_RELOC_32_PCREL,
 
109
        BFD_RELOC_MACH_O_X86_64_SUBTRACTOR64 and
 
110
        BFD_RELOC_MACH_O_X86_64_GOT_LOAD.  Share common code.
 
111
 
 
112
2011-08-08  Tristan Gingold  <gingold@adacore.com>
 
113
 
 
114
        * mach-o.c (bfd_mach_o_normalize_section_name): New function.
 
115
        (bfd_mach_o_convert_section_name_to_bfd): Use it.
 
116
        (bfd_mach_o_get_section_type_from_name): New function.
 
117
        (bfd_mach_o_get_section_attribute_from_name): Ditto.
 
118
        * mach-o.h (bfd_mach_o_section): Move bfdsection field at the end.
 
119
        Add comments.  Add prototypes for the above new functions.
 
120
 
 
121
2011-08-05  Mark Kettenis  <kettenis@gnu.org>
 
122
 
 
123
        * netbsd-core.c (netbsd_core_vec): Init match_priority field.
 
124
 
1
125
2011-08-05  Alan Modra  <amodra@gmail.com>
2
126
 
3
127
        * elf64-ppc.c (maybe_strip_output): New function.