aboutsummaryrefslogtreecommitdiff
path: root/binutils/nlmconv.c
AgeCommit message (Collapse)AuthorFilesLines
1994-06-21 * configure.in: Set nlmconv_defs to -DNLMCONV_cputype for all theIan Lance Taylor1-10/+52
netware targets. Write it into Makefile as NLMCONV_DEFS. * Makefile.in (nlmconv.o): Pass $(NLMCONV_DEFS) to $(CC). * nlmconv.c: Only compile code for specific CPU types if NLMCONV_cputype is defined.
1994-06-21 * nlmconv.c (main): Change uses of bfd_abs_section, etc., to useIan Lance Taylor1-6/+6
bfd_abs_section_ptr or bfd_is_abs_section, etc. (i386_mangle_relocs, alpha_mangle_relocs): Likewise. (powerpc_build_stubs): Likewise. * nm.c (filter_symbols, print_symbols): Likewise. * objcopy.c (filter_symbols): Likewise. (mark_symbols_used_in_relocations): Likewise. * objdump.c (remove_useless_symbols, dump_relocs): Likewise. * size.c (sysv_internal_printer): Likewise.
1994-05-20Remove sanitization of PowerPC NetWare.Ian Lance Taylor1-24/+16
1994-04-22 * nlmconv.c (setup_sections): Remove special handling of .reginfoIan Lance Taylor1-29/+3
section. (copy_sections): Likewise. (alpha_mangle_relocs): Use bfd_ecoff_get_gp_value rather than the special ECOFF .reginfo section.
1994-04-22 * nlmconv.c (main): Use CyGnUsEx rather than CyGnUsSeCs forIan Lance Taylor1-4/+3
sections header. Rename from cygnus_sections to cygnus_ext.
1994-04-21 * nlmconv.c (secsec): New static variable.Ian Lance Taylor1-3/+75
(main): Create .nlmsections section in output BFD. Store information about it in sections header. (setup_sections): Allocate space in sections header. (copy_sections): Copy zero sized sections. Put information about each section in the sections header.
1994-04-20start-sanitize-powerpc-netwareIan Lance Taylor1-5/+23
* nlmconv.c (powerpc_build_stubs): Take new outbfd argument. Change caller. Create custom header for new PowerPC NetWare format. end-sanitize-powerpc-netware * Makefile.in (nlmheader.o, nlmconv.o): Update dependencies. * nlmconv.c: Include bfd.h and libiberty.h with "", not <>. * nlmheader.y: Include bfd.h with "", not <>.
1994-03-31Only build PowerPC stubs if we are converting a PowerPC object file.Ian Lance Taylor1-2/+4
1994-03-30 Update for recent BFD changes to symbol and reloc reading. RenameIan Lance Taylor1-30/+43
all uses of get_symtab_upper_bound to bfd_get_symtab_upper_bound. Also: * coffgrok.c (symcount): Change to long. (do_sections_p1): Check for error return from bfd_get_reloc_upper_bound. Change relcount to long, and check for error from bfd_canonicalize_reloc. (coff_grok): Change storage to long. Check for error from bfd_get_symtab_upper_bound and bfd_canonicalize_symtab. * nlmconv.c (main): Change symcount, newsymalloc, newsymcount, and i to long. Check for error from bfd_get_symtab_upper_bound and bfd_canonicalize_symtab. (copy_sections): Change reloc_size and reloc_count to long. Check for error from bfd_get_reloc_upper_bound and bfd_canonicalize_reloc. (mangle_relocs, i386_mangle_relocs, alpha_mangle_relocs): Change reloc_count_ptr argument to long *. Make corresponding changes to variables loaded from *reloc_count_ptr. * nm.c (display_rel_file): Change storage and symcount to long. Check for errors from bfd_get_symtab_upper_bound and bfd_canonicalize_symtab. * objcopy.c (filter_symbols): Change symcount, src_count and dst_count to long. (copy_object): Change symcount to long. Pass another argument to fprintf. Check for errors from bfd_get_symtab_upper_bound and bfd_canonicalize_symtab. (copy_section): Change relcount to long. Check for errors from bfd_get_reloc_upper_bound and bfd_canonicalize_reloc. (mark_symbols_used_in_relocations): Change relcount and i to long. Check for errors form bfd_get_reloc_upper_bound and bfd_canonicalize_reloc. * objdump.c (storage): Remove global variable. (symcount): Changed to long. (slurp_symtab): New local variable storage. Check for errors from bfd_get_symtab_upper_bound and bfd_canonicalize_symtab. (remove_useless_symbols): Change return value and count to long. (objdump_print_address): Change min, max, thisplace and i to long. (disassemble_data): Change i to long. (dump_symbols): Change count to long. (dump_relocs): Change relcount to long. Check for errors from bfd_ret_reloc_upper_bound and bfd_canonicalize_reloc. (display_info_table): Add casts when passing LONGEST_ARCH for printf %* argument.
1994-03-12 * nlmconv.c (main): For PowerPC, call powerpc_build_stubs andIan Lance Taylor1-21/+488
powerpc_resolve_stubs. Use __GOT0, not __toc_start. Handle it if the start and end symbols are not in the text section. (struct powerpc_stub): New struct definition. (powerpc_stubs, powerpc_stub_insns): New static variables. (powerpc_initial_got_size): New static variable. (powerpc_build_stubs): New function. (powerpc_resolve_stubs): New function. (powerpc_mangle_relocs): Clear extraneous data in .got section. Rearrange reloc handling to handle ELF relocs that are not partial_inplace. Resolve PC relative relocs.
1994-02-17 * ar.c, bucomm.c, nlmconv.c, nm.c, objcopy.c, objdump.c,David MacKenzie1-2/+3
size.c: Use bfd_get_error and bfd_set_error and new error names.
1994-02-03 * nlmconv.c (main): Use bfd_get_flavour instead of struct member.David MacKenzie1-1/+1
* ar.c (print_contents, extract_file), size.c (print_berkeley_format): Use bfd_get_filename and bfd_my_archive instead of dereferencing the structs directly.
1994-02-03 * nlmconv.c (main), objcopy.c (copy_file): Print matching formatsDavid MacKenzie1-3/+12
if ambiguous match. * nm.c (display_file), size.c (display_bfd): Eliminate gotos. Print matching formats if there is an ambiguous match. Use bfd_nonfatal instead of hardcoded error message if nothing matches. * arsup.c, ar.c, objdump.c: Use bfd_get_filename instead of abfd->filename. * nm.c (display_archive): New function, from code in display_file. (display_rel_file): Renamed from do_one_rel_file. * size.c: Indent. (display_archive): New function from code in display_file. (display_file): Check bfd_close error return. * strings.c (strings_object_file): Check bfd_check_format error return. * strings.c, objdump.c, size.c: Use bfd_nonfatal instead of bfd_perror. * bucomm.c: Delete references to exit_handler. It wasn't set anywhere, and now that we're using the libiberty xmalloc, it wouldn't always get called before exiting. (list_matching_formats): Function moved from objdump.c. * bucomm.h: Declare it. * objdump.c (disassemble_data): Move some variable decls closer to their use. Add some comments. Replace a nested block with a return.
1994-01-14 * nlmconv.c (main): Warn about an attempt to use a shared libraryIan Lance Taylor1-0/+7
with uninitialized data.
1994-01-14 * nlmconv.c (setup_sections): Make sure that we align theIan Lance Taylor1-7/+17
output_offset of each input section appropriately.
1993-12-10 * nlmconv.c (main): Warn about imported symbols that are not inIan Lance Taylor1-2/+1
the IMPORT list even if the IMPORT keyword is not used. Fixes PR 4006.
1993-12-10 * nlmconv.c (debug, unlink_on_exit): New static variables.Ian Lance Taylor1-46/+398
(long_options): Add "debug" and "linker". (main): Handle -d and -l arguments. Make command line input and output files optional. Parse the command file before opening the BFD's, which requires storing more information in local variables. If INPUT names multiple files, link them together. Use OUTPUT for the output file name if not named on command line. (show_usage): Changed for new options. (link_inputs): New function to automatically invoke linker to handle multiple INPUT files. (choose_temp_base_try, choose_temp_base, pexecute): New functions, mostly copied from gcc/gcc.c. * nlmconv.h (input_files, output_file): Declare. * nlmheader.y (input_files, output_file): Define. (command): Support INPUT with a string_list argument. Support OUTPUT. (string_list): Renamed from module_list. * Makefile.in (nlmconv.o): Define LD_NAME based on program_transform_name. Fixes PR 3974.
1993-12-06 * nlmconv.c (long_options): Changed --header-info to --header-fileIan Lance Taylor1-21/+210
to match documentation and usage message.
1993-12-02Remove unused declaration from nlmconv.c. Add ChangeLog entry forIan Lance Taylor1-3/+0
Sean's change.
1993-12-02Restore changes clobbered by Sean's check in.Ian Lance Taylor1-9/+24
1993-10-27 * nlmconv.c (main): Force moduleName field to upper case.Ian Lance Taylor1-42/+106
1993-08-31 * nlmconv.c (main): Force creation of .bss section. Set up theIan Lance Taylor1-39/+288
sections before looking at the symbols. Move all common symbols into .bss section. Automatically define _edata and _end. Only export symbols in the export list, with multiple prefixes if necessary. Warn if no version. Always create extended header. Set date automatically if not already set. (setup_sections): Count size of bss sections. (mangle_relocs, i386_mangle_relocs): Accept section argument, and take reloc_count as a changeable pointer; changed callers. (i386_mangle_relocs): Remove PC relative relocs within a section, as they require no adjustment. * nlmheader.y: Fixed memory allocation throughout: token STRING is now allocated on the heap, and freed if not needed. Null terminated copyright message. Accept version with only two strings. (symbol_list_opt): New nonterminal, either symbol_list or empty. (symbol_list): Use left recursion to avoid overflowing parser stack. (yylex): Rearranged beginning of line check. Accept quoted strings using single quotes. End generic argument at comment character or parentheses. (string_list_append): Fixed. (string_list_append1): New function.
1993-08-11Write out all the header information, except the SHARELIB stuff whichIan Lance Taylor1-0/+877
is still not implemented.