OSDN Git Service
amodra [Tue, 2 Oct 2001 06:02:11 +0000 (06:02 +0000)]
* coffdump.c (PROGRAM_VERSION): Delete.
(main <'V'>): Call print_version.
* srconv.c: Likewise.
* sysdump.c: Likewise.
* version.c (program_version): Remove.
(print_version): Use BFD_VERSION_STRING. Just print the current
year in copyright message.
* addr2line.c (program_version): Remove unused declaration.
* objdump.c (display_target_tables): Use BFD_VERSION_STRING in
place of BFD_VERSION.
* Makefile.am (Makefile): Depend on bfd/configure.in
(cplus-dem.o): Depend on Makefile.
Run "make dep-am"
* Makefile.in: Regenerate.
amodra [Tue, 2 Oct 2001 06:00:48 +0000 (06:00 +0000)]
* Makefile.am (Makefile): Depend on bfd/configure.in
Run "make dep-am"
* Makefile.in: Regenerate.
amodra [Tue, 2 Oct 2001 05:59:56 +0000 (05:59 +0000)]
* common.h (NLM_CAT, NLM_CAT3): Don't define.
(NLM_CAT4): Update conditions under which this is defined. Document
why CONCAT4 can't be used.
amodra [Tue, 2 Oct 2001 05:59:30 +0000 (05:59 +0000)]
* Makefile.in: Regenerate.
amodra [Tue, 2 Oct 2001 05:58:36 +0000 (05:58 +0000)]
* version.h: New file.
* bfd-in.h: (BFD_VERSION): Substitute bfd_version.
(BFD_VERSION_DATE): Define.
(BFD_VERSION_STRING): Define.
* configure.in: AC_SUBST bfd_version, bfd_version_date and
bfd_version_string.
(AC_OUTPUT <bfd-in3.h>): Depend on version.h.
* bfd-in2.h: Regenerate.
* configure: Regenerate.
* Makefile.am: Run "make dep-am"
* Makefile.in: Regenerate.
* bfd-in.h: Include "symcat.h".
(CONCAT4): Redefine as for old CAT4.
* aout-arm.c: Use equivalent CONCAT* macro in place of CAT* macros.
Add warning regarding whitespace.
* aout-cris.c: Likewise.
* aout-ns32k.c: Likewise.
* aout-sparcle.c: Likewise.
* aout-tic30.c: Likewise.
* aout0.c: Likewise.
* armnetbsd.c: Likewise.
* demo64.c: Likewise.
* elf-bfd.h: Likewise.
* gen-aout.c: Likewise.
* host-aout.c: Likewise.
* hp300bsd.c: Likewise.
* hp300hpux.c: Likewise.
* i386aout.c: Likewise.
* i386bsd.c: Likewise.
* i386dynix.c: Likewise.
* i386freebsd.c: Likewise.
* i386linux.c: Likewise.
* i386lynx.c: Likewise.
* i386mach3.c: Likewise.
* i386netbsd.c: Likewise.
* libaout.h: Likewise.
* m68k4knetbsd.c: Likewise.
* m68klinux.c: Likewise.
* m68klynx.c: Likewise.
* m68knetbsd.c: Likewise.
* m88kmach3.c: Likewise.
* mipsbsd.c: Likewise.
* newsos3.c: Likewise.
* ns32knetbsd.c: Likewise.
* pc532-mach.c: Likewise.
* pdp11.c: Likewise.
* riscix.c: Likewise.
* sparclinux.c: Likewise.
* sparclynx.c: Likewise.
* sparcnetbsd.c: Likewise.
* sunos.c: Likewise.
* targets.c: Likewise.
* vaxnetbsd.c: Likewise.
* vms-hdr.c: Likewise.
ezannoni [Tue, 2 Oct 2001 02:53:48 +0000 (02:53 +0000)]
2001-10-01 Elena Zannoni <ezannoni@redhat.com>
* Makefile.in (mipsread.o): Remove old dependency on partial-stab.h.
ezannoni [Tue, 2 Oct 2001 02:51:41 +0000 (02:51 +0000)]
2001-10-01 Elena Zannoni <ezannoni@redhat.com>
* xcoffread.c (N_UNDF, N_ABS, N_TEXT, N_DATA, N_BSS, N_COMM, N_FN,
N_EXT, N_INDR, N_SETA, N_SETT, N_SETD, N_SETB, N_SETV,
CUR_SYMBOL_TYPE, CUR_SYMBOL_VALUE, START_PSYMTAB, END_PSYMTAB,
SET_NAMESTRING): Delete definitions.
Don't include language.h any more.
Don't include partial-stab.h any more.
(scan_xcoff_symtab): Don't jump through hoops to reuse code in
partial-stab.h, include the code directly, instead.
* Makefile.in (xcoffread.o): Remove dependency on partial-stab.h.
ezannoni [Tue, 2 Oct 2001 02:39:47 +0000 (02:39 +0000)]
2001-10-01 Elena Zannoni <ezannoni@redhat.com>
* xcoffread.c (N_UNDF, N_ABS, N_TEXT, N_DATA, N_BSS, N_COMM, N_FN,
N_EXT, N_INDR, N_SETA, N_SETT, N_SETD, N_SETB, N_SETV,
CUR_SYMBOL_TYPE, CUR_SYMBOL_VALUE, START_PSYMTAB, END_PSYMTAB,
SET_NAMESTRING): Delete definitions.
Don't include language.h any more.
Don't include partial-stab.h any more.
(scan_xcoff_symtab): Don't jump through hoops to reuse code in
partial-stab.h, include the code directly, instead.
* Makefile.in (xcoffread.o): Remove dependency on partial-stab.h.
cgf [Tue, 2 Oct 2001 01:58:06 +0000 (01:58 +0000)]
* dtable.h (dtable::build_fhandler): Make path_conv parameter non-optional.
(dtable::init_std_file_from_handle): Eliminate name parameter.
* dtable.cc (stdio_init): Don't pass bogus name to init_std_file_from_handle.
The function will figure out the name itself.
(dtable::init_std_file_from_handle): Eliminate name parameter. Assume that
we're always called with an appropriate fd. Pass name as NULL if we can't
simply figure it out from context.
(cygwin_attach_handle_to_fd): Pass path_conv argument to build_fhandler.
(dtable::build_fhandler): Make path_conv argument mandatory. Eliminate
specific call to get_device_number. With unknown device names, set name from
handle context for parsing by path_conv.
(dtable::build_fhandler): Pass path_conv argument to build_fhandler.
* path.h (path_conv::set_isdisk): Set disk device type.
(path_conv::is_device): Don't consider FH_DISK a "device".
* syscalls.cc (_open): Pass path_conv argument by reference.
(stat_worker): Ditto.
(_rename): Use path_conv operators. Add bounds to DeleteFile/MoveFile for
loop.
gdbadmin [Tue, 2 Oct 2001 00:00:06 +0000 (00:00 +0000)]
*** empty log message ***
drow [Mon, 1 Oct 2001 20:36:47 +0000 (20:36 +0000)]
* gdb.threads/pthreads.exp: Wait for output and delay
before sending ^C.
drow [Mon, 1 Oct 2001 20:31:37 +0000 (20:31 +0000)]
* gdb.mi/mi-var-display.exp (continue to incr_a): Recognize
some incorrect output instead of timing out.
* gdb.mi/mi-var-display.exp (continue to incr_a): Likewise.
cgf [Mon, 1 Oct 2001 19:47:37 +0000 (19:47 +0000)]
* cygwin.din: export strtoll and strtoull
cagney [Mon, 1 Oct 2001 18:11:18 +0000 (18:11 +0000)]
* infcmd.c (do_registers_info): Delete code dumping large
registers. Handled by val_print.
jjohnstn [Mon, 1 Oct 2001 18:05:08 +0000 (18:05 +0000)]
2001-10-01 Charles Wilson <cwilson@ece.gatech.edu>
* libc/include/stdlib.h: add declarations for
_strtoull_r, _strtoll_r, strtoull, and strtoll.
* libc/stdio/local.h: remove declarations of
__strtoull_r and __strtoll_r.
* libc/stdio/vfscanf.c(__svfscanf_r): call
_strtoull_r instead of __strtoull_r. Ditto
_strtoll_r vs. __strtoll_r.
* libc/stdlib/Makefile.am: add new files to
.c list and .def list
* libc/stdlib/Makefile.in: regenerate
* libc/stdlib/strtoll_r.c: rename __strtoll_r
as _strtoll_r
* libc/stdlib/strtoull_r.c: rename __strtoull_r
as _strtoull_r
* libc/stdlib/strtoull.c: new file
* libc/stdlib/strtoll.c: new file
nickc [Mon, 1 Oct 2001 16:15:48 +0000 (16:15 +0000)]
Detect and warn about DWARF64 format .debug_arange sections
amodra [Mon, 1 Oct 2001 14:03:34 +0000 (14:03 +0000)]
bfd/
* bfd-in.h: Remove comments regarding generated files.
* libbfd-in.h: Likewise.
* libcoff-in.h: Likewise.
* bfd-in2.h: Regenerate.
* libbfd.h: Likewise.
* libcoff.h: Likewise.
bfd/doc/
* header.sed: New file, adds header to generated files.
* Makefile.am: Rewrite rules generating libbfd.h, libcoff.h and
bfd.h, using above. Add missing elf.c dependecy for libbfd.h.
* Makefile.in: Regenerate.
hjl [Mon, 1 Oct 2001 06:30:18 +0000 (06:30 +0000)]
2001-09-30 H.J. Lu <hjl@gnu.org>
* config/obj-elf.c (obj_elf_parse_section_letters): Accept "am"
and "ams" for compatibility.
cgf [Mon, 1 Oct 2001 04:10:05 +0000 (04:10 +0000)]
Add "path.h" include throughout, where needed. Use new path_conv methods and
operators to simplify testing for directory and attributes, throughout.
* path.h (path_conv::exists): New method.
(path_conv::has_attribute): Ditto.
(path_conv::isdir): Ditto.
(path_conv::DWORD &): New operator.
(path_conv::int &): Ditto.
* dir.cc (rmdir): Eliminate a goto.
* dtable.cc (dtable::build_fhandler): Accept opt and suffix info for
path_conv.check. Return fh == NULL on path_conv error. Pass unit to set_name
as appropriate.
(dtable::reset_unix_path_name): New method.
* dtable.h (dtable): Declare new method. Reflect arg changes to
build_fhandler.
* fhandler.cc (fhandler_disk_dummy_name): Eliminate.
(fhandler_base::set_name): Expect paths to be NULL. Build unix_path_name from
win32_path_name when it is a device.
(fhandler_base::reset_unix_path_name): New method.
(fhandler_base::raw_read): Report EISDIR when ERROR_INVALID_FUNCTION or
ERROR_INVALID_PARAMETER and reading a directory.
(fhandler_disk_file::fstat): Don't call stat_dev since we should now never be
calling fhandler_disk_file methods with devices.
(fhandler_base::fhandler_base): Clear {unix,win32}_path_name.
(fhandler_base::~fhandler_base): Always free {unix,win32}_path_name.
(fhandler_disk_file::fhandler_disk_file): Remove set_no_free_names kludge.
(fhandler_disk_file::open): Ditto.
* fhandler.h (fhandler_base::no_free_names): Eliminate.
(fhandler_base::set_no_free_names): Ditto.
* fhandler_tty.cc (fhandler_tty_slave::fhandler_tty_slave): Don't set
unix_path_name here.
* path.cc (fchdir): Lock fd table throughout. Use new
dtable::reset_unix_path_name method to reset path.
* syscalls.cc (stat_worker): Reorganize to always call fstat method. Pass
path_conv method to fhandler_*::open.
(chroot): Elminate a goto.
hp [Mon, 1 Oct 2001 00:16:26 +0000 (00:16 +0000)]
* elf32-sh.c (sh_elf_howto_table, R_SH_REL32): Make
partial_inplace, matching assembler output. Set src_mask to
all ones.
(sh_elf_relocate_section): Delete misplaced comment.
For relocatable linking against section symbol, call
_bfd_relocate_contents for partial_inplace relocs and adjust
rel->r_addend for others.
<case R_SH_DIR32, R_SH_REL32>: Fetch partial_inplace addend with
bfd_get_32, not at rel->r_addend.
hp [Mon, 1 Oct 2001 00:08:34 +0000 (00:08 +0000)]
* config/tc-sh.h (MD_PCREL_FROM_SECTION): Define.
(md_pcrel_from_section): Prototype.
hp [Mon, 1 Oct 2001 00:06:56 +0000 (00:06 +0000)]
* config/tc-sh.c (md_pcrel_from_section): Transformed from
md_pcrel_from. Handle pc-relativeness against link-time
symbol. Handle relativeness to elsewhere than the fixup.
gdbadmin [Mon, 1 Oct 2001 00:00:05 +0000 (00:00 +0000)]
*** empty log message ***
hp [Sun, 30 Sep 2001 22:22:05 +0000 (22:22 +0000)]
* Makefile.am: Update dependencies with "make dep-am".
* Makefile.in: Regenerate.
cgf [Sun, 30 Sep 2001 21:37:53 +0000 (21:37 +0000)]
* environ.cc (winenv): Allocate exact amount of space needed for forced windows
environment variable rather than just using MAX_PATH.
cgf [Sun, 30 Sep 2001 21:10:37 +0000 (21:10 +0000)]
* Makefile.in: Depend on stamp to ensure rebuilding. Remove stamp file when
we've just built the DLL.
jhealy [Sun, 30 Sep 2001 20:06:37 +0000 (20:06 +0000)]
2001-09-30 John Healy <jhealy@redhat.com>
* cgen-ibld.in (insert_1): Switched bfd_get_bits and bfd_set_bits
calls to cgen_get_insn_value and cgen_put_insn_value calls.
(extract_1): Switched bfd_get_bits call to cgen_get_insn_value call.
hp [Sun, 30 Sep 2001 19:53:06 +0000 (19:53 +0000)]
* Makefile.am: Update dependencies with "make dep-am".
* Makefile.in: Regenerate.
hp [Sun, 30 Sep 2001 18:54:18 +0000 (18:54 +0000)]
* Makefile.am: Update dependencies with "make dep-am".
* Makefile.in: Regenerate.
cagney [Sun, 30 Sep 2001 16:54:28 +0000 (16:54 +0000)]
* gdbarch.sh (gdbarch_alloc): Name the new architecture
``current_gdbarch'' so that it, and not the identically named
global is refered to by macros.
* gdbarch.c: Regenerate.
cagney [Sun, 30 Sep 2001 16:16:16 +0000 (16:16 +0000)]
* cli/cli-decode.c (add_set_boolean_cmd): Define.
* cli/cli-decode.h (add_set_boolean_cmd): Declare.
* command.h (add_set_boolean_cmd): Ditto.
* remote.c (_initialize_remote): Use add_set_boolean_cmd for "set
remotebreak"
hp [Sun, 30 Sep 2001 15:55:46 +0000 (15:55 +0000)]
* Makefile.am: Update dependencies with "make dep-am".
* Makefile.in: Regenerate.
rbcollins [Sun, 30 Sep 2001 14:39:55 +0000 (14:39 +0000)]
Mon Oct 1 00:34:00 2001 Robert Collins <rbtcollins@hotmail.com>
* thread.cc (pthread_cond_dowait): Hopefully eliminate a race on multiple thread
wakeups.
ciceron [Sun, 30 Sep 2001 09:20:54 +0000 (09:20 +0000)]
* config/tc-m68hc11.c (cmp_opcode): Define prototype.
(print_opcode_format, skip_whites): Likewise.
(convert_branch, m68hc11_new_insn): Likewise.
(build_dbranch_insn, build_indexed_byte): Likewise.
(build_reg_mode, find, find_opcode): Likewise.
(print_insn_format): Fix call to print_opcode_format.
(md_assemble): Fix call to build_dbranch_insn.
hjl [Sun, 30 Sep 2001 04:09:34 +0000 (04:09 +0000)]
2001-09-29 H.J. Lu <hjl@gnu.org>
* gas/i386/i386.exp: Run 64bit tests only for "i*86-*-* and
x86_64-*-*.
amodra [Sun, 30 Sep 2001 03:03:10 +0000 (03:03 +0000)]
* elf.c (_bfd_elf_link_hash_copy_indirect): Set ind refcounts to
the old dir refcount, so we indirectly set them to init_refcount.
Short-circuit asserts when we've just verified they are true.
gdbadmin [Sun, 30 Sep 2001 00:00:06 +0000 (00:00 +0000)]
*** empty log message ***
cagney [Sat, 29 Sep 2001 22:35:52 +0000 (22:35 +0000)]
* gdbarch.sh (gdbarch_dump): Sort output.
* gdbarch.c: Regenerate.
cagney [Sat, 29 Sep 2001 21:32:00 +0000 (21:32 +0000)]
* rs6000-tdep.c (rs6000_gdbarch_init): Don't use the previous
architecture to infer the wordsize. Previous architecture may not
be a PowerPC.
aoliva [Sat, 29 Sep 2001 19:38:32 +0000 (19:38 +0000)]
* Makefile.in (configure-target-gperf): Depend on $(ALL_GCC_CXX).
dj [Sat, 29 Sep 2001 16:55:59 +0000 (16:55 +0000)]
merge from gcc
hp [Sat, 29 Sep 2001 13:02:24 +0000 (13:02 +0000)]
Oops - forgot to remove xfail
hp [Sat, 29 Sep 2001 13:01:15 +0000 (13:01 +0000)]
* ld-linkonce/linkonce.exp: New file.
* ld-linkonce/x.s, ld-linkonce/y.s, ld-linkonce/zeroeh.ld,
ld-linkonce/zeroehl32.d: New test.
amodra [Sat, 29 Sep 2001 12:57:53 +0000 (12:57 +0000)]
From John Reiser <jreiser@BitWagon.com>
* ldlang.c (lang_common): Conditionally inhibit Common allocation.
* lexsup.c: Add --no-define-common commandline option.
* ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
* ldlex.l: Likewise.
* ld.h: Add command_line.inhibit_common_definition.
* ldmain.c (main): Initialize.
* ld.texinfo: Document.
amodra [Sat, 29 Sep 2001 12:06:59 +0000 (12:06 +0000)]
* section.c (struct sec): Remove kept_section.
(STD_SECTION): Remove kept_section initialisation.
(bfd_make_section_anyway): Here too.
* ecoff.c (bfd_debug_section): Remove kept_section initialisation.
* cofflink.c (_bfd_coff_link_input_bfd): Don't test kept_section.
* elflink.h (elf_link_input_bfd): Set discarded link-once section
symbols to zero, and remove all code involved with kept_section
and tracking section symbol values.
* bfd-in2.h: Regenerate.
* configure.in: Bump version number.
* configure: Regenerate.
* ldlang.c (section_already_linked): Remove assignment to kept_section.
rbcollins [Sat, 29 Sep 2001 09:00:59 +0000 (09:00 +0000)]
Sat Sep 29 18:26:00 2001 Robert Collins <rbtcollins@hotmail.com>
* pthread.cc (pthread_cond_timedwait): Deleted - exported from thread.cc.
(pthread_cond_wait): Deleted - exported from thread.cc.
* thread.cc (pthread_cond::BroadCast): Update to use the new syntax for
verifyable_object_isvalid ().
(pthread_cond::Signal): Ditto. Also attempt to fix the lost signal race
with pthread_cond::TimedWait().
(check_valid_pointer): Change definiton to void const *.
(verifyable_object_isvalid): Add new parameter to allow identification of
static initializers, and return a enum rather than magic numbers.
(__pthread_create): Ditto.
(__pthread_cleanup): Ditto.
(__pthread_attr_init): Ditto.
(__pthread_attr_getinheritsched): Ditto.
(__pthread_attr_getschedparam): Ditto.
(__pthread_attr_getschedpolicy): Ditto.
(__pthread_attr_getscope): Ditto.
(__pthread_attr_setdetachstate): Ditto.
(__pthread_attr_getdetachstate): Ditto.
(__pthread_attr_setinheritsched): Ditto.
(__pthread_attr_setschedparam): Ditto.
(__pthread_attr_setschedpolicy): Ditto.
(__pthread_attr_setscope): Ditto.
(__pthread_attr_setstacksize): Ditto.
(__pthread_attr_getstacksize): Ditto.
(__pthread_attr_destroy): Ditto.
(__pthread_join): Ditto.
(__pthread_detach): Ditto.
(__pthread_suspend): Ditto.
(__pthread_continue): Ditto.
(__pthread_getschedparam): Ditto.
(__pthread_getsequence_np): Ditto.
(__pthread_key_create): Ditto.
(__pthread_key_delete): Ditto.
(__pthread_setschedparam): Ditto.
(__pthread_setspecific): Ditto.
(__pthread_getspecific): Ditto.
(__pthread_cond_destroy): Ditto.
(__pthread_cond_init): Ditto.
(__pthread_cond_broadcast): Ditto.
(__pthread_cond_signal): Ditto.
(__pthread_condattr_init): Ditto.
(__pthread_condattr_getpshared): Ditto.
(__pthread_condattr_setpshared): Ditto.
(__pthread_condattr_destroy): Ditto.
(__pthread_kill): Ditto.
(__pthread_mutex_init): Ditto.
(__pthread_mutex_getprioceiling): Ditto.
(__pthread_mutex_lock): Ditto.
(__pthread_mutex_trylock): Ditto.
(__pthread_mutex_unlock): Ditto.
(__pthread_mutex_destroy): Ditto.
(__pthread_mutex_setprioceiling): Ditto.
(__pthread_mutexattr_getprotocol): Ditto.
(__pthread_mutexattr_getpshared): Ditto.
(__pthread_mutexattr_gettype): Ditto.
(__pthread_mutexattr_init): Ditto.
(__pthread_mutexattr_destroy): Ditto.
(__pthread_mutexattr_setprotocol): Ditto.
(__pthread_mutexattr_setprioceiling): Ditto.
(__pthread_mutexattr_getprioceiling): Ditto.
(__pthread_mutexattr_setpshared): Ditto.
(__pthread_mutexattr_settype): Ditto.
(__sem_init): Ditto.
(__sem_destroy): Ditto.
(__sem_wait): Ditto.
(__sem_trywait): Ditto.
(__sem_post): Ditto.
(__pthread_cond_dowait): New function, contains core logic from
__pthread_cond_wait and __pthread_cond_timedwait. Decrement (*cond)->waiting
before reentering the cond access mutex to allow detection of lost signals.
(__pthread_cond_timedwait): Rename to pthread_cond_timedwait, and call
__pthread_cond_dowait after calculating the wait length.
(__pthread_cond_wait): Rename to pthread_cond_wait, and call
__pthread_cond_dowait.
* thread.h: New enum for use with verifyable_object_isvalid.
Remove the extern exporting of __pthread_cond_timedwait and __pthread_cond_wait.
amodra [Sat, 29 Sep 2001 06:49:16 +0000 (06:49 +0000)]
* elf64-ppc.c (struct ppc_dyn_relocs): New.
(IS_ABSOLUTE_RELOC): Define.
(struct ppc_link_hash_entry): New.
(struct ppc_link_hash_table): New.
(ppc_hash_table): Define.
(link_hash_newfunc): New function.
(ppc64_elf_link_hash_table_create): New function.
(create_got_section): New function.
(ppc64_elf_create_dynamic_sections): Call create_got_section. Stash
pointers to our dynamic sections in hash table.
(ppc64_elf_copy_indirect_symbol): New function.
(ppc64_elf_check_relocs): Remove DEBUG code. Use short-cuts to
dynamic sections. Localise vars. Modify code for refcounts
starting from zero. Don't allocate here, or force symbols dynamic.
Don't copy all relocs if shared, select ones we need. Add code
to track possible copy relocs for non-shared link.
(ppc64_elf_gc_mark_hook): Update comment.
(ppc64_elf_gc_sweep_hook): Sweep dynrelocs too.
(ppc64_elf_adjust_dynamic_symbol): Remove DEBUG code. Rewrite .plt
code for reference counting garbage collection. Don't create .plt
entries for functions that don't comply with ABI naming convention,
and don't allocate .plt space here. Use short-cuts to dynamic
sections. If possible, keep dynamic relocations instead of using
copy relocs. Remove confused comments.
(ppc_adjust_dynindx): Delete.
(WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
(allocate_dynrelocs): New function.
(readonly_dynrelocs): New function.
(ppc64_elf_size_dynamic_sections): Rewrite. Allocate local .got
space here, and call allocate_dynrelocs to allocate space for
global .plt, .got and reloc sections. Use short-cuts to dynamic
sections. Call readonly_dynrelocs to determine whether we need
DT_TEXTREL. Don't generate section symbols here, the generic
ELF linker code does it for us.
(ppc64_elf_final_link): Call regular ELF backend linker rather than
gc variety, since we do our own .got handling.
(ppc64_elf_relocate_section): Remove DEBUG code. Make use of
dynamic section short-cuts. Localise vars, and delay setting.
Handle unknown relocs in main switch statement. Replace ugly
complicated tests for unresolvable relocs with a simple direct
scheme using "unresolved_reloc" var. Test ELF_ST_VISIBILITY
before allowing an undefined sym in a shared lib. Do R_*_DS tests
after main switch, when we've set addend. Do non-addend insn
tweaks before main swithc. Ignore input_section->vma when
calculating reloc offsets as it's always zero. Rewrite dynamic
reloc handling. Consolidate R_*_HA handling. Handle more relocs.
(ppc64_elf_finish_dynamic_symbol): Remove DEBUG code. Make use
of dynamic section short-cuts. Reorganise .plt handling code.
Remove confused comments. Take note of ELF_LINK_FORCED_LOCAL.
Move expressions out of swap_reloca_out function calls.
(ppc64_elf_reloc_type_class): New function.
(ppc64_elf_info_to_howto): Move common expression to local var.
(ppc64_elf_finish_dynamic_sections): Remove DEBUG code. Make use
of dynamic section short-cuts. Don't fiddle with section syms
here as the ELF linker does it for us.
(elf_backend_can_refcount): Define.
(bfd_elf64_bfd_link_hash_table_create): Define.
(elf_backend_copy_indirect_symbol): Define.
(elf_backend_reloc_type_class): Define.
(elf_backend_*, bfd_elf64_bfd_* defines): Sort.
amodra [Sat, 29 Sep 2001 06:21:58 +0000 (06:21 +0000)]
* elf-bfd.h (struct elf_link_local_dynamic_entry): Add init_refcount.
(struct elf_backend_data): Add can_refcount.
* elf.c (_bfd_elf_link_hash_newfunc): Get rid of a few casts. Set
got.refcount and plt.refcount from init_refcount.
(_bfd_elf_link_hash_table_init): Set up init_refcount.
(_bfd_elf_link_hash_copy_indirect): Reference got/plt.refcount
rather than got/plt.offset, and test for <= 0 rather than -1.
* elflink.h (size_dynamic_sections): Set init_refcount to -1.
* elfxx-target.h (elf_backend_can_refcount): Define.
(elfNN_bed): Init can_refcount.
* linker.c (_bfd_link_hash_newfunc): Get rid of a few casts.
(_bfd_generic_link_hash_newfunc): Likewise.
* elf32-cris.c (cris_elf_check_relocs): Modify for refcounts
starting from zero.
(elf_backend_can_refcount): Define.
* elf32-hppa.c (elf32_hppa_check_relocs): Modify for refcounts
starting from zero.
(elf32_hppa_copy_indirect_symbol): Make static to agree with
prototype.
(elf_backend_can_refcount): Define.
* elf32-i386.c (elf_i386_check_relocs): Modify for refcounts
starting from zero.
(allocate_dynrelocs): Set plt/got.offset rather than *.refcount.
(elf_i386_finish_dynamic_symbol): Expand SHN_UNDEF comment.
(elf_i386_finish_dynamic_sections): Use local var so line < 80 chars.
(elf_backend_can_refcount): Define.
(elf_i386_copy_indirect_symbol): Make static to agree with
prototype. Formatting fix.
* elf32-m68k.c (elf_m68k_check_relocs): Modify for refcounts
starting from zero.
(elf_backend_can_refcount): Define.
* elf32-ppc.c (ppc_elf_check_relocs): Modify for refcounts
starting from zero.
(elf_backend_can_refcount): Define.
* elf32-s390.c (elf_s390_check_relocs): Modify for refcounts
starting from zero.
(elf_backend_can_refcount): Define.
* elf64-s390.c (elf_s390_check_relocs): Modify for refcounts
starting from zero.
(elf_backend_can_refcount): Define.
* elf64-x86-64.c (elf64_x86_64_check_relocs): Modify for refcounts
starting from zero.
(elf_backend_can_refcount): Define.
amodra [Sat, 29 Sep 2001 06:13:52 +0000 (06:13 +0000)]
* som.c (som_write_symbol_strings): Cast current_offset in
bfd_seek call to match param type.
dj [Sat, 29 Sep 2001 03:19:56 +0000 (03:19 +0000)]
merge from gcc
cgf [Sat, 29 Sep 2001 01:23:05 +0000 (01:23 +0000)]
* pipe.cc (fhandler_pipe::fixup_after_fork): New method.
* fhandler.h (fhandler_pipe::fixup_after_fork): Declare new method.
gdbadmin [Sat, 29 Sep 2001 00:00:04 +0000 (00:00 +0000)]
*** empty log message ***
kevinb [Fri, 28 Sep 2001 23:42:07 +0000 (23:42 +0000)]
* configure.in (_XOPEN_SOURCE): Permit definition of _NSIG to
define _XOPEN_SOURCE too.
* configure: Regenerated.
rth [Fri, 28 Sep 2001 21:47:24 +0000 (21:47 +0000)]
* elfxx-target.h [section_flags]: Add SEC_ARCH_BIT_0, SEC_SMALL_DATA,
SEC_MERGE, SEC_STRINGS.
brobecke [Fri, 28 Sep 2001 21:36:18 +0000 (21:36 +0000)]
Document changes to som.c revision 1.22.
brobecke [Fri, 28 Sep 2001 21:35:45 +0000 (21:35 +0000)]
som_write_symbol_strings: Fix incorrect type of current_offset to match
the function definition. Fixes a build failure on HPUX-11.00.
rth [Fri, 28 Sep 2001 21:10:40 +0000 (21:10 +0000)]
* objdump.c (dump_section_header): Dump SEC_ARCH_BIT_0.
hp [Fri, 28 Sep 2001 21:04:51 +0000 (21:04 +0000)]
* config.sub, config.guess: Import latest from subversions.
rth [Fri, 28 Sep 2001 20:51:14 +0000 (20:51 +0000)]
* section.c (SEC_ARCH_BIT_0): New; replace unused SEC_BALIGN.
* bfd-in2.h: Rebuild.
tromey [Fri, 28 Sep 2001 17:39:08 +0000 (17:39 +0000)]
* tuiLayout.h (tui_set_layout): Don't declare.
* tui.h (tui_vAddWinToLayout): Don't declare.
(tui_vSetLayoutTo): Likewise.
(tui_set_layout): Declare.
tromey [Fri, 28 Sep 2001 16:36:48 +0000 (16:36 +0000)]
* library/console.itb (Console::_operate_and_get_next): New method.
(Console::_setprompt): Insert next history element if requested.
(Console::_build_win): Bind C-o to _operate_and_get_next.
* library/console.ith (_operate_and_get_next): Declare.
(_pendingHistElement): New variable.
amodra [Fri, 28 Sep 2001 12:54:53 +0000 (12:54 +0000)]
* elf64-x86-64.c (elf64_x86_64_reloc_type_lookup): Don't map bfd
reloc code using x86_64_reloc_map.
corinna [Fri, 28 Sep 2001 11:41:30 +0000 (11:41 +0000)]
* gdb.base/volatile.exp (local_compiler_xfail_check): Change qux2
check to allow additional `int'.
amodra [Fri, 28 Sep 2001 08:56:51 +0000 (08:56 +0000)]
* elf32-hppa.c (elf32_hppa_check_relocs): Update comment since we
no longer allocate here. Localise some vars to blocks where they
are used.
(elf32_hppa_adjust_dynamic_symbol): Correct a comment. Delay
setting of vars until needed.
(allocate_dynrelocs): Don't create a .plt entry without a reloc
when symbol visibilty makes a function local.
(elf32_hppa_finish_dynamic_symbol): Move expressions out of
swap_reloca_out function calls.
(elf32_hppa_relocate_section): Likewies. Comment typo fix.
(elf32_hppa_finish_dynamic_sections): Migrate common code out of
switch statement.
cgf [Fri, 28 Sep 2001 07:23:18 +0000 (07:23 +0000)]
* passwd.cc (read_etc_passwd): Bother with unlocking when not in cygwin
initialization.
* grp.cc (read_etc_group): Ditto.
cgf [Fri, 28 Sep 2001 07:01:22 +0000 (07:01 +0000)]
* passwd.cc (read_etc_passwd): Don't bother with locking when
in cygwin initialization since there is only one thread.
* grp.cc (read_etc_group): Ditto.
cgf [Fri, 28 Sep 2001 06:06:44 +0000 (06:06 +0000)]
* pipe.cc (fhandler_pipe::hit_eof): Return correct value when there is no EOF
event available.
gdbadmin [Fri, 28 Sep 2001 00:00:01 +0000 (00:00 +0000)]
*** empty log message ***
corinna [Thu, 27 Sep 2001 22:39:50 +0000 (22:39 +0000)]
* mmap.cc (mmap): Move setting the access after evaluating fd.
Remove useless comment. Explain copy-on-write problem of 9x
more detailed. Don't set access to FILE_MAP_COPY on 9x only
when anonymous mapping is requested.
(fhandler_disk_file::mmap): Remove useless device check.
Add debug output.
msnyder [Thu, 27 Sep 2001 22:39:05 +0000 (22:39 +0000)]
2001-09-20 Michael Snyder <msnyder@redhat.com>
Changes by Daniel Berlin <dan@cgsoftware.com>, to support
better parsing of const and volatile type expressions.
* c-exp.y (const_and_volatile, const_or_volatile_noopt,
const_or_volatile): New non-terminals.
(ptype): Use new rule for const_or_volatile.
(typebase): Use new rule for const_or_volatile_noopt.
* parser-defs.h (enum type_pieces): New values tp_const, tp_volatile.
* parse.c (follow_types): Handle tp_const and tp_volatile on the
type stack: call make_cv_type to create new const/volatile type.
drow [Thu, 27 Sep 2001 22:21:21 +0000 (22:21 +0000)]
* gdb.base/completion.exp: Remove incorrect 'p "a' test.
Add tests for 'p "break' (pass) and 'p "break.' (xfail).
msnyder [Thu, 27 Sep 2001 21:35:54 +0000 (21:35 +0000)]
2001-09-27 Michael Snyder <msnyder@redhat.com>
* lib/gdb.exp (test_debug_format): New proc.
(setup_xfail_format): Use new proc test_debug_format.
* gdb.base/constvars.exp (local_compiler_xfail_check): New
proc; use new service proc test_debug_format.
Replace all other "gcc_compiled" tests with this test.
* gdb.base/volatile.exp (local_compiler_xfail_check): New
proc; use new service proc test_debug_format.
Replace all other "gcc_compiled" tests with this test.
rbcollins [Thu, 27 Sep 2001 21:35:16 +0000 (21:35 +0000)]
Thu Sep 27 22:00:00 2001 Robert Collins rbtcollins@itdomain.com.au
* Makefile.in: Only stamp winver_stamp on success.
fche [Thu, 27 Sep 2001 21:21:37 +0000 (21:21 +0000)]
* bsp support for caches
2001-09-27 Frank Ch. Eigler <fche@redhat.com>
* configrun-sid.in (icache, dcache): New options.
msnyder [Thu, 27 Sep 2001 21:16:42 +0000 (21:16 +0000)]
2001-09-20 Michael Snyder <msnyder@redhat.com>
Changes by Daniel Berlin <dan@cgsoftware.com>, to support
better parsing of const and volatile type expressions.
* c-exp.y (const_and_volatile, const_or_volatile_noopt,
const_or_volatile): New non-terminals.
(ptype): Use new rule for const_or_volatile.
(typebase): Use new rule for const_or_volatile_noopt.
* parser-defs.h (enum type_pieces): New values tp_const, tp_volatile.
* parse.c (follow_types): Handle tp_const and tp_volatile on the
type stack: call make_cv_type to create new const/volatile type.
msnyder [Thu, 27 Sep 2001 21:14:48 +0000 (21:14 +0000)]
2001-09-21 Michael Snyder <msnyder@redhat.com>
* c-exp.y (typebase): Accept (signed long long) as a type expr.
dj [Thu, 27 Sep 2001 20:27:58 +0000 (20:27 +0000)]
merge from gcc
fche [Thu, 27 Sep 2001 20:23:50 +0000 (20:23 +0000)]
* bug fix
2001-09-27 Frank Ch. Eigler <fche@redhat.com>
* cache.cxx (emit_report): Remove extra blank line.
(set_hash_mask, set_hash_shift): Exchange names to match functionality.
* cacheutil.cxx (cache ctor): Compute good default hash_params.
ezannoni [Thu, 27 Sep 2001 16:22:46 +0000 (16:22 +0000)]
2001-09-27 Elena Zannoni <ezannoni@redhat.com>
* library/targetselection.itb (build_win, default_port): Handle
hpux 11.00.
ezannoni [Thu, 27 Sep 2001 16:22:21 +0000 (16:22 +0000)]
2001-09-27 Elena Zannoni <ezannoni@redhat.com>
* library/targetselection.itb (build_win, default_port): Handle
hpux 11.00.
amodra [Thu, 27 Sep 2001 16:18:41 +0000 (16:18 +0000)]
* elf32-i386.c (elf_i386_check_relocs): Update comment since we
no longer allocate here. Localise some vars to blocks where they
are used. Remove separate switch stmt for creating .got sec.
(elf_i386_adjust_dynamic_symbol): Correct a comment. Remove
redundant casts and aborts. Delay setting of vars until needed.
(allocate_dynrelocs): Remove redundant casts and aborts.
(elf_i386_size_dynamic_sections): Move comment.
(elf_i386_finish_dynamic_symbol): Move expressions out of function
calls.
(elf_i386_relocate_section): Likewise. Comment typo fix.
(elf_i386_finish_dynamic_sections): Migrate common code out of
switch statement.
(elf_backend_* defines): Sort.
amodra [Thu, 27 Sep 2001 16:10:28 +0000 (16:10 +0000)]
* elf32-i386.c (allocate_dynrelocs): Don't create a .plt entry
without a reloc when symbol visibilty makes a function local.
kseitz [Thu, 27 Sep 2001 14:47:44 +0000 (14:47 +0000)]
* library/prefs.tcl (escape_value): Update to work
with Tcl's new and old syntax.
nickc [Thu, 27 Sep 2001 13:49:27 +0000 (13:49 +0000)]
Revert most of previous delta. Do not call bfd_archive_filename on output
bfd, nor twice in one expression.
brobecke [Thu, 27 Sep 2001 13:32:17 +0000 (13:32 +0000)]
Document changes in infttrace.c (for HPUX 11.00).
brobecke [Thu, 27 Sep 2001 13:31:45 +0000 (13:31 +0000)]
kill_inferior: Issue a TT_PROC_EXIT request rather than a TT_PROC_STOP
request to kill the inferior and its child processes. Otherwise, the
inferior is not killed on HPUX 11.0. Removed the code that detaches the
child processes since we just killed them.
nickc [Thu, 27 Sep 2001 09:58:00 +0000 (09:58 +0000)]
Add missing function protoypes.
nickc [Thu, 27 Sep 2001 07:49:26 +0000 (07:49 +0000)]
Replace bfd_get_filename with bfd_archive_filename in error message.
Fix detection of conflicting float flags.
nickc [Thu, 27 Sep 2001 07:45:32 +0000 (07:45 +0000)]
Remove spurious comment
bje [Thu, 27 Sep 2001 02:36:47 +0000 (02:36 +0000)]
2001-09-27 Ben Elliston <bje@redhat.com>
* sidcomp.cache/cachemonkey.exp: Avoid the dump! attribute.
gdbadmin [Thu, 27 Sep 2001 00:00:01 +0000 (00:00 +0000)]
*** empty log message ***
cagney [Wed, 26 Sep 2001 23:27:39 +0000 (23:27 +0000)]
Add framework for ``set/show serial ...''.
cgf [Wed, 26 Sep 2001 22:24:09 +0000 (22:24 +0000)]
* select.cc (peek_pipe): REALLY only grab mutex when we actually got something
from the pipe.
fche [Wed, 26 Sep 2001 21:12:17 +0000 (21:12 +0000)]
2001-09-26 Frank Ch. Eigler <fche@redhat.com>
* sidcomp.cache/cachemonkey.exp: Test more cache types.
fche [Wed, 26 Sep 2001 21:12:02 +0000 (21:12 +0000)]
2001-09-26 Frank Ch. Eigler <fche@redhat.com>
* compMapper.cxx (tlb1/tlb2): Add support for a second tlb entry.
fche [Wed, 26 Sep 2001 21:11:48 +0000 (21:11 +0000)]
2001-09-26 Frank Ch. Eigler <fche@redhat.com>
* cacheutil.cxx (hash_fn): Detect index overflow. Complain loudly.
* cacheutil.h: Include some more headers.
cagney [Wed, 26 Sep 2001 20:52:56 +0000 (20:52 +0000)]
* CONTRIBUTE: Update.
jjohnstn [Wed, 26 Sep 2001 20:32:16 +0000 (20:32 +0000)]
2001-09-26 Jeff Johnston <jjohnstn@redhat.com>
* input-file.c (input_file_open): When reading the
first line looking for #NO_APP, prepare for the possibility
of finding #APP instead. Also fix algorithm to allow
white-space to follow either #NO_APP or #APP directives.
dj [Wed, 26 Sep 2001 18:45:49 +0000 (18:45 +0000)]
merge from gcc
corinna [Wed, 26 Sep 2001 16:06:27 +0000 (16:06 +0000)]
* gdb.base/constvars.exp: Check for different orders of keywords
and additional "int" strings in output.