1 2012-03-14 Alan Modra <amodra@gmail.com>
4 * ldexp.c (fold_name): Ignore undefined symbols when assigning to
6 (exp_fold_tree_1): Evaluate assignment to dot expressions even when
7 discarding result, for side effects. Fix typo in error message.
9 2012-03-08 Tristan Gingold <gingold@adacore.com>
11 * ldexp.c (exp_print_tree): Special case for SEGMENT_START.
12 (exp_print_token): Constify.
14 2012-03-08 Alan Modra <amodra@gmail.com>
17 * ldfile.c (is_sysrooted_pathname): Remove notsame param.
18 (ldfile_add_library_path): Don't set sysrooted flag.
19 (ldfile_open_file_search): Likewise, and don't copy them.
20 (try_open): Delete exten and code handling such. Add sysrooted
21 param and return whether path is in sysroot.
22 (ldfile_find_command_file): Delete extend param. Add sysrooted
23 param. Rename local var. Update try_open calls.
24 (ldfile_open_command_file_1): Pass sysrooted to lex_push_file.
25 * ldfile.h (search_dirs_type): Remove sysrooted field.
26 * ldlang.c (new_afile): Always set sysrooted from input_flags.
27 (load_symbols): Don't set input_flags.sysrooted.
28 * ldlang.h (struct lang_input_statement_flags): Revise sysrooted
30 * ldlex.h (lex_push_file): Update prototype.
31 * ldlex.l (sysrooted_stack): New array.
32 (EOF): Pop input_flags.sysrooted.
33 (lex_push_file): Add sysrooted param. Save and set
34 input_flags.sysrooted.
36 2012-03-06 Alan Modra <amodra@gmail.com>
38 * ldlang.h (struct lang_input_statement_flags): New, extract from..
39 (lang_input_statement_type): ..here. New field "flags".
40 (input_flags): Declare.
41 (missing_file): Delete.
42 * ldmain.h (whole_archive): Delete.
43 (add_DT_NEEDED_for_regular, add_DT_NEEDED_for_dynamic): Delete.
44 * ld.h (ld_config_type <dynamic_link>): Delete.
45 * ldmain.c (whole_archive): Delete.
46 (add_DT_NEEDED_for_regular, add_DT_NEEDED_for_dynamic): Delete.
47 * ldlang.c (missing_file, ldlang_sysrooted_script): Delete.
48 (input_flags): New variable. Replace all uses of config.dynamic_link,
49 missing_file, ldlang_sysrooted_script, whole_archive,
50 add_DT_NEEDED_for_regular and add_DT_NEEDED_for_dynamic with fields
55 * ldwrite.c: Likewise.
58 * emultempl/aix.em: Likewise.
59 * emultempl/armelf.em: Likewise.
60 * emultempl/elf32.em: Likewise.
61 * emultempl/hppaelf.em: Likewise.
62 * emultempl/linux.em: Likewise.
63 * emultempl/pe.em: Likewise.
64 * emultempl/pep.em: Likewise.
65 * emultempl/ppc64elf.em: Likewise.
66 * emultempl/scoreelf.em: Likewise.
67 * emultempl/spuelf.em: Likewise.
68 * emultempl/sunos.em: Likewise.
69 * emultempl/vms.em: Likewise.
70 * ldlang.c (new_afile): Use memset to init zero fields.
71 (load_symbols): Simplify save and restore of flags around command
73 * ldfile.c (is_sysrooted_pathname): Tidy.
75 2012-03-05 Hans-Peter Nilsson <hp@axis.com>
77 * configure.tgt (mips64*el-*-freebsd*, mips64*-*-freebsd*)
78 (mips*el-*-freebsd*, mips*-*-freebsd*): Correct triplets by
79 replacing trailing "-*" with "*".
81 2012-02-25 Walter Lee <walt@tilera.com>
83 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32tilegx_be.c.
84 (ALL_64_EMULATION_SOURCES): Add eelf64tilegx_be.c.
85 (eelf32tilegx_be.c): Add rule to build this file.
86 (eelf64tilegx_be.c): Ditto.
87 * Makefile.in: Regenerate.
88 * configure.tgt (tilegx-*-*): Support big endian.
90 * emulparams/elf32tilegx.sh (OUTPUT_FORMAT): Rename.
91 (BIG_OUTPUT_FORMAT): Define.
92 (LITTLE_OUTPUT_FORMAT): Define.
93 * emulparams/elf32tilegx_be.sh: New.
94 * emulparams/elf64tilegx.sh (OUTPUT_FORMAT): Rename.
95 (BIG_OUTPUT_FORMAT): Define.
96 (LITTLE_OUTPUT_FORMAT): Define.
97 * emulparams/elf64tilegx_be.sh: New.
99 2012-02-24 Kai Tietz <ktietz@redhat.com>
102 * deffilep.y (keyword_as_name): Disable LIBRARY
105 2012-02-22 Alan Modra <amodra@gmail.com>
108 * ldlang.c (lang_process): Rerun lang_do_assignments before
109 starting garbage collection.
110 * ldexp.c (fold_name): Generate a reloc for defined symbols
111 found without an associated output section during the mark phase.
112 (exp_fold_tree_1): Continue processing an expression, even if we
113 are unable to fold it, if we are in the first two evaluation
115 * ldexp.h (enum lang_phase_type): Add descriptions of the phases.
117 2012-02-19 Kai Tietz <ktietz@redhat.com>
119 * deffilep.y (cmp_import_elem): Sort first by module name.
120 * pe-dll.c (process_def_file_and_drectve): Free strings
121 from removed export-element.
122 (add_bfd_to_link): Optimize loop on import-elements and lower
124 (pe_implied_import_dll): Pass NULL instead of 0 for pointer
127 2012-02-18 Hans-Peter Nilsson <hp@axis.com>
129 * ldmisc.c (vfinfo <%S>): Use same type and avoid cast for
130 temporary variable node used for NULL argument.
132 2012-02-18 Alan Modra <amodra@gmail.com>
135 * ld.h (parsing_defsym): Delete.
136 * ldexp.c (exp_intop, exp_bigintop, exp_relop): Set type.filename.
137 (fold_binary, fold_name, exp_fold_tree_1, exp_get_vma, exp_get_fill,
138 exp_get_abs_int): Add tree arg for %S in error messages. Don't
140 (exp_binop, exp_unop, exp_nameop, exp_assop, exp_assert): Copy
141 type.filename from sub-tree.
142 (exp_trinop): Likewise, and use "cond" rather than "lhs".
143 * ldexp.h (node_type): Add filename field to struct.
144 * ldfile.c (ldfile_input_filename): Delete. Remove all refs.
145 * ldfile.h (ldfile_input_filename): Delete.
146 * ldgram.y (phdr_type, phdr_qualifiers, yyerror): Add NULL arg for
147 %S in error messages.
148 * ldemul.c (syslib_default, hll_default): Likewise.
149 * ldlang.c (lang_memory_region_lookup, lang_memory_region_alias,
150 lang_get_regions, lang_new_phdr): Likewise.
151 (lang_size_sections_1): Pass addr_tree for %S.
152 * ldlex.h (lex_redirect): Update prototype.
153 (ldlex_filename): Declare.
154 * ldlex.l (<EOF>): Don't set ldfile_input_filename.
155 (lex_redirect): Add fake_filename and count params. Push
156 fake_filename to file_name_stack and init lineno from count.
157 (ldlex_filename): New function.
158 (lex_warn_invalid): Use above.
159 * ldmain.c (main): Update lex_redirect call.
160 * ldmisc.c (vfinfo <%S>): Take file name and line number from
161 etree_type arg, or use current if arg is NULL.
162 * lexsup.c (parsing_defsym): Delete.
163 (parse_args <OPTION_DEFSYM>): Update lex_redirect call.
165 2012-02-13 Kai Tietz <ktietz@redhat.com>
167 * deffilep.y (find_export_in_list): Set is_indent for
168 first or last element, if identical.
169 (find_import_in_list): Likewise.
171 2012-02-11 Kai Tietz <ktietz@redhat.com>
173 * deffilep.y (%union): New type id_const.
174 (opt_name2): New rule.
175 (keyword_as_name): New rule.
176 (dot_name): Replaced by opt_name2 rule.
177 (opt_name): Adjust rule.
178 (opt_equal_name): Likewise.
180 2012-02-11 Pascal Obry <pascal@obry.net>
182 * pe-dll.c (auto_export): Use bsearch to speed up scan of exports
184 (process_def_file_and_drectve): Maintain sorting of exports table
185 after stripping leading @ signs.
187 2012-02-09 Alan Modra <amodra@gmail.com>
189 * ldgram.y (input_section_spec_no_keep): Don't ignore sect_flags.
191 2012-01-31 H.J. Lu <hongjiu.lu@intel.com>
194 * emulparams/elf32_x86_64.sh: Remove NOP.
195 * emulparams/elf_i386.sh: Likewise.
196 * emulparams/elf_i386_be.sh: Likewise.
197 * emulparams/elf_i386_ldso.sh: Likewise.
198 * emulparams/elf_i386_vxworks.sh: Likewise.
199 * emulparams/elf_k1om.sh: Likewise.
200 * emulparams/elf_l1om.sh: Likewise.
201 * emulparams/elf_x86_64.sh: Likewise.
203 * ldlang.c (zero_fill): Initialized to 0.
205 * ldwrite.c (build_link_order): Set data size to linker odrder
206 size when they are the same.
208 * scripttempl/elf.sc: Don't specify fill if NOP is undefined.
210 2012-01-17 Alan Modra <amodra@gmail.com>
212 * ldver.c (ldversion): Update copyright message year.
214 2012-01-15 Alan Modra <amodra@gmail.com>
217 * ldlang.c (lang_process): Don't reopen all files, just those
218 newly added by plugin.
220 2012-01-11 Alan Modra <amodra@gmail.com>
222 * emultempl/ppc64elf.em (PARSE_AND_LIST_PROLOGUE,
223 PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS,
224 PARSE_AND_LIST_ARGS_CASES): Handle --{no-,}plt-thread-safe and
226 (plt_thread_safe, plt_stub_align): New vars.
227 (gld${EMULATION_NAME}_after_allocation): Pass them to
228 ppc64_elf_size_stubs. Align stub sections according to plt_stub_align.
229 * ld.texinfo: Document new command line options, and an old
232 2012-01-09 Roland McGrath <mcgrathr@google.com>
234 * configure.in: Use AM_ZLIB.
235 * configure: Regenerated.
237 For older changes see ChangeLog-2011
243 version-control: never