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