1*75fd0b74Schristos2008-12-23 Jon Beniston <jon@beniston.com> 2*75fd0b74Schristos 3*75fd0b74Schristos * Makefile.am: Add LM32 object files and dependencies. 4*75fd0b74Schristos * Makefile.in: Regenate. 5*75fd0b74Schristos * NEWS: Record that support for LM32 has been added. 6*75fd0b74Schristos * configure.tgt: Add LM32 targets. 7*75fd0b74Schristos * emulparams/elf32lm32.sh: New file. 8*75fd0b74Schristos * emulparams/elf32lm32fd.sh: New file. 9*75fd0b74Schristos 10*75fd0b74Schristos2008-12-23 Tristan Gingold <gingold@adacore.com> 11*75fd0b74Schristos 12*75fd0b74Schristos * Makefile.am (EXTRA_DIST): Add deffilep.c and deffilep.h 13*75fd0b74Schristos * Makefile.in: Regenerate. 14*75fd0b74Schristos 15*75fd0b74Schristos2008-12-23 Nick Clifton <nickc@redhat.com> 16*75fd0b74Schristos 17*75fd0b74Schristos * NEWS: Remove mention of support for STT_IFUNC. 18*75fd0b74Schristos 19*75fd0b74Schristos2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 20*75fd0b74Schristos 21*75fd0b74Schristos * configure: Regenerate. 22*75fd0b74Schristos 23*75fd0b74Schristos2008-12-10 Alan Modra <amodra@bigpond.net.au> 24*75fd0b74Schristos 25*75fd0b74Schristos * emultempl/spuelf.em (params): Init new field. 26*75fd0b74Schristos (OPTION_SPU_NUM_REGIONS): Define. 27*75fd0b74Schristos (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --num-regions. 28*75fd0b74Schristos (PARSE_AND_LIST_ARGS_CASES): Handle --num-regions. 29*75fd0b74Schristos 30*75fd0b74Schristos2008-12-10 Alan Modra <amodra@bigpond.net.au> 31*75fd0b74Schristos 32*75fd0b74Schristos * emultempl/spuelf.em (params): New var, used instead of various others. 33*75fd0b74Schristos Adjust use throughout file. 34*75fd0b74Schristos (spu_after_open): Call spu_elf_setup. 35*75fd0b74Schristos (spu_place_special_section): Tidy. 36*75fd0b74Schristos (spu_elf_load_ovl_mgr): Return total size of sections loaded. Move 37*75fd0b74Schristos code setting overlay section alignment to.. 38*75fd0b74Schristos (spu_before_allocation): ..here. 39*75fd0b74Schristos 40*75fd0b74Schristos2008-12-03 Nick Clifton <nickc@redhat.com> 41*75fd0b74Schristos 42*75fd0b74Schristos * NEWS: Mention new feature. 43*75fd0b74Schristos * pe-dll.c (process_def_file): Replace use of redundant 44*75fd0b74Schristos BFD_FORT_COMM_DEFAULT_VALUE with 0. 45*75fd0b74Schristos * scripttempl/elf.sc: Add .rel.ifunc.dyn and .rela.ifunc.dyn 46*75fd0b74Schristos sections. 47*75fd0b74Schristos 48*75fd0b74Schristos2008-12-02 Kai Tietz <kai.tietz@onevision.com> 49*75fd0b74Schristos 50*75fd0b74Schristos * pe-dll.c (make_runtime_pseudo_reloc): Make symtab big enough to 51*75fd0b74Schristos hold relocations. 52*75fd0b74Schristos 53*75fd0b74Schristos2008-11-27 M R Swami Reddy <MR.Swami.Reddy@nsc.com> 54*75fd0b74Schristos 55*75fd0b74Schristos * emultempl/cr16elf.em (cr16_after_open): New function to handle 56*75fd0b74Schristos CR16 ELF embedded reloc creation (ld --embedded-relocs). 57*75fd0b74Schristos (check_sections): New function. 58*75fd0b74Schristos (LDEMUL_AFTER_OPEN): Define. 59*75fd0b74Schristos * emulparams/elf32cr16.sh (EMBEDDED): Define. 60*75fd0b74Schristos 61*75fd0b74Schristos2008-11-26 Alan Modra <amodra@bigpond.net.au> 62*75fd0b74Schristos 63*75fd0b74Schristos PR 7047 64*75fd0b74Schristos * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Update 65*75fd0b74Schristos for changes to struct bfd_elf_version_expr. 66*75fd0b74Schristos * ldlang.c (lang_vers_match, version_expr_head_hash): Likewise. 67*75fd0b74Schristos (version_expr_head_eq, lang_finalize_version_expr_head): Likewise. 68*75fd0b74Schristos (lang_register_vers_node): Likewise. 69*75fd0b74Schristos (lang_new_vers_pattern): Likewise. Ensure "literal" is set when 70*75fd0b74Schristos no glob chars found in "pattern". 71*75fd0b74Schristos (realsymbol): Correct backslash quote logic. 72*75fd0b74Schristos * ld.texinfo (VERSION): Warn about global wildcards. 73*75fd0b74Schristos 74*75fd0b74Schristos2008-11-24 Alan Modra <amodra@bigpond.net.au> 75*75fd0b74Schristos 76*75fd0b74Schristos * ldlang.c (lang_record_phdrs): Don't add orphans to PT_INTERP header. 77*75fd0b74Schristos 78*75fd0b74Schristos2008-11-19 Nick Clifton <nickc@redhat.com> 79*75fd0b74Schristos 80*75fd0b74Schristos * fdl.texi: Update to v1.3 81*75fd0b74Schristos * ld.texinfo: Change license to v1.3. 82*75fd0b74Schristos 83*75fd0b74Schristos2008-11-17 Ulrich Weigand <uweigand@de.ibm.com> 84*75fd0b74Schristos 85*75fd0b74Schristos * configure.tgt [spu-*-elf*]: Set NATIVE_LIB_DIRS to '/lib'. 86*75fd0b74Schristos 87*75fd0b74Schristos2008-11-17 Nick Clifton <nickc@redhat.com> 88*75fd0b74Schristos 89*75fd0b74Schristos * ldver.c: Update copyright year. 90*75fd0b74Schristos 91*75fd0b74Schristos2008-11-14 Kai Tietz <kai.tietz@onevision.com> 92*75fd0b74Schristos 93*75fd0b74Schristos * emultempl/pep.em (..._before_parse): initialize 94*75fd0b74Schristos pei386_runtime_pseudo_reloc by version 2. 95*75fd0b74Schristos (OPTION_DLL_ENABLE_RUNTIME_PSEUDO_RELOC_V1): New option. 96*75fd0b74Schristos (OPTION_DLL_ENABLE_RUNTIME_PSEUDO_RELOC_V2): New option. 97*75fd0b74Schristos (make_import_fixup): Use relocation size to read addend. 98*75fd0b74Schristos * emultempl/pe.em (..._before_parse): initialize 99*75fd0b74Schristos pei386_runtime_pseudo_reloc by version 1. 100*75fd0b74Schristos (OPTION_DLL_ENABLE_RUNTIME_PSEUDO_RELOC_V1): New option. 101*75fd0b74Schristos (OPTION_DLL_ENABLE_RUNTIME_PSEUDO_RELOC_V2): New option. 102*75fd0b74Schristos * pe-dll.c (pe-dll.h): Remove useless include. 103*75fd0b74Schristos (make_runtime_pseudo_reloc): Change addend to use bfd_vma. 104*75fd0b74Schristos Handle the two variants of pseudo-relocation. 105*75fd0b74Schristos (pe_create_import_fixup): Change addend to type bfd_vma. 106*75fd0b74Schristos Modify for the two pseudo_relocation variants. 107*75fd0b74Schristos (runtime_pseudp_reloc_v2_init): New static variable. 108*75fd0b74Schristos * pe-dll.h (pe_create_import_fixup): Change addend argument type 109*75fd0b74Schristos to bfd_vma. 110*75fd0b74Schristos * pep-dll.h (pep_create_import_fixup): Likewise. 111*75fd0b74Schristos * NEWS: Add comment. 112*75fd0b74Schristos 113*75fd0b74Schristos2008-11-14 Alan Modra <amodra@bigpond.net.au> 114*75fd0b74Schristos 115*75fd0b74Schristos * Makefile.am (spu_ovl.o_c): Add missing line continuations. 116*75fd0b74Schristos * Makefile.in: Regenerate. 117*75fd0b74Schristos 118*75fd0b74Schristos2008-11-06 Joel Sherrill <joel.sherrill@oarcorp.com> 119*75fd0b74Schristos 120*75fd0b74Schristos * configure.tgt: Add m32c-*-rtems* and m32r-*-rtems*. 121*75fd0b74Schristos 122*75fd0b74Schristos2008-11-03 Bob Wilson <bob.wilson@acm.org> 123*75fd0b74Schristos 124*75fd0b74Schristos * emulparams/elf32xtensa.sh (NO_REL_RELOCS): Set. 125*75fd0b74Schristos * scripttempl/elfxtensa.sc (NO_REL_RELOCS, NO_RELA_RELOCS) 126*75fd0b74Schristos (NON_ALLOC_DYN): Import changes from elf.sc. 127*75fd0b74Schristos 128*75fd0b74Schristos2008-10-25 Nick Clifton <nickc@redhat.com> 129*75fd0b74Schristos 130*75fd0b74Schristos PR 6945 131*75fd0b74Schristos * ldlang.c (lang_size_sections_1): Do not update the VMAs of 132*75fd0b74Schristos output sections when performing a relocatable link on COFF 133*75fd0b74Schristos objects. 134*75fd0b74Schristos 135*75fd0b74Schristos2008-10-22 Nick Clifton <nickc@redhat.com> 136*75fd0b74Schristos 137*75fd0b74Schristos * emultempl/armelf.em (arm_elf_after_open): Move check for using a 138*75fd0b74Schristos non-arm output target from here... 139*75fd0b74Schristos (arm_elf_create_output_section_statements): ... to here, so that 140*75fd0b74Schristos the check is made at the earliest possible opportunity. 141*75fd0b74Schristos 142*75fd0b74Schristos2008-10-22 Alan Modra <amodra@bigpond.net.au> 143*75fd0b74Schristos 144*75fd0b74Schristos * emulparams/elf32_i960.sh (TEMPLATE_NAME): "generic", not "elf32". 145*75fd0b74Schristos (EXTRA_EM_FILE): Define. 146*75fd0b74Schristos 147*75fd0b74Schristos2008-10-22 Alan Modra <amodra@bigpond.net.au> 148*75fd0b74Schristos 149*75fd0b74Schristos * scripttempl/elf.sc (NO_REL_RELOCS, NO_RELA_RELOCS, NON_ALLOC_DYN): 150*75fd0b74Schristos Handle these defines. 151*75fd0b74Schristos * emulparams/criself.sh, * emulparams/crislinux.sh, 152*75fd0b74Schristos * emulparams/elf32am33lin.sh, * emulparams/elf32fr30.sh, 153*75fd0b74Schristos * emulparams/elf32_i860.sh, * emulparams/elf32ip2k.sh, 154*75fd0b74Schristos * emulparams/elf32mcore.sh, * emulparams/elf32ppccommon.sh, 155*75fd0b74Schristos * emulparams/elf32ppcwindiss.sh, * emulparams/elf32_sparc.sh, 156*75fd0b74Schristos * emulparams/elf32_spu.sh, * emulparams/elf32vax.sh, 157*75fd0b74Schristos * emulparams/elf64alpha.sh, * emulparams/elf64mmix.sh, 158*75fd0b74Schristos * emulparams/elf64ppc.sh, * emulparams/elf64_s390.sh, 159*75fd0b74Schristos * emulparams/elf64_sparc.sh, * emulparams/elf_s390.sh, 160*75fd0b74Schristos * emulparams/elf_x86_64.sh, * emulparams/h8300elf.sh, 161*75fd0b74Schristos * emulparams/hppa64linux.sh, * emulparams/hppalinux.sh, 162*75fd0b74Schristos * emulparams/m68kelf.sh, * emulparams/mn10200.sh, 163*75fd0b74Schristos * emulparams/pjelf.sh, * emulparams/ppclynx.sh, 164*75fd0b74Schristos * emulparams/shelf32.sh, * emulparams/shelf_nto.sh, 165*75fd0b74Schristos * emulparams/shelf.sh, * emulparams/shelf_vxworks.sh, 166*75fd0b74Schristos * emulparams/shlelf32_linux.sh, * emulparams/shlelf_linux.sh, 167*75fd0b74Schristos * emulparams/shlelf_nto.sh (NO_REL_RELOCS): Set. 168*75fd0b74Schristos * emulparams/arcelf.sh, * emulparams/elf32_i960.sh, 169*75fd0b74Schristos * emulparams/elf32openrisc.sh, * emulparams/elf_i386_be.sh, 170*75fd0b74Schristos * emulparams/elf_i386_ldso.sh, * emulparams/elf_i386.sh, 171*75fd0b74Schristos * emulparams/elf_i386_vxworks.sh, * emulparams/i386lynx.sh, 172*75fd0b74Schristos * emulparams/i386moss.sh, * emulparams/i386nto.sh, 173*75fd0b74Schristos * emulparams/or32elf.sh, * emulparams/scoreelf.sh (NO_RELA_RELOCS): Set. 174*75fd0b74Schristos 175*75fd0b74Schristos2008-10-22 Alan Modra <amodra@bigpond.net.au> 176*75fd0b74Schristos 177*75fd0b74Schristos * ldlang.c (lang_output_section_find_by_flags): Handle non-alloc 178*75fd0b74Schristos sections. 179*75fd0b74Schristos * emultempl/elf32.em (enum orphan_save_index): Add orphan_nonalloc. 180*75fd0b74Schristos (hold): Likewise. 181*75fd0b74Schristos (gld${EMULATION_NAME}_place_orphan): Handle non-alloc orphans. 182*75fd0b74Schristos 183*75fd0b74Schristos2008-10-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org> 184*75fd0b74Schristos 185*75fd0b74Schristos * emultempl/armelf.em (PARSE_AND_LIST_OPTIONS): Correct typo in 186*75fd0b74Schristos help text of --be8. 187*75fd0b74Schristos 188*75fd0b74Schristos2008-10-20 Alan Modra <amodra@bigpond.net.au> 189*75fd0b74Schristos 190*75fd0b74Schristos * ldemul.h (ldemul_place_orphan): Update prototype. 191*75fd0b74Schristos (struct ld_emulation_xfer_struct <place_orphan>): Likewise. 192*75fd0b74Schristos * ldemul.c (ldemul_place_orphan): Return pointer to output 193*75fd0b74Schristos section statement. 194*75fd0b74Schristos * emultempl/beos.em (gld${EMULATION_NAME}_place_orphan): Likewise. 195*75fd0b74Schristos * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise. 196*75fd0b74Schristos * emultempl/mmo.em (mmo_place_orphan): Likewise. 197*75fd0b74Schristos * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise. 198*75fd0b74Schristos * emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise. 199*75fd0b74Schristos 200*75fd0b74Schristos2008-10-08 Nick Clifton <nickc@redhat.com> 201*75fd0b74Schristos 202*75fd0b74Schristos * configure.in (ALL_LINGUAS): Add "id". 203*75fd0b74Schristos * configure: Regenerate. 204*75fd0b74Schristos * po/id.po: New Indonesian translation. 205*75fd0b74Schristos 206*75fd0b74Schristos2008-10-05 Alan Modra <amodra@bigpond.net.au> 207*75fd0b74Schristos 208*75fd0b74Schristos PR 6943 209*75fd0b74Schristos * scripttempl/avr.sc (.bss): Set lma when relocating. 210*75fd0b74Schristos (.bss, .noinit): No need to set vma when relocating. 211*75fd0b74Schristos (.text, .bss, ,noinit): Set vma to zero when not relocating. 212*75fd0b74Schristos 213*75fd0b74Schristos2008-10-04 Alan Modra <amodra@bigpond.net.au> 214*75fd0b74Schristos 215*75fd0b74Schristos PR 6931 216*75fd0b74Schristos * ldemul.c (ldemul_place_orphan): Add "constraint" param. 217*75fd0b74Schristos * ldemul.h (ldemul_place_orphan): Update prototype. 218*75fd0b74Schristos (struct ld_emulation_xfer_struct <place_orphan>): Likewise add param. 219*75fd0b74Schristos * ldlang.c (unique_section_p): Make static. 220*75fd0b74Schristos (lang_output_section_statement_lookup): Optimise creation of SPECIAL 221*75fd0b74Schristos sections. 222*75fd0b74Schristos (lang_insert_orphan): Add "constraint" param. Pass to 223*75fd0b74Schristos lang_enter_output_section_statement. 224*75fd0b74Schristos (init_os): Don't use an existing bfd section for SPECIAL sections. 225*75fd0b74Schristos (lang_place_orphans): Don't rename unique output sections, instead 226*75fd0b74Schristos mark their output section statements SPECIAL. 227*75fd0b74Schristos * ldlang.h (lang_insert_orphan): Update prototype. 228*75fd0b74Schristos (unique_section_p): Delete. 229*75fd0b74Schristos * emultempl/beos.em (place_orphan): Add "constraint" param. 230*75fd0b74Schristos * emultempl/elf32.em (place_orphan): Likewise. Don't match existing 231*75fd0b74Schristos output sections if set. 232*75fd0b74Schristos * emultempl/pe.em (place_orphan): Likewise. 233*75fd0b74Schristos * emultempl/pep.em (place_orphan): Likewise. 234*75fd0b74Schristos * emultempl/mmo.em (mmo_place_orphan): Update. 235*75fd0b74Schristos * emultempl/spuelf.em (spu_place_special_section): Update. 236*75fd0b74Schristos 237*75fd0b74Schristos2008-10-03 Alan Modra <amodra@bigpond.net.au> 238*75fd0b74Schristos 239*75fd0b74Schristos PR 6931 240*75fd0b74Schristos * ldemul.c (ldemul_place_orphan): Add "name" param. 241*75fd0b74Schristos * ldemul.h (ldemul_place_orphan): Update prototype. 242*75fd0b74Schristos (struct ld_emulation_xfer_struct <place_orphan>): Likewise. 243*75fd0b74Schristos * ldlang.c (lang_place_orphans): Generate unique section names here.. 244*75fd0b74Schristos * emultempl/elf32.em (place_orphan): ..rather than here. Don't 245*75fd0b74Schristos directly use an existing output section statement that has no 246*75fd0b74Schristos bfd section. 247*75fd0b74Schristos * emultempl/pe.em (place_orphan): Likewise. 248*75fd0b74Schristos * emultempl/pep.em (place_orphan): Likewise. 249*75fd0b74Schristos * emultempl/beos.em (place_orphan): Adjust. 250*75fd0b74Schristos * emultempl/spuelf.em (spu_place_special_section): Adjust 251*75fd0b74Schristos place_orphan call. 252*75fd0b74Schristos * emultempl/genelf.em (gld${EMULATION_NAME}_after_open): New function. 253*75fd0b74Schristos (LDEMUL_AFTER_OPEN): Define. 254*75fd0b74Schristos 255*75fd0b74Schristos2008-09-30 Joseph Myers <joseph@codesourcery.com> 256*75fd0b74Schristos 257*75fd0b74Schristos * emulparams/elf64ppc.sh (OTHER_GOT_RELOC_SECTIONS): Add .rela.opd 258*75fd0b74Schristos and .rela.branch_lt. 259*75fd0b74Schristos 260*75fd0b74Schristos2008-09-30 Alan Modra <amodra@bigpond.net.au> 261*75fd0b74Schristos 262*75fd0b74Schristos * Makefile.am: Run "make dep-am". 263*75fd0b74Schristos * Makefile.in: Regenerate. 264*75fd0b74Schristos 265*75fd0b74Schristos2008-09-29 Peter O'Gorman <pogma@thewrittenword.com> 266*75fd0b74Schristos Steve Ellcey <sje@cup.hp.com> 267*75fd0b74Schristos 268*75fd0b74Schristos * configure: Regenerate for new libtool. 269*75fd0b74Schristos * aclocal.m4: Ditto. 270*75fd0b74Schristos * Makefile.in: Ditto. 271*75fd0b74Schristos 272*75fd0b74Schristos2008-09-29 Kai Tietz <kai.tietz@onevision.com> 273*75fd0b74Schristos 274*75fd0b74Schristos * pe-dll.c (make_import_fixup_entry): Make sure reloc is addend. 275*75fd0b74Schristos 276*75fd0b74Schristos2008-09-29 Nick Clifton <nickc@redhat.com> 277*75fd0b74Schristos 278*75fd0b74Schristos * po/vi.po: Updated Vietnamese translation. 279*75fd0b74Schristos 280*75fd0b74Schristos2008-09-25 Alan Modra <amodra@bigpond.net.au> 281*75fd0b74Schristos 282*75fd0b74Schristos * ldexp.c (fold_binary): Evaluate rhs when lhs not valid. 283*75fd0b74Schristos 284*75fd0b74Schristos2008-09-11 Jan Kratochvil <jan.kratochvil@redhat.com> 285*75fd0b74Schristos 286*75fd0b74Schristos * configure.in: Call AC_SYS_LARGEFILE. 287*75fd0b74Schristos * config.in: Regenerate. 288*75fd0b74Schristos * configure: Regenerate. 289*75fd0b74Schristos 290*75fd0b74Schristos2008-09-09 Peter Rosin <peda@lysator.liu.se> (tiny change) 291*75fd0b74Schristos 292*75fd0b74Schristos * emultempl/pe.em (pe_find_data_imports): Add trailing newline 293*75fd0b74Schristos to warning message. 294*75fd0b74Schristos * emultempl/pep.em (pep_find_data_imports): Likewise. 295*75fd0b74Schristos 296*75fd0b74Schristos2008-09-08 H.J. Lu <hongjiu.lu@intel.com> 297*75fd0b74Schristos 298*75fd0b74Schristos 2008-09-07 Alan Modra <amodra@bigpond.net.au> 299*75fd0b74Schristos 300*75fd0b74Schristos * emultempl/beos.em (gld${EMULATION_NAME}_place_orphan): Updated. 301*75fd0b74Schristos * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): Likewise. 302*75fd0b74Schristos 303*75fd0b74Schristos2008-09-08 Tristan Gingold <gingold@adacore.com> 304*75fd0b74Schristos 305*75fd0b74Schristos * NEWS: Add a marker for the 2.19 features. 306*75fd0b74Schristos 307*75fd0b74Schristos2008-09-07 Alan Modra <amodra@bigpond.net.au> 308*75fd0b74Schristos 309*75fd0b74Schristos * ldlang.h (lang_output_section_find): Define. 310*75fd0b74Schristos (lang_output_section_statement_lookup): Update prototype. 311*75fd0b74Schristos * ldlang.c (lang_output_section_find, 312*75fd0b74Schristos lang_output_section_statement_lookup_1): Merge into.. 313*75fd0b74Schristos (lang_output_section_statement_lookup): ..here. Update all callers. 314*75fd0b74Schristos (process_insert_statements): Set constraint negative 315*75fd0b74Schristos for output section statements we might be inserting. Make error 316*75fd0b74Schristos fatal on not finding insertion section. 317*75fd0b74Schristos (lang_output_section_find): Rather than comparing 318*75fd0b74Schristos output_section_statement.constraint against -1, test whether 319*75fd0b74Schristos it is postive. 320*75fd0b74Schristos (lang_output_section_statement_lookup_1): Likewise. 321*75fd0b74Schristos (output_prev_sec_find, strip_excluded_output_sections): Likewise. 322*75fd0b74Schristos (lang_record_phdrs): Likewise. 323*75fd0b74Schristos * emultempl/elf32.em (output_rel_find): Likewise. 324*75fd0b74Schristos * NEWS: Mention INSERT. 325*75fd0b74Schristos 326*75fd0b74Schristos2008-08-26 Nick Clifton <nickc@redhat.com> 327*75fd0b74Schristos 328*75fd0b74Schristos PR 6727 329*75fd0b74Schristos * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Scan all 330*75fd0b74Schristos input sections in all input bfds and always select the last 331*75fd0b74Schristos suitable one, so that interworking stubs are always processed 332*75fd0b74Schristos after all other input sections. 333*75fd0b74Schristos (arm_elf_before_allocation): Remove redundant use of 334*75fd0b74Schristos output_has_begun flag. 335*75fd0b74Schristos 336*75fd0b74Schristos2008-08-24 Alan Modra <amodra@bigpond.net.au> 337*75fd0b74Schristos 338*75fd0b74Schristos * configure.in: Update a number of obsolete autoconf macros. 339*75fd0b74Schristos * configure: Regenerate. 340*75fd0b74Schristos * aclocal.m4: Regenerate. 341*75fd0b74Schristos 342*75fd0b74Schristos2008-08-21 Jan Kratochvil <jan.kratochvil@redhat.com> 343*75fd0b74Schristos 344*75fd0b74Schristos PR ld/6833 345*75fd0b74Schristos * ldexp.c (fold_binary <DATA_SEGMENT_ALIGN>): Do not align 346*75fd0b74Schristos EXPLD.DATASEG.MIN_BASE. 347*75fd0b74Schristos * ldlang.c (lang_size_sections): New variable OLD_BASE. Rename 348*75fd0b74Schristos OLD_MIN_BASE to MIN_BASE with the former alignment from `ldexp.c'. 349*75fd0b74Schristos Use OLD_BASE now for the minimal base check after the base decrease by 350*75fd0b74Schristos the maximum alignment found. 351*75fd0b74Schristos 352*75fd0b74Schristos2008-08-17 Alan Modra <amodra@bigpond.net.au> 353*75fd0b74Schristos 354*75fd0b74Schristos PR 6478 355*75fd0b74Schristos * ldcref.c (check_local_sym_xref): Use bfd_generic_link_read_symbols. 356*75fd0b74Schristos Don't free symbol pointer array. 357*75fd0b74Schristos (check_refs): Likewise. 358*75fd0b74Schristos * ldmain.c (warning_callback): Likewise. 359*75fd0b74Schristos * ldmisc.c (vfinfo): Likewise. 360*75fd0b74Schristos * pe-dll.c (process_def_file): Likewise. 361*75fd0b74Schristos (pe_walk_relocs_of_symbol, generate_reloc): Likewise. 362*75fd0b74Schristos * emultempl/pe.em (pe_find_data_imports): Likewise. 363*75fd0b74Schristos (gld_${EMULATION_NAME}_after_open): Likewise. 364*75fd0b74Schristos * emultempl/pep.em (pep_find_data_imports): Likewise. 365*75fd0b74Schristos (gld_${EMULATION_NAME}_after_open): Likewise. 366*75fd0b74Schristos * ldlang.h (lang_input_statement_type): Delete asymbols, symbol_count, 367*75fd0b74Schristos passive_position, closed. 368*75fd0b74Schristos * ldlang.c (new_afile): Don't set asymbols and symbol_count. 369*75fd0b74Schristos * ldmain.c (add_archive_element): xcalloc lang_input_statement_type. 370*75fd0b74Schristos 371*75fd0b74Schristos2008-08-15 Alan Modra <amodra@bigpond.net.au> 372*75fd0b74Schristos 373*75fd0b74Schristos PR 6526 374*75fd0b74Schristos * configure.in: Invoke AC_USE_SYSTEM_EXTENSIONS. 375*75fd0b74Schristos * Makefile.in: Regenerate. 376*75fd0b74Schristos * aclocal.m4: Regenerate. 377*75fd0b74Schristos * config.in: Regenerate. 378*75fd0b74Schristos * configure: Regenerate. 379*75fd0b74Schristos 380*75fd0b74Schristos2008-08-09 Alan Modra <amodra@bigpond.net.au> 381*75fd0b74Schristos 382*75fd0b74Schristos PR 6753 383*75fd0b74Schristos * ldmain.c (check_for_scripts_dir, set_scripts_dir): Delete. 384*75fd0b74Schristos (main): Don't set_scripts_dir here. 385*75fd0b74Schristos * ldfile.c (check_for_scripts_dir, find_scripts_dir): New functions, 386*75fd0b74Schristos largely based on ldmain.c versions. 387*75fd0b74Schristos (ldfile_find_command_file): Set up search in script dir here without 388*75fd0b74Schristos affecting library search. 389*75fd0b74Schristos * Makefile.am (ldmain.o): No need to define SCRIPTDIR. 390*75fd0b74Schristos (ldfile.o): New rule. 391*75fd0b74Schristos * Makefile.in: Regenerate. 392*75fd0b74Schristos 393*75fd0b74Schristos2008-08-08 Anatoly Sokolov <aesok@post.ru> 394*75fd0b74Schristos 395*75fd0b74Schristos * Makefile.am (ALL_EMULATIONS): Add eavr25.o, eavr31.o, eavr35.o, 396*75fd0b74Schristos and eavr51.o. 397*75fd0b74Schristos Add rules for eavr25.c, eavr31.c, eavr35.c, eavr51.c. 398*75fd0b74Schristos * Makefile.in: Regenerate. 399*75fd0b74Schristos * configure.tgt (avr-*-*, targ_extra_emuls): Add avr25, avr31, avr35 400*75fd0b74Schristos and avr51. 401*75fd0b74Schristos * emulparams/avr25.sh: New file. 402*75fd0b74Schristos * emulparams/avr31.sh: New file. 403*75fd0b74Schristos * emulparams/avr35.sh: New file. 404*75fd0b74Schristos * emulparams/avr51.sh: New file. 405*75fd0b74Schristos 406*75fd0b74Schristos2008-08-08 Richard Sandiford <rdsandiford@googlemail.com> 407*75fd0b74Schristos Daniel Jacobowitz <dan@codesourcery.com> 408*75fd0b74Schristos 409*75fd0b74Schristos * emulparams/elf32bmip.sh (GOT): Define, moving .got.plt to... 410*75fd0b74Schristos (OTHER_RELRO_SECTIONS, OTHER_READWRITE_SECTIONS): ...one of these 411*75fd0b74Schristos two variables. 412*75fd0b74Schristos * emulparams/elf32bmipn32-defs.sh: Likewise. 413*75fd0b74Schristos * emultempl/mipself.em: Include ldctor.h, elf/mips.h and elfxx-mips.h. 414*75fd0b74Schristos (is_mips_elf): New macro. 415*75fd0b74Schristos (stub_file, stub_bfd): New variables. 416*75fd0b74Schristos (hook_stub_info): New structure. 417*75fd0b74Schristos (hook_in_stub): New function. 418*75fd0b74Schristos (mips_add_stub_section): Likewise. 419*75fd0b74Schristos (mips_create_output_section_statements): Likewise. 420*75fd0b74Schristos (mips_before_allocation): Likewise. 421*75fd0b74Schristos (real_func): New variable. 422*75fd0b74Schristos (mips_for_each_input_file_wrapper): New function. 423*75fd0b74Schristos (mips_lang_for_each_input_file): Likewise. 424*75fd0b74Schristos (lang_for_each_input_file): Define. 425*75fd0b74Schristos (LDEMUL_BEFORE_ALLOCATION): Likewise. 426*75fd0b74Schristos (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Likewise. 427*75fd0b74Schristos 428*75fd0b74Schristos2008-08-08 Alan Modra <amodra@bigpond.net.au> 429*75fd0b74Schristos 430*75fd0b74Schristos * ldfile.c (ldfile_open_file_search): Use concat. 431*75fd0b74Schristos (try_open): Don't use a fixed size pathname buffer. 432*75fd0b74Schristos (ldfile_find_command_file): Likewise. 433*75fd0b74Schristos * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive): If 434*75fd0b74Schristos using EXTRA_SHLIB_EXTENSION, don't open twice. 435*75fd0b74Schristos 436*75fd0b74Schristos2008-08-04 Alan Modra <amodra@bigpond.net.au> 437*75fd0b74Schristos 438*75fd0b74Schristos * Makefile.am (POTFILES.in): Set LC_ALL=C. 439*75fd0b74Schristos * Makefile.in: Regenerate. 440*75fd0b74Schristos * po/POTFILES.in: Regenerate. 441*75fd0b74Schristos 442*75fd0b74Schristos2008-08-03 Alan Modra <amodra@bigpond.net.au> 443*75fd0b74Schristos 444*75fd0b74Schristos * Makefile.am (spu_ovl.o): Merge rule into.. 445*75fd0b74Schristos (spu_ovl.o_c): ..this one. Only run cpp for spu target. 446*75fd0b74Schristos * Makefile.in: Regenerate. 447*75fd0b74Schristos 448*75fd0b74Schristos2008-08-02 Jan Kratochvil <jan.kratochvil@redhat.com> 449*75fd0b74Schristos 450*75fd0b74Schristos Include the spu_ovl ASCII form in the repository files. 451*75fd0b74Schristos * emultempl/spuelf.em: No longer use `bin2c', use now `spu_ovl.o_c'. 452*75fd0b74Schristos * Makefile.am (eelf32_spu.c): Depend now on `spu_ovl.o_c'. 453*75fd0b74Schristos ($(srcdir)/emultempl/spu_ovl.o_c): New target. 454*75fd0b74Schristos ($(srcdir)/emultempl/spu_ovl.o): Rename to... 455*75fd0b74Schristos (spu_ovl.o): ...this one. 456*75fd0b74Schristos * Makefile.in: Regenerate. 457*75fd0b74Schristos * emultempl/spu_ovl.o_c: New file. 458*75fd0b74Schristos * emultempl/spu_ovl.o: File removed. 459*75fd0b74Schristos 460*75fd0b74Schristos2008-07-31 Takashi Ono <t_ono@hkfreak.net> 461*75fd0b74Schristos 462*75fd0b74Schristos * pe-dll.c (generate_relocs): Don't generate relocs for 463*75fd0b74Schristos undefined weak symbols. 464*75fd0b74Schristos 465*75fd0b74Schristos2008-07-31 Jan Kratochvil <jan.kratochvil@redhat.com> 466*75fd0b74Schristos 467*75fd0b74Schristos * emultempl/spuelf.em: Abort on the missing required `spu_ovl.o'. 468*75fd0b74Schristos 469*75fd0b74Schristos2008-07-30 Alan Modra <amodra@bigpond.net.au> 470*75fd0b74Schristos 471*75fd0b74Schristos * emultempl/pe.em, emultempl/pep.em: Silence gcc warnings. 472*75fd0b74Schristos 473*75fd0b74Schristos2008-07-18 Joseph Myers <joseph@codesourcery.com> 474*75fd0b74Schristos 475*75fd0b74Schristos * ld.texinfo (--no-wchar-size-warning): Document new ARM option. 476*75fd0b74Schristos * emultempl/armelf.em (no_wchar_size_warning): New. 477*75fd0b74Schristos (arm_elf_create_output_section_statements): Pass 478*75fd0b74Schristos no_wchar_size_warning to arm_elf_create_output_section_statements. 479*75fd0b74Schristos (OPTION_NO_WCHAR_SIZE_WARNING): New. 480*75fd0b74Schristos (PARSE_AND_LIST_LONGOPTS): Add no-wchar-size-warning. 481*75fd0b74Schristos (PARSE_AND_LIST_OPTIONS): List --no-wchar-size-warning. 482*75fd0b74Schristos (PARSE_AND_LIST_ARGS_CASES): Handle --no-wchar-size-warning. 483*75fd0b74Schristos 484*75fd0b74Schristos2008-07-15 Jie Zhang <jie.zhang@analog.com> 485*75fd0b74Schristos 486*75fd0b74Schristos * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Define. 487*75fd0b74Schristos 488*75fd0b74Schristos2008-07-12 Craig Silverstein <csilvers@google.com> 489*75fd0b74Schristos 490*75fd0b74Schristos PR ld/6741 491*75fd0b74Schristos * configure.in: Check for, and include, libz.a if it is present. 492*75fd0b74Schristos * configure: Regenerate. 493*75fd0b74Schristos * config.in: Regenerate. 494*75fd0b74Schristos 495*75fd0b74Schristos2008-07-12 Jie Zhang <jie.zhang@analog.com> 496*75fd0b74Schristos 497*75fd0b74Schristos Revert 498*75fd0b74Schristos 2008-07-12 Jie Zhang <jie.zhang@analog.com> 499*75fd0b74Schristos * Makefile.am (eelf32bfin.c): Depend on bfin.em. 500*75fd0b74Schristos (eelf32bfinfd.c): Likewise. 501*75fd0b74Schristos * Makefile.in: Regenerate. 502*75fd0b74Schristos * gen-doc.texi: Set Blackfin. 503*75fd0b74Schristos * ld.texinfo: Document --sep-code and Blackfin specific 504*75fd0b74Schristos options. 505*75fd0b74Schristos * ldmain.c (main): Initialize link_info.sep_code. 506*75fd0b74Schristos * lexsup.c (enum option_values): Add OPTION_SEP_CODE. 507*75fd0b74Schristos (ld_options[]): Add --sep-code. 508*75fd0b74Schristos (parse_args): Deal with --sep-code. 509*75fd0b74Schristos * emulparams/bfin.sh (EXTRA_EM_FILE): Define. 510*75fd0b74Schristos * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Define. 511*75fd0b74Schristos * emultempl/bfin.em: New file. 512*75fd0b74Schristos 513*75fd0b74Schristos2008-07-12 Jie Zhang <jie.zhang@analog.com> 514*75fd0b74Schristos 515*75fd0b74Schristos * Makefile.am (eelf32bfin.c): Depend on bfin.em. 516*75fd0b74Schristos (eelf32bfinfd.c): Likewise. 517*75fd0b74Schristos * Makefile.in: Regenerate. 518*75fd0b74Schristos * gen-doc.texi: Set Blackfin. 519*75fd0b74Schristos * ld.texinfo: Document --sep-code and Blackfin specific 520*75fd0b74Schristos options. 521*75fd0b74Schristos * ldmain.c (main): Initialize link_info.sep_code. 522*75fd0b74Schristos * lexsup.c (enum option_values): Add OPTION_SEP_CODE. 523*75fd0b74Schristos (ld_options[]): Add --sep-code. 524*75fd0b74Schristos (parse_args): Deal with --sep-code. 525*75fd0b74Schristos * emulparams/bfin.sh (EXTRA_EM_FILE): Define. 526*75fd0b74Schristos * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Define. 527*75fd0b74Schristos * emultempl/bfin.em: New file. 528*75fd0b74Schristos 529*75fd0b74Schristos2008-07-09 Danny Smith <dannysmith@users.sourceforge.net> 530*75fd0b74Schristos 531*75fd0b74Schristos *pe-dll.c (autofilter_symbolprefixlist): Excude all symbols 532*75fd0b74Schristos starting with ".". 533*75fd0b74Schristos Exclude "_IMPORT_DESCRIPTOR_". 534*75fd0b74Schristos (autofilter_symbolsuffixlist): Exclude "_NULL_THUNK_DATA". 535*75fd0b74Schristos (autofilter_symbollist_generic): Don't check for ".text". 536*75fd0b74Schristos Exclude "_NULL_IMPORT_DESCRIPTOR". 537*75fd0b74Schristos (autofilter_symbollist_i386): Likewise. 538*75fd0b74Schristos 539*75fd0b74Schristos2008-07-07 Alan Modra <amodra@bigpond.net.au> 540*75fd0b74Schristos 541*75fd0b74Schristos * emultempl/armelf.em (elf32_arm_add_stub_section): Use 542*75fd0b74Schristos bfd_make_section_with_flags. 543*75fd0b74Schristos * emultempl/avrelf.em (avr_elf_create_output_section_statements): 544*75fd0b74Schristos Likewise. 545*75fd0b74Schristos * emultempl/hppaelf.em (hppaelf_add_stub_section): Likewise. 546*75fd0b74Schristos * emultempl/m68hc1xelf.em (m68hc11elf_add_stub_section): Likewise. 547*75fd0b74Schristos * emultempl/m68kcoff.em (gld${EMULATION_NAME}_after_open): Likewise. 548*75fd0b74Schristos * emultempl/m68kelf.em (m68k_elf_after_open): Likewise. 549*75fd0b74Schristos * emultempl/ppc64elf.em (ppc_add_stub_section): Likewise. 550*75fd0b74Schristos * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation): 551*75fd0b74Schristos Likewise. 552*75fd0b74Schristos 553*75fd0b74Schristos2008-07-06 Nathan Sidwell <nathan@codesourcery.com> 554*75fd0b74Schristos 555*75fd0b74Schristos * ld.texinfo (File Commands): Document that INCLUDE can be used in 556*75fd0b74Schristos several different places. 557*75fd0b74Schristos * ldgram.y (statement, memory_spec, section): Allow INCLUDE. 558*75fd0b74Schristos (memory, memory_spec_list): Simplify BNF 559*75fd0b74Schristos (memory_spec_list_opt): New rule. 560*75fd0b74Schristos * ldlex.l (INCLUDE): Recognize in EXPRESSION. 561*75fd0b74Schristos 562*75fd0b74Schristos2008-06-20 Alan Modra <amodra@bigpond.net.au> 563*75fd0b74Schristos 564*75fd0b74Schristos * emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Make "can not 565*75fd0b74Schristos build overlay stubs" a fatal error. 566*75fd0b74Schristos 567*75fd0b74Schristos2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 568*75fd0b74Schristos 569*75fd0b74Schristos * config.in: Regenerate. 570*75fd0b74Schristos * configure: Regenerate. 571*75fd0b74Schristos 572*75fd0b74Schristos2008-06-17 Alan Modra <amodra@bigpond.net.au> 573*75fd0b74Schristos 574*75fd0b74Schristos * emultempl/spuelf.em (extra_stack_space): New variable. 575*75fd0b74Schristos (gld${EMULATION_NAME}_finish): Pass it to spu_elf_check_vma. 576*75fd0b74Schristos (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS, 577*75fd0b74Schristos PARSE_AND_LIST_ARGS_CASES): Handle --extra-stack-space. 578*75fd0b74Schristos * emultempl/spu_ovl.S: Mask interrupts during dma and update of 579*75fd0b74Schristos overlay manager structures. 580*75fd0b74Schristos * emultempl/spu_ovl.o: Regenerate. 581*75fd0b74Schristos 582*75fd0b74Schristos2008-06-16 Hans-Peter Nilsson <hp@bitrange.com> 583*75fd0b74Schristos 584*75fd0b74Schristos * ld.texinfo (@node MMIX): For the __.MMIX.start. prefix, only 585*75fd0b74Schristos mention it as being special for global symbols. 586*75fd0b74Schristos 587*75fd0b74Schristos2008-06-12 Nick Clifton <nickc@redhat.com> 588*75fd0b74Schristos 589*75fd0b74Schristos * ldlang.c (print_output_section_statement): If the output section 590*75fd0b74Schristos statement has an update_dot_tree expression, apply it to 591*75fd0b74Schristos print_dot. 592*75fd0b74Schristos (print_input_section): Do not update print_dot if it would move 593*75fd0b74Schristos print_dot backwards. 594*75fd0b74Schristos (lang_do_assignments_1): If the output section statement has an 595*75fd0b74Schristos update_dot_tree expression apply it to dot. 596*75fd0b74Schristos 597*75fd0b74Schristos2008-06-07 Alan Modra <amodra@bigpond.net.au> 598*75fd0b74Schristos 599*75fd0b74Schristos * NEWS: Mention archive:path patterns. 600*75fd0b74Schristos * ld.texinfo: Likewise. 601*75fd0b74Schristos * ldlang.c: Formatting throughout. 602*75fd0b74Schristos (archive_path): Only assume "[A-Za-z]:" is a dos drive. 603*75fd0b74Schristos (input_statement_is_archive_path): New function, extracted from.. 604*75fd0b74Schristos (walk_wild): ..here. 605*75fd0b74Schristos (walk_wild_consider_section): Match archive:path here too. 606*75fd0b74Schristos (init_map_userdata, sort_def_symbol): Convert to ISO C. 607*75fd0b74Schristos * ldmain.c (main): Set link_info.path_separator. 608*75fd0b74Schristos * emultempl/spuelf.em (choose_target): Don't set it here. 609*75fd0b74Schristos 610*75fd0b74Schristos2008-06-06 Alan Modra <amodra@bigpond.net.au> 611*75fd0b74Schristos 612*75fd0b74Schristos * ldlang.c (name_match): New function. 613*75fd0b74Schristos (unique_section_p, walk_wild_consider_section): Use it here. 614*75fd0b74Schristos (walk_wild_section_general): And here. 615*75fd0b74Schristos (archive_path): New function. 616*75fd0b74Schristos (walk_wild): Match archive:path filespecs. 617*75fd0b74Schristos (open_input_bfds): Don't load archive:path files. 618*75fd0b74Schristos * emultempl/spuelf.em (choose_target): Set path_separator. 619*75fd0b74Schristos * emulparams/elf32_spu.sh: Add ._ea.* sections to ._ea output. 620*75fd0b74Schristos 621*75fd0b74Schristos2008-06-04 Nick Clifton <nickc@redhat.com> 622*75fd0b74Schristos 623*75fd0b74Schristos * ld.texinfo (Orphan Sections): Fix texi typo. 624*75fd0b74Schristos 625*75fd0b74Schristos2008-06-04 Chris Metcalf <cmetcalf@tilera.com> 626*75fd0b74Schristos 627*75fd0b74Schristos * lexsup.c (option_values): Add OPTION_NO_WARN_FATAL. 628*75fd0b74Schristos (ld_options): Add entry for --no-fatal-warnings. 629*75fd0b74Schristos (parse_args): Handle OPTION_NO_WARN_FATAL. 630*75fd0b74Schristos * ld.texinfo (Options): Document new command line switch. 631*75fd0b74Schristos 632*75fd0b74Schristos2008-06-04 Alan Modra <amodra@bigpond.net.au> 633*75fd0b74Schristos 634*75fd0b74Schristos * emultempl/spuelf.em (spu_elf_relink): Correct --no-auto-overlay arg. 635*75fd0b74Schristos 636*75fd0b74Schristos2008-06-02 Nathan Sidwell <nathan@codesourcery.com> 637*75fd0b74Schristos 638*75fd0b74Schristos * ldlang.c (closest_target_match): Skip generic big and little 639*75fd0b74Schristos endian ELF targets. 640*75fd0b74Schristos 641*75fd0b74Schristos2008-05-31 Evandro Menezes <evandro@yahoo.com> 642*75fd0b74Schristos 643*75fd0b74Schristos PR ld/6430 644*75fd0b74Schristos * ld.h (enum sort_order): New. 645*75fd0b74Schristos * ldlang.c (lang_check: Fix comment. 646*75fd0b74Schristos (lang_common): Sort commons in ascending or descending order. 647*75fd0b74Schristos (lang_one_common): Likewise. 648*75fd0b74Schristos * lexsup.c (ld_options): Have --sort-common take an option 649*75fd0b74Schristos argument. 650*75fd0b74Schristos (parse_args): Handle argument to --sort-common. 651*75fd0b74Schristos * ld.texinfo (--sort-common): Document new optional argument. 652*75fd0b74Schristos * NEWS: Mention new feature. 653*75fd0b74Schristos 654*75fd0b74Schristos2008-05-28 Christophe Lyon <christophe.lyon@st.com> 655*75fd0b74Schristos 656*75fd0b74Schristos * ld.texinfo: State that farcalls stubs are supported for ARM-EABI 657*75fd0b74Schristos only. 658*75fd0b74Schristos 659*75fd0b74Schristos2008-05-27 Kai Tietz <kai.tietz@onevision.com> 660*75fd0b74Schristos 661*75fd0b74Schristos * pe-dll.c (fill_edata): Make sure we calculate vma's in 662*75fd0b74Schristos type bfd_vma. 663*75fd0b74Schristos (generate_reloc): Likewise. 664*75fd0b74Schristos (pe_implied_import_dll): Likewise. 665*75fd0b74Schristos 666*75fd0b74Schristos2008-05-21 Nick Clifton <nickc@redhat.com> 667*75fd0b74Schristos 668*75fd0b74Schristos PR ld/6519 669*75fd0b74Schristos * ld.texinfo (Orphan Sections): Mention that the linker will 670*75fd0b74Schristos provide start and stop symbols for orphaned sections if their 671*75fd0b74Schristos names are valid C identifiers. 672*75fd0b74Schristos * NEWS: Add an addendum to the description of the linker feature 673*75fd0b74Schristos for providing orphan section start and end symbols. 674*75fd0b74Schristos 675*75fd0b74Schristos2008-05-21 Maxim Kuvyrkov <maxim@codesourcery.com> 676*75fd0b74Schristos 677*75fd0b74Schristos * configure.in (--enable-got): New option. Handle it. 678*75fd0b74Schristos * configure: Regenerate. 679*75fd0b74Schristos * config.in: Regenerate. 680*75fd0b74Schristos * emultempl/m68kelf.em: (got_handling_target_default): New shell 681*75fd0b74Schristos variable. 682*75fd0b74Schristos (GOT_HANDLING_TARGET_DEFAULT): New macro. 683*75fd0b74Schristos (GOT_HANDLING_DEFAULT): New macro. Initialize it from configure 684*75fd0b74Schristos option if one was given. 685*75fd0b74Schristos (got_handling): New static variable. 686*75fd0b74Schristos (elf_m68k_create_output_section_statements): New static function 687*75fd0b74Schristos implementing hook. 688*75fd0b74Schristos (PARSE_AND_LIST_PROLOGUE): Define shell variable. 689*75fd0b74Schristos (OPTION_GOT): New macro. 690*75fd0b74Schristos (PARSE_AND_LIST_LONGOPTS): Define shell variable. Specify 691*75fd0b74Schristos --got option. 692*75fd0b74Schristos (got): New linker option. 693*75fd0b74Schristos (PARSE_AND_LIST_OPTIONS): Define shell variable. Print help string 694*75fd0b74Schristos for --got option. 695*75fd0b74Schristos (PARSE_AND_LIST_ARGS_CASES): Define shell variable. Handle --got 696*75fd0b74Schristos option. 697*75fd0b74Schristos * ld.texinfo: Document --got=<type> option. 698*75fd0b74Schristos * gen-doc.texi: Add M68K. 699*75fd0b74Schristos * NEWS: Mention the new feature. 700*75fd0b74Schristos 701*75fd0b74Schristos2008-05-21 Evandro Menezes <evandro@yahoo.com> 702*75fd0b74Schristos 703*75fd0b74Schristos PR ld/6430 704*75fd0b74Schristos * ld.texinfo (--sort-common): Correct documentation to indicate 705*75fd0b74Schristos that sorting is performed by alignment, not size, biggest 706*75fd0b74Schristos alignment first. 707*75fd0b74Schristos 708*75fd0b74Schristos2008-05-21 Christophe Lyon <christophe.lyon@st.com> 709*75fd0b74Schristos Nick Clifton <nickc@redhat.com> 710*75fd0b74Schristos 711*75fd0b74Schristos * ld.texinfo (ARM): Document --stub-group-size=N option. 712*75fd0b74Schristos Move description of --pic-veneer option into the ARM section. 713*75fd0b74Schristos * NEWS: Mention the support for long function calls. 714*75fd0b74Schristos 715*75fd0b74Schristos2008-05-15 Christophe Lyon <christophe.lyon@st.com> 716*75fd0b74Schristos 717*75fd0b74Schristos * emultempl/armelf.em (build_section_lists): New function. 718*75fd0b74Schristos (stub_file): Define. 719*75fd0b74Schristos (need_laying_out): Define. 720*75fd0b74Schristos (group_size): Define. 721*75fd0b74Schristos (hook_stub_info): Define. 722*75fd0b74Schristos (hook_in_stub): New function. 723*75fd0b74Schristos (elf32_arm_add_stub_section): New function. 724*75fd0b74Schristos (gldarm_layout_sections_again): New function. 725*75fd0b74Schristos (gld${EMULATION_NAME}_finish): Replace arm_elf_finish(). Generate 726*75fd0b74Schristos stubs for long calls if needed. 727*75fd0b74Schristos (arm_elf_create_output_section_statements): create stub_file bfd. 728*75fd0b74Schristos (arm_for_each_input_file_wrapper): New function. 729*75fd0b74Schristos (arm_lang_for_each_input_file): New function. 730*75fd0b74Schristos (lang_for_each_input_file): Define. 731*75fd0b74Schristos (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_STUBGROUP_SIZE. 732*75fd0b74Schristos (PARSE_AND_LIST_LONGOPTS): Add option stub-group-size. 733*75fd0b74Schristos (PARSE_AND_LIST_OPTIONS): Add option stub-group-size. 734*75fd0b74Schristos (PARSE_AND_LIST_ARGS_CASES): Add OPTION_STUBGROUP_SIZE case. 735*75fd0b74Schristos (LDEMUL_FINISH): Update to gld${EMULATION_NAME}_finish. 736*75fd0b74Schristos * lang.c (print_input_statement): Skip if bfd has 737*75fd0b74Schristos BFD_LINKER_CREATED. 738*75fd0b74Schristos 739*75fd0b74Schristos2008-05-14 Alan Modra <amodra@bigpond.net.au> 740*75fd0b74Schristos 741*75fd0b74Schristos * Makefile.in: Regenerate. 742*75fd0b74Schristos 743*75fd0b74Schristos2008-05-09 Kai Tietz <kai.tietz@onevision.com> 744*75fd0b74Schristos 745*75fd0b74Schristos ld/PR6502 746*75fd0b74Schristos * emultempl/pep.em (compute_dll_image_base): Use bfd_vma instead 747*75fd0b74Schristos of long and change return type to bfd_vma. 748*75fd0b74Schristos (definfo): Change type of address from long to bfd_vma. 749*75fd0b74Schristos (set_pep_value): Replace strtoul to strtoull. 750*75fd0b74Schristos (gld_${EMULATION_NAME}_set_symbols): use bfd_vma instead of long.. 751*75fd0b74Schristos * pe-dll.c (pe_dll_generate_def_file): Use fprintf_vma to print 752*75fd0b74Schristos ImageBase. 753*75fd0b74Schristos (quick_reloc): Change argument address from int to bfd_size_type. 754*75fd0b74Schristos 755*75fd0b74Schristos2008-05-08 Tom Tromey <tromey@redhat.com> 756*75fd0b74Schristos 757*75fd0b74Schristos * ld.texinfo (PowerPC64 ELF64): Fix typo. 758*75fd0b74Schristos 759*75fd0b74Schristos2008-05-08 Alan Modra <amodra@bigpond.net.au> 760*75fd0b74Schristos 761*75fd0b74Schristos * elf32_spu.sh (OTHER_SECTIONS): Add "._ea". 762*75fd0b74Schristos * elf32ppc.sh: If building with spu support, put ".data.spehandle" 763*75fd0b74Schristos sections at the start of ".data" and provide a symbol to locate 764*75fd0b74Schristos the directory of embedded spe programs. 765*75fd0b74Schristos 766*75fd0b74Schristos2008-05-08 Alan Modra <amodra@bigpond.net.au> 767*75fd0b74Schristos 768*75fd0b74Schristos * ldexp.c (exp_print_token): Add ABSOLUTE, MIN_K, ASSERT_K. Correct 769*75fd0b74Schristos MAX_K. 770*75fd0b74Schristos (fold_binary <SEGMENT_START>): Set expld.result.section to 771*75fd0b74Schristos current section. Expand comment. Formatting. 772*75fd0b74Schristos (fold_name <DEFINED>): Set expld.result.section to current section. 773*75fd0b74Schristos 774*75fd0b74Schristos2008-04-28 Nathan Sidwell <nathan@codesourcery.com> 775*75fd0b74Schristos 776*75fd0b74Schristos * ldlang.c (lang_size_sections_1): Don't check LMA overflow on 777*75fd0b74Schristos non-load sections. 778*75fd0b74Schristos 779*75fd0b74Schristos2008-04-25 Michael Frysinger <vapier@gentoo.org> 780*75fd0b74Schristos 781*75fd0b74Schristos * configure.tgt (bfin-*-linux-uclibc*): Set targ_emul to elf32bfinfd 782*75fd0b74Schristos and targ_extra_emuls to elf32bfin. 783*75fd0b74Schristos 784*75fd0b74Schristos2008-04-23 Paolo Bonzini <bonzini@gnu.org> 785*75fd0b74Schristos 786*75fd0b74Schristos * aclocal.m4: Regenerate. 787*75fd0b74Schristos * configure: Regenerate. 788*75fd0b74Schristos 789*75fd0b74Schristos2008-04-03 Kai Tietz <kai.tietz@onevision.com> 790*75fd0b74Schristos 791*75fd0b74Schristos * scripttempl/pep.sc: Align start of symbol __CTOR_LIST__. 792*75fd0b74Schristos 793*75fd0b74Schristos2008-04-08 Alan Modra <amodra@bigpond.net.au> 794*75fd0b74Schristos 795*75fd0b74Schristos * po/POTFILES.in: Regenerate. 796*75fd0b74Schristos 797*75fd0b74Schristos2008-04-08 Alan Modra <amodra@bigpond.net.au> 798*75fd0b74Schristos 799*75fd0b74Schristos * emultempl/spuelf.em (auto_overlay, auto_overlay_file, 800*75fd0b74Schristos auto_overlay_fixed, auto_overlay_reserved, my_argc, my_argv): New vars. 801*75fd0b74Schristos (spu_before_allocation): Warn on --auto-overlay and existing overlays. 802*75fd0b74Schristos (struct tflist, clean_tmp): Move. 803*75fd0b74Schristos (new_tmp_file): New function, extracted from.. 804*75fd0b74Schristos (embedded_spu_file): ..here. 805*75fd0b74Schristos (spu_elf_open_overlay_script, spu_elf_relink): New function. 806*75fd0b74Schristos (gld${EMULATION_NAME}_finish): Pass a bunch of --auto-overlay params. 807*75fd0b74Schristos Warn on --auto-overlay and zero local store. 808*75fd0b74Schristos (gld${EMULATION_NAME}_choose_target): New function to stash argv. 809*75fd0b74Schristos (OPTION_SPU_AUTO_OVERLAY, OPTION_SPU_AUTO_RELINK, 810*75fd0b74Schristos OPTION_SPU_OVERLAY_RODATA, OPTION_SPU_FIXED_SPACE, 811*75fd0b74Schristos OPTION_SPU_RESERVED_SPACE, OPTION_SPU_NO_AUTO_OVERLAY): Define. 812*75fd0b74Schristos (PARSE_AND_LIST_LONGOPTS): Add entries for new options. 813*75fd0b74Schristos (PARSE_AND_LIST_OPTIONS): Likewise. 814*75fd0b74Schristos (PARSE_AND_LIST_ARGS_CASES): Likewise. 815*75fd0b74Schristos (LDEMUL_CHOOSE_TARGET): Define. 816*75fd0b74Schristos 817*75fd0b74Schristos2008-04-03 Kai Tietz <kai.tietz@onevision.com> 818*75fd0b74Schristos 819*75fd0b74Schristos PR ld/6026 820*75fd0b74Schristos * pe-dll.c (make_head): Fix iat and thunk addend offset. 821*75fd0b74Schristos 822*75fd0b74Schristos2008-03-31 Nick Clifton <nickc@redhat.com> 823*75fd0b74Schristos 824*75fd0b74Schristos * po/fr.po: Updated French translation. 825*75fd0b74Schristos 826*75fd0b74Schristos2008-03-24 Ian Lance Taylor <iant@google.com> 827*75fd0b74Schristos 828*75fd0b74Schristos The sha1 code is now in libiberty. 829*75fd0b74Schristos * sha1.c: Remove. 830*75fd0b74Schristos * sha1.h: Remove. 831*75fd0b74Schristos * Makefile.am (CFILES): Remove sha1.c. 832*75fd0b74Schristos (HFILES): Remove sha1.h. 833*75fd0b74Schristos (OFILES): Remove sha1.o. 834*75fd0b74Schristos (ld_new_SOURCES): Remove sha1.c. 835*75fd0b74Schristos (sha1.o): Remove target. 836*75fd0b74Schristos * Makefile.in: Rebuild. 837*75fd0b74Schristos 838*75fd0b74Schristos2008-03-20 Alan Modra <amodra@bigpond.net.au> 839*75fd0b74Schristos 840*75fd0b74Schristos * emultempl/spuelf.em: Update calls to elf32-spu.c funcs. 841*75fd0b74Schristos 842*75fd0b74Schristos2008-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 843*75fd0b74Schristos 844*75fd0b74Schristos * aclocal.m4: Regenerate. 845*75fd0b74Schristos * configure: Likewise. 846*75fd0b74Schristos * Makefile.in: Likewise. 847*75fd0b74Schristos 848*75fd0b74Schristos2008-03-14 Alan Modra <amodra@bigpond.net.au> 849*75fd0b74Schristos 850*75fd0b74Schristos * emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Protect 851*75fd0b74Schristos spu_elf_build_stubs with is_spu_target. 852*75fd0b74Schristos 853*75fd0b74Schristos2008-03-13 Alan Modra <amodra@bigpond.net.au> 854*75fd0b74Schristos 855*75fd0b74Schristos * Makefile.am: Run "make dep-am". 856*75fd0b74Schristos * Makefile.in: Regenerate. 857*75fd0b74Schristos * configure: Regenerate. 858*75fd0b74Schristos 859*75fd0b74Schristos2008-03-06 Joseph Myers <joseph@codesourcery.com> 860*75fd0b74Schristos Roman Zippel <zippel@linux-m68k.org> 861*75fd0b74Schristos 862*75fd0b74Schristos * emulparams/m68kelf.sh (GENERATE_PIE_SCRIPT): Define. 863*75fd0b74Schristos (COMMONPAGESIZE): Define. 864*75fd0b74Schristos 865*75fd0b74Schristos2008-02-22 Nick Clifton <nickc@redhat.com> 866*75fd0b74Schristos 867*75fd0b74Schristos PR ld/5785 868*75fd0b74Schristos * ldlang.c (lang_size_sections_1): Honour the setting of an 869*75fd0b74Schristos lma_region even if there is no vma region set, or the vma region 870*75fd0b74Schristos is the same as the lma region. 871*75fd0b74Schristos 872*75fd0b74Schristos2008-02-18 Nick Clifton <nickc@redhat.com> 873*75fd0b74Schristos 874*75fd0b74Schristos * scripttempl/armbpabi.sc (ENTRY): Do not define when performing a 875*75fd0b74Schristos relocatable link. 876*75fd0b74Schristos * scripttempl/elf32cr16.sc: Likewise. 877*75fd0b74Schristos * scripttempl/elf32cr16c.sc: Likewise. 878*75fd0b74Schristos * scripttempl/elf32crx.sc: Likewise. 879*75fd0b74Schristos * scripttempl/elf32sh-symbian.sc: Likewise. 880*75fd0b74Schristos * scripttempl/elf_chaos.sc: Likewise. 881*75fd0b74Schristos * scripttempl/elfd10v.sc: Likewise. 882*75fd0b74Schristos * scripttempl/elfi370.sc: Likewise. 883*75fd0b74Schristos * scripttempl/elfm68hc11.sc: Likewise. 884*75fd0b74Schristos * scripttempl/elfm68hc12.sc: Likewise. 885*75fd0b74Schristos * scripttempl/ip2k.sc: Likewise. 886*75fd0b74Schristos * scripttempl/iq2000.sc: Likewise. 887*75fd0b74Schristos * scripttempl/mep.sc: Likewise. 888*75fd0b74Schristos * scripttempl/v850.sc: Likewise. 889*75fd0b74Schristos * scripttempl/xstormy16.sc: Likewise. 890*75fd0b74Schristos 891*75fd0b74Schristos2008-02-16 Alan Modra <amodra@bigpond.net.au> 892*75fd0b74Schristos 893*75fd0b74Schristos PR ld/5761 894*75fd0b74Schristos * ldexp.c (fold_name <LOADADDR>): Check result of evaluating 895*75fd0b74Schristos load_base before calling make_abs. 896*75fd0b74Schristos 897*75fd0b74Schristos2008-02-15 Alan Modra <amodra@bigpond.net.au> 898*75fd0b74Schristos 899*75fd0b74Schristos * emultempl/alphaelf.em (alpha_after_open): Use elf_object_id. 900*75fd0b74Schristos * emultempl/hppaelf.em (hppaelf_create_output_section_statements): 901*75fd0b74Schristos Likewise. 902*75fd0b74Schristos * emultempl/ppc64elf.em (ppc_create_output_section_statements): 903*75fd0b74Schristos Likewise. 904*75fd0b74Schristos * emultempl/ppc32elf.em (is_ppc_elf32_vec): Delete. Replace all 905*75fd0b74Schristos uses with.. 906*75fd0b74Schristos (is_ppc_elf): ..this new macro. 907*75fd0b74Schristos 908*75fd0b74Schristos2008-02-15 Alan Modra <amodra@bigpond.net.au> 909*75fd0b74Schristos 910*75fd0b74Schristos * ldmain.h (output_bfd): Delete. 911*75fd0b74Schristos * ldmain.c (output_bfd): Delete. 912*75fd0b74Schristos Replace all occurrences of output_bfd with link_info.output_bfd. 913*75fd0b74Schristos * ldcref.c: Likewise. 914*75fd0b74Schristos * ldctor.c: Likewise. 915*75fd0b74Schristos * ldemul.c: Likewise. 916*75fd0b74Schristos * ldexp.c: Likewise. 917*75fd0b74Schristos * ldfile.c: Likewise. 918*75fd0b74Schristos * ldlang.c: Likewise. 919*75fd0b74Schristos * ldmisc.c: Likewise. 920*75fd0b74Schristos * ldwrite.c: Likewise. 921*75fd0b74Schristos * pe-dll.c: Likewise. 922*75fd0b74Schristos * emultempl/aix.em: Likewise. 923*75fd0b74Schristos * emultempl/alphaelf.em: Likewise. 924*75fd0b74Schristos * emultempl/armcoff.em: Likewise. 925*75fd0b74Schristos * emultempl/armelf.em: Likewise. 926*75fd0b74Schristos * emultempl/avrelf.em: Likewise. 927*75fd0b74Schristos * emultempl/beos.em: Likewise. 928*75fd0b74Schristos * emultempl/elf-generic.em: Likewise. 929*75fd0b74Schristos * emultempl/elf32.em: Likewise. 930*75fd0b74Schristos * emultempl/gld960.em: Likewise. 931*75fd0b74Schristos * emultempl/hppaelf.em: Likewise. 932*75fd0b74Schristos * emultempl/irix.em: Likewise. 933*75fd0b74Schristos * emultempl/linux.em: Likewise. 934*75fd0b74Schristos * emultempl/lnk960.em: Likewise. 935*75fd0b74Schristos * emultempl/m68hc1xelf.em: Likewise. 936*75fd0b74Schristos * emultempl/mmix-elfnmmo.em: Likewise. 937*75fd0b74Schristos * emultempl/mmo.em: Likewise. 938*75fd0b74Schristos * emultempl/pe.em: Likewise. 939*75fd0b74Schristos * emultempl/pep.em: Likewise. 940*75fd0b74Schristos * emultempl/ppc32elf.em: Likewise. 941*75fd0b74Schristos * emultempl/ppc64elf.em: Likewise. 942*75fd0b74Schristos * emultempl/scoreelf.em: Likewise. 943*75fd0b74Schristos * emultempl/sh64elf.em: Likewise. 944*75fd0b74Schristos * emultempl/spuelf.em: Likewise. 945*75fd0b74Schristos * emultempl/sunos.em: Likewise. 946*75fd0b74Schristos * emultempl/vanilla.em: Likewise. 947*75fd0b74Schristos * emultempl/vxworks.em: Likewise. 948*75fd0b74Schristos * emultempl/xtensaelf.em: Likewise. 949*75fd0b74Schristos * emultempl/z80.em: Likewise. 950*75fd0b74Schristos * ldlang.c (open_output): Don't return output, instead write 951*75fd0b74Schristos link_info_output_bfd directly. 952*75fd0b74Schristos * emultempl/alphaelf.em: Replace occurrences of link_info.hash->creator 953*75fd0b74Schristos with link_info.output_bfd->xvec. 954*75fd0b74Schristos * emultempl/hppaelf.em: Likewise. 955*75fd0b74Schristos * emultempl/ppc32elf.em: Likewise. 956*75fd0b74Schristos * emultempl/ppc64elf.em: Likewise. 957*75fd0b74Schristos * emultempl/spuelf.em: Likewise. 958*75fd0b74Schristos 959*75fd0b74Schristos2008-02-07 Alan Modra <amodra@bigpond.net.au> 960*75fd0b74Schristos 961*75fd0b74Schristos * ldlang.c (new_afile): Don't pass unadorned NULL to concat. 962*75fd0b74Schristos * ldfile.c (ldfile_add_library_path): Likewise. 963*75fd0b74Schristos * emultempl/elf32.em (check_ld_elf_hints, check_ld_so_conf): Likewise. 964*75fd0b74Schristos * emultempl/lnk960.em (lnk960_before_parse): Likewise. 965*75fd0b74Schristos * emultempl/spuelf.em (embedded_spu_file): Likewise. 966*75fd0b74Schristos 967*75fd0b74Schristos2008-02-07 Alan Modra <amodra@bigpond.net.au> 968*75fd0b74Schristos 969*75fd0b74Schristos * emultempl/spu_ovl.S: Use low bit of _ovly_table.size as 970*75fd0b74Schristos a "present" bit rather than low bit of .buf. Correct indexing 971*75fd0b74Schristos into _ovly_buf_table. Use relative loads and stores to access 972*75fd0b74Schristos overlay manager local vars. 973*75fd0b74Schristos * emultempl/spu_ovl.o: Regenerate. 974*75fd0b74Schristos 975*75fd0b74Schristos2008-02-04 H.J. Lu <hongjiu.lu@intel.com> 976*75fd0b74Schristos 977*75fd0b74Schristos PR 5715 978*75fd0b74Schristos * configure: Regenerated. 979*75fd0b74Schristos 980*75fd0b74Schristos2008-01-31 Marc Gauthier <marc@tensilica.com> 981*75fd0b74Schristos 982*75fd0b74Schristos * configure.tgt (xtensa*-*-*): Recognize processor variants. 983*75fd0b74Schristos 984*75fd0b74Schristos2008-01-28 Fabian Groffen <grobian@gentoo.org> 985*75fd0b74Schristos 986*75fd0b74Schristos * configure.tgt (x86_64-*-solaris2): Add support for this target. 987*75fd0b74Schristos 988*75fd0b74Schristos2008-01-28 Vincent Riviere <vincent.riviere@freesbee.fr> 989*75fd0b74Schristos 990*75fd0b74Schristos PR ld/5652 991*75fd0b74Schristos * genscripts.sh: Check for the existence of BASH_LINENO not just 992*75fd0b74Schristos the BASH shell before generating line numbers in the emulation 993*75fd0b74Schristos file. 994*75fd0b74Schristos 995*75fd0b74Schristos2008-01-28 Alan Modra <amodra@bigpond.net.au> 996*75fd0b74Schristos 997*75fd0b74Schristos * emultempl/spu_ovl.S: Rewrite. 998*75fd0b74Schristos * emultempl/spu_ovl.o: Regenerate. 999*75fd0b74Schristos * emultempl/spuelf.em (toe): Delete. 1000*75fd0b74Schristos (spu_place_special_section): Add param to control section placement. 1001*75fd0b74Schristos Adjust callers. 1002*75fd0b74Schristos (spu_elf_load_ovl_mgr): Adjust for struct _spu_elf_section_data 1003*75fd0b74Schristos changes. 1004*75fd0b74Schristos (spu_before_allocation): Adjust spu_elf_size_stubs call. 1005*75fd0b74Schristos (gld${EMULATION_NAME}_finish): Adjust spu_elf_build_stubs call. 1006*75fd0b74Schristos 1007*75fd0b74Schristos2008-01-25 H.J. Lu <hongjiu.lu@intel.com> 1008*75fd0b74Schristos 1009*75fd0b74Schristos PR ld/5670 1010*75fd0b74Schristos * ldlang.c (process_insert_statements): Silence gcc 4.1 alias 1011*75fd0b74Schristos warning. 1012*75fd0b74Schristos 1013*75fd0b74Schristos2008-01-25 Alan Modra <amodra@bigpond.net.au> 1014*75fd0b74Schristos 1015*75fd0b74Schristos * ld.texinfo (INSERT): Describe. 1016*75fd0b74Schristos * ldgram.y (ldgram_in_script, ldgram_had_equals): Delete. 1017*75fd0b74Schristos (INSERT_K, AFTER, BEFORE): Add as tokens. 1018*75fd0b74Schristos (ifile_p1): Handle INSERT statements. 1019*75fd0b74Schristos (saved_script_handle, force_make_executable): Move to.. 1020*75fd0b74Schristos * ldmain.c: ..here. 1021*75fd0b74Schristos (previous_script_handle): New global var. 1022*75fd0b74Schristos * ldmain.h (saved_script_handle, force_make_executable): Declare. 1023*75fd0b74Schristos (previous_script_handle): Likewise. 1024*75fd0b74Schristos * ldlex.l (INSERT_K, AFTER, BEFORE): Add tokens. 1025*75fd0b74Schristos * lexsup.c (parge_args <-T>): Set previous_script_handle. 1026*75fd0b74Schristos * ldlang.c (lang_for_each_statement_worker): Handle insert statement. 1027*75fd0b74Schristos (map_input_to_output_sections, print_statement): Likewise. 1028*75fd0b74Schristos (lang_size_sections_1, lang_do_assignments_1): Likewise. 1029*75fd0b74Schristos (insert_os_after): New function, extracted from.. 1030*75fd0b74Schristos (lang_insert_orphan): ..here. 1031*75fd0b74Schristos (process_insert_statements): New function. 1032*75fd0b74Schristos (lang_process): Call it. 1033*75fd0b74Schristos (lang_add_insert): New function. 1034*75fd0b74Schristos * ldlang.h (lang_insert_statement_enum): New. 1035*75fd0b74Schristos (lang_insert_statement_type): New. 1036*75fd0b74Schristos (lang_statement_union_type): Add insert_statement. 1037*75fd0b74Schristos (lang_add_insert): Declare. 1038*75fd0b74Schristos 1039*75fd0b74Schristos2008-01-18 Bob Wilson <bob.wilson@acm.org> 1040*75fd0b74Schristos 1041*75fd0b74Schristos * scripttempl/elfxtensa.sc: Merge ENTRY and .note.gnu.build-id 1042*75fd0b74Schristos changes from elf.sc. 1043*75fd0b74Schristos 1044*75fd0b74Schristos2008-01-16 Alan Modra <amodra@bigpond.net.au> 1045*75fd0b74Schristos 1046*75fd0b74Schristos * ldlang.c (lang_size_sections_1): Simplify SEC_NEVER_LOAD test. 1047*75fd0b74Schristos 1048*75fd0b74Schristos2008-01-16 Alan Modra <amodra@bigpond.net.au> 1049*75fd0b74Schristos 1050*75fd0b74Schristos * ldlang.h (lang_afile_asection_pair_statement_enum): Delete. 1051*75fd0b74Schristos (lang_afile_asection_pair_statement_type): Delete. 1052*75fd0b74Schristos (lang_statement_union_type): Delete afile_asection_pair_statement. 1053*75fd0b74Schristos * ldlang.c (lang_insert_orphan): Delete case handling the above. 1054*75fd0b74Schristos (map_input_to_output_sections, print_statement): Likewise. 1055*75fd0b74Schristos 1056*75fd0b74Schristos2008-01-15 Kaz Kojima <kkojima@rr.iij4u.or.jp> 1057*75fd0b74Schristos 1058*75fd0b74Schristos * emulparams/shlelf_linux.sh (DATA_START_SYMBOLS): Use PROVIDE 1059*75fd0b74Schristos with __data_start. 1060*75fd0b74Schristos * emulparams/shelf_nbsd.sh (DATA_START_SYMBOLS): Likewise. 1061*75fd0b74Schristos 1062*75fd0b74Schristos2008-01-15 Alan Modra <amodra@bigpond.net.au> 1063*75fd0b74Schristos 1064*75fd0b74Schristos PR 5604 1065*75fd0b74Schristos * ldlang.c (lang_gc_sections): Move code to set SEC_KEEP on entry 1066*75fd0b74Schristos syms to _bfd_elf_gc_keep. 1067*75fd0b74Schristos * emultempl/ppc64elf.em (ppc_before_allocation): Don't call 1068*75fd0b74Schristos ppc64_elf_edit_opd if no_opd_opt. 1069*75fd0b74Schristos 1070*75fd0b74Schristos2008-01-11 Tristan Gingold <gingold@adacore.com> 1071*75fd0b74Schristos Eric Botcazou <ebotcazou@adacore.com> 1072*75fd0b74Schristos 1073*75fd0b74Schristos * ldlang.c (lang_end): Warns if the entry point is not found when 1074*75fd0b74Schristos --gc-sections. 1075*75fd0b74Schristos Emit an error if no root is specified when --gc-sections -r. 1076*75fd0b74Schristos * ld.texinfo (Options): Document that --gc-sections is compatible 1077*75fd0b74Schristos with -r and -q. 1078*75fd0b74Schristos * ldmain.c (main): Do not error out if -r and --gc-sections. 1079*75fd0b74Schristos * scripttempl/elf.sc: Emit ENTRY command only if relocating. 1080*75fd0b74Schristos 1081*75fd0b74Schristos2008-01-10 Daniel Jacobowitz <drow@sources.redhat.com> 1082*75fd0b74Schristos 1083*75fd0b74Schristos PR ld/5533 1084*75fd0b74Schristos * ldlang.c (lang_end): Issue a warning for a missing start symbol 1085*75fd0b74Schristos of a shared library if the symbol was specified on the command 1086*75fd0b74Schristos line. 1087*75fd0b74Schristos 1088*75fd0b74Schristos2008-01-10 Alan Modra <amodra@bigpond.net.au> 1089*75fd0b74Schristos 1090*75fd0b74Schristos * ld.texinfo (--gc-sections): Describe linker behaviour. 1091*75fd0b74Schristos 1092*75fd0b74SchristosFor older changes see ChangeLog-2007 1093*75fd0b74Schristos 1094*75fd0b74SchristosCopyright (C) 2008 Free Software Foundation, Inc. 1095*75fd0b74Schristos 1096*75fd0b74SchristosCopying and distribution of this file, with or without modification, 1097*75fd0b74Schristosare permitted in any medium without royalty provided the copyright 1098*75fd0b74Schristosnotice and this notice are preserved. 1099*75fd0b74Schristos 1100*75fd0b74SchristosLocal Variables: 1101*75fd0b74Schristosmode: change-log 1102*75fd0b74Schristosleft-margin: 8 1103*75fd0b74Schristosfill-column: 74 1104*75fd0b74Schristosversion-control: never 1105*75fd0b74SchristosEnd: 1106