| 1 | 2012-05-03 Sean Keys <skeys@ipdatasys.com> |
| 2 | |
| 3 | * Makefile.am (ALL_EMULATIONS): Added new emulation for XGATE |
| 4 | and XGATE (elf). |
| 5 | * Makefile.in: Rebuild. |
| 6 | * configure.tgt: Recognize XGATE. |
| 7 | * scripttempl/elfxgate.sc: New file, mostly cloned from m68hc12. |
| 8 | * emulparams/xgateelf: New emulation, mostly cloned from m68hc12. |
| 9 | * NEWS: Mention new support. |
| 10 | |
| 11 | 2012-04-26 Hans-Peter Nilsson <hp@axis.com> |
| 12 | |
| 13 | Make bfd asserts cause linker errors. |
| 14 | * ldmain.c (default_bfd_assert_handler): New variable. |
| 15 | (ld_bfd_assert_handler): New function. |
| 16 | (main): Call bfd_set_assert_handler. |
| 17 | |
| 18 | 2012-04-24 Alan Modra <amodra@gmail.com> |
| 19 | |
| 20 | * ld/ldlang.c (size_input_section): Use sec_info_type rather than |
| 21 | usrdata->flags.just_syms. |
| 22 | * ld/ldwrite.c (build_link_order): Likewise. |
| 23 | * ld/emultempl/hppaelf.em (build_section_lists): Likewise. |
| 24 | * ld/emultempl/ppc64elf.em (build_toc_list): Likewise. |
| 25 | * ld/emultempl/armelf.em (build_section_lists): Likewise. |
| 26 | (after_allocation): Update for renamed sec_info_type value. |
| 27 | * ld/emultempl/tic6xdsbt.em: Likewise. |
| 28 | |
| 29 | 2012-04-12 Roland McGrath <mcgrathr@google.com> |
| 30 | |
| 31 | * configure.tgt (arm*-*-nacl*, arm*b-*-nacl*): Handle them. |
| 32 | * emulparams/armelf_nacl.sh: New file. |
| 33 | * emulparams/armelfb_nacl.sh: New file. |
| 34 | * Makefile.am (ALL_EMULATION_SOURCES): Add earmelf_nacl.c |
| 35 | and earmelfb_nacl.c here. |
| 36 | (earmelf_nacl.c, earmelfb_nacl.c): New targets. |
| 37 | * Makefile.in: Regenerated. |
| 38 | |
| 39 | 2012-04-11 Tristan Gingold <gingold@adacore.com> |
| 40 | |
| 41 | * scripttempl/ia64vms.sc: New file. |
| 42 | * emultempl/vms.em (_before_parse): Support for ia64. |
| 43 | (elf64-ia64-vms): New fragment for ia64. |
| 44 | * emulparams/elf64_ia64_vms.sh: New file. |
| 45 | * configure.tgt (ia64-*-*vms*): Add. |
| 46 | * Makefile.am (ALL_64_EMULATION_SOURCES): Add eelf64_ia64_vms.c |
| 47 | (eelf64_ia64_vms.c): New rule. |
| 48 | * Makefile.in: Regenerate. |
| 49 | |
| 50 | 2012-04-06 Roland McGrath <mcgrathr@google.com> |
| 51 | |
| 52 | * configure.in (AC_CHECK_HEADERS): Add locale.h. |
| 53 | * config.in: Regenerate. |
| 54 | * configure: Regenerate. |
| 55 | |
| 56 | 2012-04-05 Nick Clifton <nickc@redhat.com> |
| 57 | |
| 58 | * configure.in (AC_CHECK_FUNCS): Add setlocale. |
| 59 | (AM_LC_MESSAGES): Add. |
| 60 | * aclocal.m4: Regenerate. |
| 61 | * config.in: Regenerate. |
| 62 | * configure: Regenerate. |
| 63 | |
| 64 | 2012-04-03 Roland McGrath <mcgrathr@google.com> |
| 65 | |
| 66 | * configure.tgt (i[3-7]86-*-nacl*, x86_64-*-nacl*): Handle them. |
| 67 | * emulparams/elf_nacl.sh: New file. |
| 68 | * emulparams/elf_i386_nacl.sh: New file. |
| 69 | * emulparams/elf32_x86_64_nacl.sh: New file. |
| 70 | * emulparams/elf_x86_64_nacl.sh: New file. |
| 71 | * Makefile.am (ALL_EMULATION_SOURCES): Add eelf_i386_nacl.c here. |
| 72 | (ALL_64_EMULATION_SOURCES): Add eelf32_x86_64_nacl.c and |
| 73 | eelf_x86_64_nacl.c here. |
| 74 | (eelf_i386_nacl.c, eelf32_x86_64_nacl.c, eelf_x86_64_nacl.c): |
| 75 | New targets. |
| 76 | * Makefile.in: Regenerated. |
| 77 | |
| 78 | * scripttempl/elf.sc: Handle SEPARATE_CODE cases. |
| 79 | |
| 80 | 2012-04-02 Mike Frysinger <vapier@gentoo.org> |
| 81 | |
| 82 | * ldmisc.c (vfinfo): Assign new local str to fmt. Delete |
| 83 | putc call. If str and fmt are different, call fwrite on |
| 84 | the difference. |
| 85 | |
| 86 | 2012-03-30 Nick Clifton <nickc@redhat.com> |
| 87 | |
| 88 | * po/vi.po: Updated Vietnamese translation. |
| 89 | |
| 90 | 2012-03-27 Roland McGrath <mcgrathr@google.com> |
| 91 | |
| 92 | * configure.in: Set want64 on a 64-bit host regardless of |
| 93 | --enable-targets=all. |
| 94 | * configure: Regenerated. |
| 95 | |
| 96 | 2012-03-26 Tristan Gingold <gingold@adacore.com> |
| 97 | |
| 98 | * lexsup.c (parse_args): Add a missing '\n'. |
| 99 | |
| 100 | 2012-03-25 Alan Modra <amodra@gmail.com> |
| 101 | |
| 102 | * ldemul.c (before_allocation_default): Revert last change. |
| 103 | ldlang.c (lang_add_section): Likewise. |
| 104 | (strip_excluded_output_sections): Don't strip output sections with |
| 105 | user input sections when emitrelocations, unless all are SEC_EXCLUDE. |
| 106 | |
| 107 | 2012-03-23 Alan Modra <amodra@gmail.com> |
| 108 | |
| 109 | * ldemul.c (before_allocation_default): When emitrelocations, |
| 110 | don't strip sections.. |
| 111 | * ldlang.c (lang_add_section): ..and don't set up map_head, map_tail. |
| 112 | |
| 113 | 2012-03-14 Kai Tietz <ktietz@redhat.com> |
| 114 | Pascal Obry <pascal@obry.net> |
| 115 | |
| 116 | * pe-dll.c (found_sym): New static variable. |
| 117 | (undef_count): Likewise. |
| 118 | (key_value): New structure. |
| 119 | (undef_sort_cmp): Compare routine for qsort/bsearch. |
| 120 | (pe_find_cdecl_alias_match): Add new argument. |
| 121 | (pe_undef_alias_cdecl_match): Removed. |
| 122 | (pe_undef_count): New helper routine. |
| 123 | (pe_create_undef_table): Likewise. |
| 124 | (pe_process_import_defs): Use pe_create_undef_table and |
| 125 | new pe_undef_alias_cdecl_match function. |
| 126 | |
| 127 | 2012-03-14 Alan Modra <amodra@gmail.com> |
| 128 | |
| 129 | PR ld/13839 |
| 130 | * ldexp.c (fold_name): Ignore undefined symbols when assigning to |
| 131 | dot in mark phase. |
| 132 | (exp_fold_tree_1): Evaluate assignment to dot expressions even when |
| 133 | discarding result, for side effects. Fix typo in error message. |
| 134 | |
| 135 | 2012-03-08 Tristan Gingold <gingold@adacore.com> |
| 136 | |
| 137 | * ldexp.c (exp_print_tree): Special case for SEGMENT_START. |
| 138 | (exp_print_token): Constify. |
| 139 | |
| 140 | 2012-03-08 Alan Modra <amodra@gmail.com> |
| 141 | |
| 142 | PR ld/10340 |
| 143 | * ldfile.c (is_sysrooted_pathname): Remove notsame param. |
| 144 | (ldfile_add_library_path): Don't set sysrooted flag. |
| 145 | (ldfile_open_file_search): Likewise, and don't copy them. |
| 146 | (try_open): Delete exten and code handling such. Add sysrooted |
| 147 | param and return whether path is in sysroot. |
| 148 | (ldfile_find_command_file): Delete extend param. Add sysrooted |
| 149 | param. Rename local var. Update try_open calls. |
| 150 | (ldfile_open_command_file_1): Pass sysrooted to lex_push_file. |
| 151 | * ldfile.h (search_dirs_type): Remove sysrooted field. |
| 152 | * ldlang.c (new_afile): Always set sysrooted from input_flags. |
| 153 | (load_symbols): Don't set input_flags.sysrooted. |
| 154 | * ldlang.h (struct lang_input_statement_flags): Revise sysrooted |
| 155 | comment. |
| 156 | * ldlex.h (lex_push_file): Update prototype. |
| 157 | * ldlex.l (sysrooted_stack): New array. |
| 158 | (EOF): Pop input_flags.sysrooted. |
| 159 | (lex_push_file): Add sysrooted param. Save and set |
| 160 | input_flags.sysrooted. |
| 161 | |
| 162 | 2012-03-06 Alan Modra <amodra@gmail.com> |
| 163 | |
| 164 | * ldlang.h (struct lang_input_statement_flags): New, extract from.. |
| 165 | (lang_input_statement_type): ..here. New field "flags". |
| 166 | (input_flags): Declare. |
| 167 | (missing_file): Delete. |
| 168 | * ldmain.h (whole_archive): Delete. |
| 169 | (add_DT_NEEDED_for_regular, add_DT_NEEDED_for_dynamic): Delete. |
| 170 | * ld.h (ld_config_type <dynamic_link>): Delete. |
| 171 | * ldmain.c (whole_archive): Delete. |
| 172 | (add_DT_NEEDED_for_regular, add_DT_NEEDED_for_dynamic): Delete. |
| 173 | * ldlang.c (missing_file, ldlang_sysrooted_script): Delete. |
| 174 | (input_flags): New variable. Replace all uses of config.dynamic_link, |
| 175 | missing_file, ldlang_sysrooted_script, whole_archive, |
| 176 | add_DT_NEEDED_for_regular and add_DT_NEEDED_for_dynamic with fields |
| 177 | from here. |
| 178 | * ldfile.c: Likewise. |
| 179 | * ldgram.y: Likewise. |
| 180 | * ldmain.c: Likewise. |
| 181 | * ldwrite.c: Likewise. |
| 182 | * lexsup.c: Likewise. |
| 183 | * plugin.c: Likewise. |
| 184 | * emultempl/aix.em: Likewise. |
| 185 | * emultempl/armelf.em: Likewise. |
| 186 | * emultempl/elf32.em: Likewise. |
| 187 | * emultempl/hppaelf.em: Likewise. |
| 188 | * emultempl/linux.em: Likewise. |
| 189 | * emultempl/pe.em: Likewise. |
| 190 | * emultempl/pep.em: Likewise. |
| 191 | * emultempl/ppc64elf.em: Likewise. |
| 192 | * emultempl/scoreelf.em: Likewise. |
| 193 | * emultempl/spuelf.em: Likewise. |
| 194 | * emultempl/sunos.em: Likewise. |
| 195 | * emultempl/vms.em: Likewise. |
| 196 | * ldlang.c (new_afile): Use memset to init zero fields. |
| 197 | (load_symbols): Simplify save and restore of flags around command |
| 198 | file processing. |
| 199 | * ldfile.c (is_sysrooted_pathname): Tidy. |
| 200 | |
| 201 | 2012-03-05 Hans-Peter Nilsson <hp@axis.com> |
| 202 | |
| 203 | * configure.tgt (mips64*el-*-freebsd*, mips64*-*-freebsd*) |
| 204 | (mips*el-*-freebsd*, mips*-*-freebsd*): Correct triplets by |
| 205 | replacing trailing "-*" with "*". |
| 206 | |
| 207 | 2012-02-25 Walter Lee <walt@tilera.com> |
| 208 | |
| 209 | * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32tilegx_be.c. |
| 210 | (ALL_64_EMULATION_SOURCES): Add eelf64tilegx_be.c. |
| 211 | (eelf32tilegx_be.c): Add rule to build this file. |
| 212 | (eelf64tilegx_be.c): Ditto. |
| 213 | * Makefile.in: Regenerate. |
| 214 | * configure.tgt (tilegx-*-*): Support big endian. |
| 215 | (tilegxbe-*-*): New. |
| 216 | * emulparams/elf32tilegx.sh (OUTPUT_FORMAT): Rename. |
| 217 | (BIG_OUTPUT_FORMAT): Define. |
| 218 | (LITTLE_OUTPUT_FORMAT): Define. |
| 219 | * emulparams/elf32tilegx_be.sh: New. |
| 220 | * emulparams/elf64tilegx.sh (OUTPUT_FORMAT): Rename. |
| 221 | (BIG_OUTPUT_FORMAT): Define. |
| 222 | (LITTLE_OUTPUT_FORMAT): Define. |
| 223 | * emulparams/elf64tilegx_be.sh: New. |
| 224 | |
| 225 | 2012-02-24 Kai Tietz <ktietz@redhat.com> |
| 226 | |
| 227 | PR binutils/13710 |
| 228 | * deffilep.y (keyword_as_name): Disable LIBRARY |
| 229 | keyword. |
| 230 | |
| 231 | 2012-02-22 Alan Modra <amodra@gmail.com> |
| 232 | |
| 233 | PR ld/13683 |
| 234 | * ldlang.c (lang_process): Rerun lang_do_assignments before |
| 235 | starting garbage collection. |
| 236 | * ldexp.c (fold_name): Generate a reloc for defined symbols |
| 237 | found without an associated output section during the mark phase. |
| 238 | (exp_fold_tree_1): Continue processing an expression, even if we |
| 239 | are unable to fold it, if we are in the first two evaluation |
| 240 | phases. |
| 241 | * ldexp.h (enum lang_phase_type): Add descriptions of the phases. |
| 242 | |
| 243 | 2012-02-19 Kai Tietz <ktietz@redhat.com> |
| 244 | |
| 245 | * deffilep.y (cmp_import_elem): Sort first by module name. |
| 246 | * pe-dll.c (process_def_file_and_drectve): Free strings |
| 247 | from removed export-element. |
| 248 | (add_bfd_to_link): Optimize loop on import-elements and lower |
| 249 | allocated memory. |
| 250 | (pe_implied_import_dll): Pass NULL instead of 0 for pointer |
| 251 | argument. |
| 252 | |
| 253 | 2012-02-18 Hans-Peter Nilsson <hp@axis.com> |
| 254 | |
| 255 | * ldmisc.c (vfinfo <%S>): Use same type and avoid cast for |
| 256 | temporary variable node used for NULL argument. |
| 257 | |
| 258 | 2012-02-18 Alan Modra <amodra@gmail.com> |
| 259 | |
| 260 | PR ld/13343 |
| 261 | * ld.h (parsing_defsym): Delete. |
| 262 | * ldexp.c (exp_intop, exp_bigintop, exp_relop): Set type.filename. |
| 263 | (fold_binary, fold_name, exp_fold_tree_1, exp_get_vma, exp_get_fill, |
| 264 | exp_get_abs_int): Add tree arg for %S in error messages. Don't |
| 265 | fudge lineno. |
| 266 | (exp_binop, exp_unop, exp_nameop, exp_assop, exp_assert): Copy |
| 267 | type.filename from sub-tree. |
| 268 | (exp_trinop): Likewise, and use "cond" rather than "lhs". |
| 269 | * ldexp.h (node_type): Add filename field to struct. |
| 270 | * ldfile.c (ldfile_input_filename): Delete. Remove all refs. |
| 271 | * ldfile.h (ldfile_input_filename): Delete. |
| 272 | * ldgram.y (phdr_type, phdr_qualifiers, yyerror): Add NULL arg for |
| 273 | %S in error messages. |
| 274 | * ldemul.c (syslib_default, hll_default): Likewise. |
| 275 | * ldlang.c (lang_memory_region_lookup, lang_memory_region_alias, |
| 276 | lang_get_regions, lang_new_phdr): Likewise. |
| 277 | (lang_size_sections_1): Pass addr_tree for %S. |
| 278 | * ldlex.h (lex_redirect): Update prototype. |
| 279 | (ldlex_filename): Declare. |
| 280 | * ldlex.l (<EOF>): Don't set ldfile_input_filename. |
| 281 | (lex_redirect): Add fake_filename and count params. Push |
| 282 | fake_filename to file_name_stack and init lineno from count. |
| 283 | (ldlex_filename): New function. |
| 284 | (lex_warn_invalid): Use above. |
| 285 | * ldmain.c (main): Update lex_redirect call. |
| 286 | * ldmisc.c (vfinfo <%S>): Take file name and line number from |
| 287 | etree_type arg, or use current if arg is NULL. |
| 288 | * lexsup.c (parsing_defsym): Delete. |
| 289 | (parse_args <OPTION_DEFSYM>): Update lex_redirect call. |
| 290 | |
| 291 | 2012-02-13 Kai Tietz <ktietz@redhat.com> |
| 292 | |
| 293 | * deffilep.y (find_export_in_list): Set is_indent for |
| 294 | first or last element, if identical. |
| 295 | (find_import_in_list): Likewise. |
| 296 | |
| 297 | 2012-02-11 Kai Tietz <ktietz@redhat.com> |
| 298 | |
| 299 | * deffilep.y (%union): New type id_const. |
| 300 | (opt_name2): New rule. |
| 301 | (keyword_as_name): New rule. |
| 302 | (dot_name): Replaced by opt_name2 rule. |
| 303 | (opt_name): Adjust rule. |
| 304 | (opt_equal_name): Likewise. |
| 305 | |
| 306 | 2012-02-11 Pascal Obry <pascal@obry.net> |
| 307 | |
| 308 | * pe-dll.c (auto_export): Use bsearch to speed up scan of exports |
| 309 | table. |
| 310 | (process_def_file_and_drectve): Maintain sorting of exports table |
| 311 | after stripping leading @ signs. |
| 312 | |
| 313 | 2012-02-09 Alan Modra <amodra@gmail.com> |
| 314 | |
| 315 | * ldgram.y (input_section_spec_no_keep): Don't ignore sect_flags. |
| 316 | |
| 317 | 2012-01-31 H.J. Lu <hongjiu.lu@intel.com> |
| 318 | |
| 319 | PR ld/13616 |
| 320 | * emulparams/elf32_x86_64.sh: Remove NOP. |
| 321 | * emulparams/elf_i386.sh: Likewise. |
| 322 | * emulparams/elf_i386_be.sh: Likewise. |
| 323 | * emulparams/elf_i386_ldso.sh: Likewise. |
| 324 | * emulparams/elf_i386_vxworks.sh: Likewise. |
| 325 | * emulparams/elf_k1om.sh: Likewise. |
| 326 | * emulparams/elf_l1om.sh: Likewise. |
| 327 | * emulparams/elf_x86_64.sh: Likewise. |
| 328 | |
| 329 | * ldlang.c (zero_fill): Initialized to 0. |
| 330 | |
| 331 | * ldwrite.c (build_link_order): Set data size to linker odrder |
| 332 | size when they are the same. |
| 333 | |
| 334 | * scripttempl/elf.sc: Don't specify fill if NOP is undefined. |
| 335 | |
| 336 | 2012-01-17 Alan Modra <amodra@gmail.com> |
| 337 | |
| 338 | * ldver.c (ldversion): Update copyright message year. |
| 339 | |
| 340 | 2012-01-15 Alan Modra <amodra@gmail.com> |
| 341 | |
| 342 | PR ld/12758 |
| 343 | * ldlang.c (lang_process): Don't reopen all files, just those |
| 344 | newly added by plugin. |
| 345 | |
| 346 | 2012-01-11 Alan Modra <amodra@gmail.com> |
| 347 | |
| 348 | * emultempl/ppc64elf.em (PARSE_AND_LIST_PROLOGUE, |
| 349 | PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS, |
| 350 | PARSE_AND_LIST_ARGS_CASES): Handle --{no-,}plt-thread-safe and |
| 351 | --{no-,}plt-align. |
| 352 | (plt_thread_safe, plt_stub_align): New vars. |
| 353 | (gld${EMULATION_NAME}_after_allocation): Pass them to |
| 354 | ppc64_elf_size_stubs. Align stub sections according to plt_stub_align. |
| 355 | * ld.texinfo: Document new command line options, and an old |
| 356 | undocumented option. |
| 357 | |
| 358 | 2012-01-09 Roland McGrath <mcgrathr@google.com> |
| 359 | |
| 360 | * configure.in: Use AM_ZLIB. |
| 361 | * configure: Regenerated. |
| 362 | |
| 363 | For older changes see ChangeLog-2011 |
| 364 | \f |
| 365 | Local Variables: |
| 366 | mode: change-log |
| 367 | left-margin: 8 |
| 368 | fill-column: 74 |
| 369 | version-control: never |
| 370 | End: |