Age | Commit message (Collapse) | Author | Files | Lines |
|
boundaries.
|
|
* config/i386-go32.mt: New file
* emulparams/i386go32.sh: New file
* scripttempl/i386go32.sc: New file
|
|
* Makefile.in (em_m68klynx.c, em_i386lynx.c, em_sparclynx.c): Use
Lynx-specific script templates.
* configure.in (sparclite*-*-coff): Use coff-sparc.
* emulparams/i386lynx.sh (SCRIPT_NAME): Set to i386lynx.
* emulparams/sparclynx.sh (SCRIPT_NAME): Set to sparclynx.
(ENTRY): Set to __main.
* scripttempl/i386lynx.sc: New file, script for I386 Lynx.
* scripttempl/m68klynx.sc: Add insertion of ctor/dtor sections.
* scripttempl/sparclynx.sc: New file, script for uSparc Lynx.
|
|
byte boundary, in case the global constructors do not take up an
even 16 bytes.
|
|
exist, get crtbegin based on gcc -print-libgcc-file-name.
(HOSTING_LIBS): Similar change for ../gcc/crtend.o.
|
|
section, align it according to its requirements.
|
|
|
|
|
|
position of a padding statement, and adjust dot accordingly.
|
|
linker, so don't mention them.
|
|
|
|
.fini sections into .text; keep them separate.
* config/i386sco.mh (HOSTING_CRT0): If ../gcc/crtbegin.o does not
exist, get crtbegin based on gcc -print-libgcc-file-name.
(HOSTING_LIBS): Similar change for ../gcc/crtend.o.
|
|
manufacturer.
|
|
if building a final executable.
|
|
|
|
|
|
sections never overlap when using -r.
|
|
changes: get_symtab_upper_bound renamed and returns long,
bfd_canonicalize_symtab returns long, check for error indications.
|
|
_cooked_size if it is non-zero, size otherwise.
(size_input_section): Likewise.
(lang_do_assignments): Likewise (case lang_input_section_enum).
|
|
real to true for lang_input_file_is_marker_enum. Clear the_bfd.
(lang_add_input_file): Pass true to new_afile for add_to_list.
(lookup_name): Remove force_load argument. Changed all callers.
Pass false to new_afile for add_to_list. Split loading of symbols
out into separate function.
(load_symbols): New function split out of lookup_name. Don't load
the symbols if they are already loaded.
(open_input_bfds): For lang_input_statement_enum call load_symbols
rather than lookup_name.
(lang_process): Pass abs_output_section rather than NULL to
lang_size_sections.
(lang_startup): Set real field of first_file to true.
|
|
(gld960_before_parse): Pass NULL as final argument to concat.
|
|
four byte boundary.
|
|
building a bfd_data_link_order, rather than by setting the section
contents immediately.
|
|
* ldmain.c (add_to_set): Now takes reloc argument rather than
bitsize. Check config.build_constructors here. If an new hash
table entry is created, mark it as undefined.
(constructor_callback): No longer takes bitsize argument. Pass
BFD_RELOC_CTOR to ldctor_add_set_entry, but first make sure the
BFD backend supports it.
(reloc_overflow): Handle a NULL abfd argument.
(reloc_dangerous, unattached_reloc): Likewise.
* ldctor.c: Include ldmain.h.
(struct set_info): Change bitsize field to reloc.
(ldctor_add_set_entry): Now takes reloc argument rather than
bitsize. Don't bother to check config.build_constructors here.
(ldctor_build_sets): Get the size from the reloc howto. If
generating relocateable output, call lang_add_reloc rather than
lang_add_data.
* ldctor.h (ldctor_add_set_entry): Change declaration to use reloc
instead of bitsize.
* ldlang.h (statement_enum): Add lang_reloc_statement_enum.
(lang_reloc_statement_type): New structure.
(lang_statement_union_type): Add reloc_statement field.
(lang_add_reloc): Declare new function.
* ldlang.c (lang_for_each_statement_worker): Handle
lang_reloc_statement_enum.
(map_input_to_output_sections, print_statement): Likewise.
(lang_size_sections, lang_do_assignments): Likewise.
(print_reloc_statement): New function.
(lang_add_reloc): New function.
* ldwrite.c (build_link_order): Handle lang_reloc_statement_enum.
|
|
|
|
|
|
|
|
defined.
* emulparams/elf32mipb.s (TEXT_START_SYMBOLS): Define _ftext.
(DATA_START_SYMBOLS): Define _fdata.
|
|
* ldlang.c (lookup_name): Stomp on a pointer if in MPW.
* mpw-em.c: Edit to reflect changed syntax of compiled-in linker
scripts.
|
|
* mpw-xconfig.in (emulname): Define.
|
|
|
|
* mpw-build.in: Remove, subsumed in mpw-make.in.
* mpw-make.in (bindir): Fix pathname.
(install): Move here from mpw-build.in.
|
|
* ldlang.c (cat): Define using ANSI style if ALMOST_STDC defined.
|
|
works again. Attach some output symbols to the stub file bfd.
|
|
(file_chain): Add decl.
(hppa_look_for_stubs_in_section): Delete decl.
(hppaelf_finish): Reenable code. Do not pass symbols
down to hppa_look_for_stubs_in_section.
|
|
Just use map_file or map_filename instead.
(add_archive_element): Use minfo to write map information, not
info_msg.
(constructor_callback): Use fprintf to write map information, not
info_msg.
* ldmain.h (write_map): Don't declare.
* ldgram.y (mri_script_command): Removed reference to write_map.
* ldlang.c (lang_one_common): Likewise.
* lexsup.c (parse_args): Likewise.
|
|
|
|
fill_opt to avoid an ambiguity when both are used.
* ld.texinfo: Changed accordingly.
|
|
* ldlex.h (input_type): Don't initialize enum constants to
particular values.
* ldlex.l: Use a switch to return the right token based on
input_type, rather than knowing that input_type has a value based
on a token type.
|
|
* lexsup.c: Include ldver.h.
* Makefile.in: Rebuilt dependencies.
|
|
* ldlang.c (lookup_name): don't call bfd_set_gp_size.
(ldlang_add_file): call it here instead.
|
|
|
|
Add comments in several functions as to their purpose and
how they function (or my current best guess). Clean up horrible
spacing and indention that never should have been accepted in the
first place. Add FIXMEs for issues which need to be resolved.
Disable linker-stub generation until it gets fixed. This allows
the linker to at least work on simple code for testing purposes.
|
|
it via hppaelf_finish). Prototype moved into ldlang.h.
(lang_process): Move problematic extra call to lang_size_sections
into the PA ELF specific code.
* emultempl/hppaelf.em (hppaelf_finish): Extra call to
lang_size_sections moved here.
|
|
|
|
Fix misunderstanding in -Y and -call_shared et al.
|
|
|
|
|
|
* config/ppc-elf32.mt: New file.
* emulparams/elf32ppc.sh: New file.
* emultempl/ppc.em: New file.
* Makefile.in (ALL_EMULATIONS): Added em_elf32ppc.o.
(em_elf32ppc.c): New target; uses elf32ppc.sh, ppc.em and elf.sc.
(EMULATION_OFILES): Added dependencies on ldexp.h and ldlang.h.
|
|
* ld.texinfo (Options): Document changes to option syntax.
* Makefile.in: Update dependencies.
* ldver.c (help): Tweak dashes in usage message.
* ldgram.y (%union): Remove unused members.
Remove %tokens for command line options; add ones for input types.
(command_line): Rules removed.
(file): Instead of command line, recognize an
input type indicator, then use the nonterminal for that type.
(defsym_expr): New nonterminal from code formerly in command_line.
* ldlex.h: Declare parser input type enum and variable.
Don't declare parse_line.
* ldlex.l: Remove unused variables. Make some used ones static
and comment them.
(COMMAND): Start state and its rules removed.
At start of yylex, return input state token if at start of input.
(lex_redirect): Don't need to set yyout.
(ldlex_command): Function removed.
* ldmain.c (main): Instead of calling parse_line, set up the
redirections and call yyparse directly.
* ldmisc.c (vfinfo): If there's no input filename, print nothing, not
"command line".
* lexsup.c: Remove #if 0'd code.
(parse_line): Function removed.
(parse_args): Rewrite to use getopt_long_only.
(set_default_dirlist): New function from code formerly in
ldgram.y:command_line.
(set_section_start): New function.
* emultempl/generic.em, emultempl/gld960.em, emultempl/hppaelf.em,
emultempl/lnk960.em, emultempl/m88kbcs.em: Don't enclose
compiled-in link scripts in "{" and "}", as the grammar no longer
wants them to be.
|