Miscellaneous ld tidies
[deliverable/binutils-gdb.git] / ld / ChangeLog
1 2014-01-22 Alan Modra <amodra@gmail.com>
2
3 * ld.h (struct map_symbol_def): Move to..
4 * ldlang.h: ..here.
5 * ldlang.c (print_assignment): Don't set expld.assign_name to dot.
6
7 2014-01-22 Alan Modra <amodra@gmail.com>
8
9 * ld.texinfo (Output Section Discarding): Mention assigning to dot
10 as a way of keeping otherwise empty sections.
11 * ldexp.c (is_dot, is_value, is_sym_value, is_dot_ne_0,
12 is_dot_plus_0, is_align_conditional): New predicates.
13 (exp_fold_tree_1): Set SEC_KEEP when assigning to dot inside an
14 output section, except for some special cases.
15 * scripttempl/elfmicroblaze.sc: Use canonical form to align at
16 end of .heap and .stack.
17
18 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
19
20 * emulparams/aarch64linuxb.sh (ELF_INTERPRETER_NAME): Define.
21
22 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
23
24 * emulparams/aarch64linux.sh (ELF_INTERPRETER_NAME): Define.
25
26 2014-01-20 Alan Modra <amodra@gmail.com>
27
28 * ldlang.h (struct lang_definedness_hash_entry): Add by_object and
29 by_script. Make iteration a single bit field.
30 (lang_track_definedness, lang_symbol_definition_iteration): Delete.
31 (lang_symbol_defined): Declare.
32 * ldlang.c (lang_statement_iteration): Expand comment a little.
33 (lang_init <lang_definedness_table>): Make it bigger.
34 (lang_track_definedness, lang_symbol_definition): Delete.
35 (lang_definedness_newfunc): Update.
36 (lang_symbol_defined): New function.
37 (lang_update_definedness): Create entries here. Do track whether
38 script definition of symbol is valid, even when also defined in
39 an object file.
40 * ldexp.c (fold_name <DEFINED>): Update.
41 (fold_name <NAME>): Allow self-assignment for absolute symbols
42 defined in a linker script.
43
44 2014-01-20 Guy Martin <gmsoft@tuxicoman.be>
45 Alan Modra <amodra@gmail.com>
46
47 * ldlang.h (lang_output_section_get): Define.
48 * ldlang.c (lang_output_section_get): Likewise.
49 (init_os): Set the output_section userdata to the output
50 section statement.
51 * emultempl/hppaelf.em: Use lang_output_section_get instead of
52 lang_output_section_find where applicable.
53 * emultempl/aarch64elf.em: Likewise.
54 * emultempl/aix.em: Likewise.
55 * emultempl/armelf.em: Likewise.
56 * emultempl/m68hc1xelf.em: Likewise.
57 * emultempl/metagelf.em: Likewise.
58 * emultempl/mipself.em: Likewise.
59 * emultempl/ppc64elf.em: Likewise.
60 * emultempl/spuelf.em: Likewise.
61
62 2014-01-17 Alan Modra <amodra@gmail.com>
63
64 * genscripts.sh (COMPILE_IN): Don't set if already set.
65 * emulparams/nds32elf.sh: Don't clear EMULATION_LIBPATH, set
66 COMPILE_IN=no.
67 * emulparams/nds32elf16m.sh: Likewise.
68 * emulparams/nds32elf_linux.sh: Likewise.
69 * emultempl/aix.em: Test COMPILE_IN value is "yes".
70 * emultempl/armcoff.em: Likewise.
71 * emultempl/elf32.em: Likewise.
72 * emultempl/generic.em: Likewise.
73 * emultempl/gld960.em: Likewise.
74 * emultempl/gld960c.em: Likewise.
75 * emultempl/linux.em: Likewise.
76 * emultempl/lnk960.em: Likewise.
77 * emultempl/m68kcoff.em: Likewise.
78 * emultempl/sunos.em: Likewise.
79 * emultempl/ticoff.em: Likewise.
80
81 2014-01-16 H.J. Lu <hongjiu.lu@intel.com>
82
83 PR ld/16456
84 * genscripts.sh: Don't search directory with LIBPATH_SUFFIX_SKIP
85 suffix.
86 * emulparams/elf32_x86_64.sh (LIBPATH_SUFFIX_SKIP): Set to 64
87 for elf32_x86_64 emulation.
88 * emulparams/elf_i386.sh (LIBPATH_SUFFIX_SKIP): Set to 64
89 for elf_i386 emulation.
90
91 2014-01-16 Alan Modra <amodra@gmail.com>
92
93 * ld.h (fat_section_userdata_type, get_userdata): Move to..
94 * ldlang.h (input_section_userdata_type, get_userdata): ..here.
95 * ldlang.c (init_map_userdata): Delete. Fold into..
96 (sort_def_symbol): ..here. Don't attach input section userdata
97 to output sections or global bfd sections.
98 (lang_map): Don't pre-allocate input section userdata.
99 (init_os): Don't allocate userdata for output sections.
100 (print_all_symbols): Update.
101
102 2014-01-15 H.J. Lu <hongjiu.lu@intel.com>
103
104 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
105 Silence uninitialized warning on ehdr_start_save with older
106 GCC.
107
108 2014-01-15 Alan Modra <amodra@gmail.com>
109
110 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Define
111 __ehdr_start before size_dynamic_sections and restore afterwards.
112
113 2014-01-10 Alan Modra <amodra@gmail.com>
114
115 PR ld/14207
116 PR ld/16322
117 PR binutils/16323
118 * ldlang.c (lang_size_sections): Remove unneeded RELRO base
119 adjust. Tidy comments.
120 * ld.texinfo (DATA_SEGMENT_RELRO_END): Correct description.
121
122 2014-01-10 Hans-Peter Nilsson <hp@axis.com>
123
124 * emulparams/crislinux.sh (COMMONPAGESIZE): Define.
125
126 2014-01-08 H.J. Lu <hongjiu.lu@intel.com>
127
128 PR ld/14207
129 PR ld/16322
130 PR binutils/16323
131 * ldlang.c (lang_size_sections): Properly align RELRO base.
132
133 2014-01-08 H.J. Lu <hongjiu.lu@intel.com>
134
135 * ldver.c (ldversion): Update copyright year to 2014.
136
137 For older changes see ChangeLog-2013
138 \f
139 Copyright (C) 2014 Free Software Foundation, Inc.
140
141 Copying and distribution of this file, with or without modification,
142 are permitted in any medium without royalty provided the copyright
143 notice and this notice are preserved.
144
145 Local Variables:
146 mode: change-log
147 left-margin: 8
148 fill-column: 74
149 version-control: never
150 End:
This page took 0.057342 seconds and 5 git commands to generate.