aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2003-02-18New tests.Alan Modra15-1/+625
2003-02-18 * elf32-ppc.h: New file.Alan Modra3-914/+2178
* elf32-ppc.c: Include elf32-ppc.h. (NOP, CROR_151515, CROR_313131, TP_OFFSET, DTP_OFFSET): Define. (struct ppc_elf_link_hash_entry): Rename "root" to "elf". Adjust uses. Add "tls_mask" field. (TLS_GD, TLS_LD, TLS_TPREL, TLS_DTPREL, TLS_TLS, TLS_TPRELGD): Define. (struct ppc_elf_link_hash_table): Rename "root" to "elf". Adjust uses. Add got, relgot, plt, relplt, dynbss, relbss, dynsbss, relsbss, sdata, sdata2, tls_sec, tls_get_addr, tlsld_got fields. Make use of htab shortcuts throughout file. (ppc_elf_link_hash_newfunc): Init tls_mask field. (ppc_elf_link_hash_table_create): Init new fields. (ppc_elf_copy_indirect_symbol): Copy tls_mask. (ppc_elf_howto_raw): Add tls relocs. (ppc_elf_reloc_type_lookup): Handle them. (ppc_elf_unhandled_reloc): New function. (ppc_elf_create_got): Stash got section pointer in hash table, return status. Make .rela.got too. (ppc_elf_create_dynamic_sections): Stash section pointers in htab. (ppc_elf_adjust_dynamic_symbol): Only set up copy relocs when NON_GOT_REF set. Don't allocate space in .plt here.. (allocate_dynrelocs): ..do so here instead, properly ref-counting and not allocating plt entries unnecessarily. Allocate got entries here. (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define. (ppc_elf_size_dynamic_sections): Allocate local got entries. Pass "info" during allocate_dynrelocs hash traversal. Use htab section shortcuts rather than searching for named sections. Get rid of "plt" and "strip" booleans. (update_local_sym_info, bad_shared_reloc): New functions. (ppc_elf_check_relocs): Handle TLS relocs. Move .rela.got creation to ppc_elf_create_got. Don't mark got or plt reloc syms dynamic, do so in allocate_dynreloc. Use update_local_sym_info and bad_shared_reloc. Disallow R_PPC_EMB_RELSDA, R_PPC_EMB_NADDR32, R_PPC_EMB_NADDR16, R_PPC_EMB_NADDR16_LO, R_PPC_EMB_NADDR16_HI and R_PPC_EMB_NADDR16_HA in shared libs. R_PPC_PLTREL32 is a plt reloc too. Refcount all relocs that might use a plt entry. Set NON_GOT_REF too. Enumerate all do-nothing relocs. (ppc_elf_gc_sweep_hook): Simplify removal of dynrelocs. Handle tls relocs and all plt relocs. (ppc_elf_tls_setup, ppc_elf_tls_optimize): New functions. (ppc_elf_finish_dynamic_symbol): Don't build got entries here. (ppc_elf_finish_dynamic_sections): Rewrite tag code using htab shortcuts. (ppc_elf_relocate_section): Tidy. Handle TLS relocs. Use bfd_elf_local_sym_name. Simplify unresolved reloc code. Build got entries and got relocs here. Warn on non-zero got reloc addend. Split out branch taken/not taken reloc code into a separate switch and correct offset calculation. Allow BRTAKEN/BRNTAKEN dynamic relocs. Split out HA reloc adjustments to separate switch statement. Don't warn on reloc overflow if we've already warned about undefined. Don't rebuild sym name when reporting errors. Report all possible errors from _bfd_final_link_relocate. (bfd_elf32_bfd_final_link): Don't define.
2003-02-18 * emultempl/ppc32elf.em: New file.Alan Modra5-19/+120
* emulparams/elf32ppc.sh (EXTRA_EM_FILE): Define. * Makefile.am (eelf32lppc.c): Depend on emultempl/ppc32elf.em. (eelf32lppcnto.c): Likewise. (eelf32lppcsim.c): Likewise. (eelf32ppcnto.c): Likewise. (eelf32ppc.c): Likewise. (eelf32ppc_fbsd.c): Likewise. (eelf32ppcsim.c): Likewise. (eelf32ppclinux.c): Likewise.
2003-02-18 * ppc.h: Replace DTPMOD64, TPREL64, DTPREL64 with DTPMOD32 etc.Alan Modra2-3/+10
(IS_PPC_TLS_RELOC): Define.
2003-02-18 * ld.texinfo: Remove spaces between @samp and opening brace.Alan Modra2-3/+7
2003-02-18*** empty log message ***gdbadmin1-1/+1
2003-02-17daily updateAlan Modra1-1/+1
2003-02-17 * elf64-ppc.c (ppc64_elf_relocate_section): Don't init "r". Don'tAlan Modra2-20/+14
rebuild sym name when reporting errors.
2003-02-17 * ld-powerpc/tlsexe.g: Update for 2003-02-14 elf64-ppc.c change.Alan Modra2-1/+5
2003-02-17 * emultempl/ppc64elf.em (ppc_create_output_section_statements): CheckAlan Modra2-18/+35
hash creator. (ppc_before_allocation): Don't do optimizations if wrong hash table. (gld${EMULATION_NAME}_finish): Ditto.
2003-02-17Revert previous change. Something doesn't work.Andrew Cagney3-2/+6
2003-02-17Fix the behaviour of --allow-shlib-undefined, so that it does what it claimsNick Clifton23-316/+322
to do. Add an inverse switch. Update the documentation.
2003-02-17SEGMENT_OVERLAPS: Check that LMAs overlap as well.Nick Clifton2-16/+28
2003-02-17Re-generate using autoconf 000227.Andrew Cagney2-24/+1237
2003-02-172003-02-17 Andrew Cagney <ac131313@redhat.com>Andrew Cagney3-2/+9
* configure.in (Makefile): Use the test ${target} != ${host}, instead of the absence of the "nm.h" file, to determine of the configuration non-native. * configure: Regenerate.
2003-02-17*** empty log message ***gdbadmin1-1/+1
2003-02-16 * configure.in (*-*-darwin*): Rename from powerpc*-*-darwin*,Geoffrey Keating3-1239/+38
don't configure target-libobjc. * configure: Regenerate.
2003-02-16*** empty log message ***gdbadmin1-1/+1
2003-02-15daily updateAlan Modra1-1/+1
2003-02-152003-02-13 Michael Chastain <mec@shout.net>Michael Chastain5-22/+11
* gdb.base/exprs.exp: Remove i960 remnants. * gdb.base/funcargs.exp: Likewise. * gdb.base/list.exp: Likewise. * gdb.base/ptype.exp: Likewise.
2003-02-15white spaceChristopher Faylor2-24/+24
2003-02-152003-02-14 David Carlton <carlton@math.stanford.edu>David Carlton2-3/+7
* gdb.c++/virtfunc.exp (test_virtual_calls): Change 'print pEe->D::vg()" from XFAIL to KFAIL.
2003-02-15*** empty log message ***gdbadmin1-1/+1
2003-02-14daily updateAlan Modra1-1/+1
2003-02-14* Makefile.tpl (RANLIB): Define.DJ Delorie3-0/+7
* Makefile.in: Regenerate.
2003-02-142003-02-14 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni2-0/+12
From Brian Ford <ford@vss.fsi.com> * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly conditionalize tui_active test. (lookup_cmd_1): Ditto.
2003-02-14* configure.in: Add check for _etext.Mark Kettenis5-391/+452
* maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't available. * config.in, configure: regenerated.
2003-02-14 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.Daniel Jacobowitz2-0/+7
2003-02-142003-02-14 Andrew Cagney <ac131313@redhat.com>Andrew Cagney12-152/+239
* main.c (tui_version): Delete variable. (captured_main): When --tui, set interpreter_p to "tui" instead of enabling tui_version. * printcmd.c (display_command) [TUI]: Test tui_active instead of tui_version. * cli/cli-decode.c (lookup_cmd_composition): Ditto. * cli/cli-cmds.c (disassemble_command): Ditto. * defs.h (tui_version): Delete declaration. * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c". (tui-interp.o): Add rules. (SUBDIR_TUI_OBS): Add "tui-interp.o". Index: tui/ChangeLog 2003-02-14 Andrew Cagney <ac131313@redhat.com> * tui.c (tui_enable, tui_disable): Don't modify tui_version. (tui_is_window_visible, tui_get_command_dimension): Test tui_active instead of tui_version. * tuiData.h (tui_version): Delete declaration. * tui-hooks.c (tui_init_hook, tui_event_loop): Delete function, moved to "tui-interp.c". (tui_exit, tui_command_loop): Ditto. (_initialize_tui): Don't initialize init_ui_hook. Initialize target_new_objfile_hook. * tui-interp.c: New file.
2003-02-14Change embedded documentation to use consistent indentation and to split upNick Clifton7-237/+241
long lines. Change informal style of description for functions lacking real documentation.
2003-02-14(_bfd_stab_section_find_nearest_line): For line number stabs outside ofNick Clifton2-47/+47
functions, treat values as absolute addresses.
2003-02-14(elf_core_file_p): Compare alternate machine codes for ELF backends whenNick Clifton2-33/+37
checking if the generic ELF target should be used.
2003-02-14* win32-nat.cc (register_loaded_dll): Correctly set address range forChristopher Faylor3-4/+9
just-loaded dll.
2003-02-14[ChangeLog]Jason Molenda4-1/+36
2003-02-12 Jason Molenda (jmolenda@apple.com) * symmisc.c (print_objfile_statistics): Include information about the number of psymtabs and symtabs in each object file. [testsuite/ChangeLog] 2003-02-13 Jason Molenda (jmolenda@apple.com) * gdb.base/maint.exp: Update maint print statistics regexp to include new entries.
2003-02-14*** empty log message ***gdbadmin1-1/+1
2003-02-13 * elf64-ppc.c (ppc64_elf_link_hash_table_create): Init tls_get_addr.Alan Modra2-111/+88
(ppc64_elf_copy_indirect_symbol): Merge tls_mask too. (ppc64_elf_gc_sweep_hook): Simplify removal of dyn_relocs. (allocate_dynrelocs): Don't treat undefined and undefweak specially. (ppc_size_one_stub): Fix warning, and tighten plt entry check. (group_sections): Don't share a stub section if stubs are for a large section. Adjust comment. (ppc64_elf_size_stubs): Roughly double the size left for stubs if !stubs_always_before_branch. (ppc64_elf_relocate_section): Initialize tlsld GOT entry once. Don't treat undefined and undefweak specially when processing dyn relocs.
2003-02-13daily updateAlan Modra1-1/+1
2003-02-132003-02-13 Michael Chastain <mec@shout.net>Michael Chastain2-2/+4
* gdb.c++/inherit.exp: Remove call to get_debug_format.
2003-02-13bfd/Jakub Jelinek14-15/+194
* elflink.h (elf_link_add_object_symbols): Handle .symver x, x@FOO. ld/testsuite/ * ld-shared/shared.exp: Run on s390*-*-linux* and x86_64-*-linux* too. xfail tests linking non-pic code into shared libs on x86_64-*-linux*. * ld-elfvsb/elfvsb.exp: Likewise. * ld-elfvers/vers.exp: Likewise. Add vers24a, vers24b and vers24c tests. * ld-elfvers/vers3.ver: Allow VERS_2.0 to come before GLIBC_* version. * ld-elfvers/vers19.ver: Likewise. * ld-elfvers/vers24a.c: New test. * ld-elfvers/vers24b.c: New test. * ld-elfvers/vers24c.c: New test. * ld-elfvers/vers24.map: New test. * ld-elfvers/vers24.rd: New test. * lib/ld-lib.exp (run_ld_link_tests): Add optional 7th argument cflags. If source files have .c extension, compile them first.
2003-02-132003-02-12 Michael Chastain <mec@shout.net>Michael Chastain6-122/+14
* gdb.c++/classes.exp: Remove setup_xfail_format for DWARF 1. * gdb.c++/inherit.exp: Likewise. * gdb.c++/cplusfuncs.exp: Remove suppression logic for DWARF 1. * gdb.c++/templates.exp: Likewise. * gdb.c++/virtfunc.exp: Likewise.
2003-02-13(elf32_thumb_to_arm_stub): Include section VMAs in computation of offset toNick Clifton2-7/+15
insert into BL instruction.
2003-02-13merge from gccDJ Delorie2-15/+32
2003-02-13 * main.h (struct captured_main_args): Add interpreter_p.Keith Seitz5-5/+15
* main.c (captured_main): Initialize interpreter_p from context. * gdb.c (main): Set interpreter_p argument. * Makefile.in (gdb.o): Add dependency for interps.h.
2003-02-13Documenation formatting improvements.Nick Clifton3-442/+454
Move Gnu Free Documenation License to a seperate file.
2003-02-13For N_SLINE only include function_start_offset if the symbol is within aNick Clifton2-5/+11
function; otherwise, the value is absolute.
2003-02-13Handle global register vairables.Nick Clifton2-18/+19
2003-02-13Add 'H' to getlongopts so that "readelf -H" does not display "unknown option"Nick Clifton2-1/+3
2003-02-13Fix help messages about demangling stylesNick Clifton3-7/+15
2003-02-13merge from gccDJ Delorie3-1/+15
2003-02-13*** empty log message ***gdbadmin1-1/+1