aboutsummaryrefslogtreecommitdiff
path: root/ld/ldmain.c
AgeCommit message (Collapse)AuthorFilesLines
2001-07-112001-07-11 Jakub Jelinek <jakub@redhat.com>Jakub Jelinek1-0/+8
* ldmain.c (main): Disallow -F and -f without -shared.
2001-06-15 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:Hans-Peter Nilsson1-0/+1
Set new link_info member export_dynamic. * ldmain.c (main): Initialize new link_info member export_dynamic.
2001-05-23Add MIPS r12k supportNick Clifton1-1/+2
2001-05-022001-05-02 H.J. Lu <hjl@gnu.org>H.J. Lu1-1/+1
* ldfile.c: Include "libiberty.h". * ldlex.l: Likewise. * ldmisc.c (buystring): Removed. * ldmisc.h: Likewise. * ldfile.c: Replace buystring with xstrdup. * ldlang.c: Likewise. * ldlex.l: Likewise. * ldmain.c: Likewise. * ldmisc.c: Likewise. * lexsup.c: Likewise. * mpw-eppcmac.c: Likewise.
2001-04-13bfd/Jakub Jelinek1-2/+2
* libbfd-in.h (_bfd_merge_section): New. (_bfd_write_merged_section): New. (_bfd_merged_section_offset): New. * libbfd.h: Rebuilt. * linker.c (_bfd_generic_link_output_symbols): Handle discard_sec_merge. * aoutx.h (aout_link_write_symbols): Likewise. * pdp11.c (aout_link_write_symbols): Likewise. * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section. (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE sections. (elf_link_sec_merge_syms): New. (elf_link_input_bfd): Call _bfd_merged_section_offset and _bfd_write_merged_section. Handle discard_sec_merge. * elf-bfd.h (struct elf_link_hash_table): Add merge_info field. (struct bfd_elf_section_data): Likewise. * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and SEC_STRINGS section flags and entsize from their ELF counterparts. (_bfd_elf_link_hash_table_init): Initialize merge_info. (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize from their BFD counterparts. * merge.c: New file. * Makefile.am: Add strtab.lo. * Makefile.in: Rebuilt. include/ * bfdlink.h (bfd_link_discard): Add discard_sec_merge. gas/ * config/obj-elf.c (obj_elf_change_section): Add entsize argument, handle SHF_MERGE and SHF_STRINGS. (obj_elf_parse_section_letters): Set SHF_MERGE and SHF_STRINGS. (obj_elf_section): Allow additional argument specifying entity size. * write.c (adjust_reloc_syms): Keep relocations against local symbols in SEC_MERGE sections. ld/ * ldmain.c (main): Default to discard_sec_merge. * lexsup.c (OPTION_DISCARD_NONE): Define. (ld_options): Add --discard-none. (parse_args): Handle OPTION_DISCARD_NONE. * ldlang.c (wild_doit): SEC_MERGE should be set in the output section only if SEC_MERGE and SEC_STRINGS flags and entsize of all its input sections match.
2001-03-13Fixtypos in ChangeLogs, fix copyright dates in filesNick Clifton1-1/+1
2000-12-12Add link option to allow undefiedn symbols in shared librariesNick Clifton1-0/+1
2000-11-24Remove redundant init of config.make_executable to true.Nick Clifton1-1/+0
2000-10-092000-10-09 Kazu Hirata <kazu@hxi.com>Kazu Hirata1-2/+1
* ldcref.c: Fix formatting. * ldctor.h: Likewise. * ldemul.c: Likewise. * ldemul.h: Likewise. * ldexp.c: Likewise. * ldexp.h: Likewise. * ldfile.c: Likewise. * ldfile.h: Likewise. * ld.h: Likewise. * ldlang.c: Likewise. * ldlang.h: Likewise. * ldmain.c: Likewise.
2000-09-212000-09-21 Kazu Hirata <kazu@hxi.com>Kazu Hirata1-30/+21
* ldmain.c: Fix formatting. * ldmisc.c: Likewise. * ldver.c: Likewise. * ldwrite.c: Likewise.
2000-09-14Disable relaxation if multiple symbol definitions are encountered - otherwiseNick Clifton1-0/+7
the linker could abort with an assertion failure.
2000-09-05--split-by-reloc, --split-by-file extensions. --unique option.Alan Modra1-0/+2
2000-07-202000-07-20 H.J. Lu <hjl@gnu.org>H.J. Lu1-0/+1
* ld.texinfo: Add documentation for --disable-new-dtags and --enable-new-dtags. * ldmain.c (main): Initialize link_info.new_dtags to false. * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add --disable-new-dtags and --enable-new-dtags. (gld_${EMULATION_NAME}_list_options): Likewise.
2000-07-202000-07-19 H.J. Lu <hjl@gnu.org>H.J. Lu1-0/+2
* emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed. (PARSE_AND_LIST_PROLOGUE): New. (PARSE_AND_LIST_LONGOPTS): Likewise. (PARSE_AND_LIST_OPTIONS): Likewise. (PARSE_AND_LIST_ARGS_CASES): Likewise. * ldmain.c (main): Clear link_info.flags and link_info.flags_1. * lexsup.c (ld_options): Comment out 'z'. (parse_args): Likewise. * emultempl/elf32.em: Include "elf/common.h". (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z options. (gld_${EMULATION_NAME}_list_options): Likewise. * ld.texinfo: Add documentation for the recognized -z options.
2000-07-11Remove some forward declarations in ldemul.h and ldfile.h, andAlan Modra1-1/+1
re-arrange header include order. Fix shadowing warnings in ldlang.h Fix compile errors in mpw-elfmips.c
2000-06-20Correct pointer comparisons relying on NULL less than any other pointer.Alan Modra1-1/+1
Alexander Aganichev's fix for ieee.c
2000-06-15Correctly set SEC_READONLY for .text section.Alan Modra1-11/+12
2000-05-26Eli Zaretskii's DOSish file name patches.Alan Modra1-1/+10
2000-05-23When deciding if ".text" section should be read-only, don't forget to resetNick Clifton1-10/+11
SEC_READONLY because it could be already set.
2000-05-17Apply patch from Richard Gorton <gorton@scrugs.lkg.dec.com> to implementNick Clifton1-1/+2
--emit-relocs switch to the linker to preserve relocs in an output executable
2000-03-012000-03-01 H.J. Lu <hjl@gnu.org>H.J. Lu1-6/+15
* ldmain.c (undefined_symbol): Take one more arg, fatal, to indicate if the undefined symbol is a fatal error or not. Don't delete the output file if "fatal" is false.
1999-07-11 * Many files: Changes to avoid gcc warnings: Add ATTRIBUTE_UNUSEDIan Lance Taylor1-9/+9
as appropriate. Fill in structure initializations.
1999-06-23 * ldmain.c (main): Initialize link_info.init_function andMark Mitchell1-1/+5
link_info.fini_function. * lexsup.c (OPTION_INIT): New macro. (OPTION_FINI): Likewise. (ld_options): Add descriptions for them. (parse_args): Handle them.
1999-05-0319990502 sourceware importbinu_ss_19990502Richard Henderson1-0/+1300