OSDN Git Service

pf3gnuchains/pf3gnuchains4x.git
20 years agoAdd --hash-size switch to the linker
Nick Clifton [Fri, 21 May 2004 15:38:04 +0000 (15:38 +0000)]
Add --hash-size switch to the linker

20 years ago* libaout.h (machine_type): Add M_88K_OPENBSD and M_HPPA_OPENBSD.
Mark Kettenis [Fri, 21 May 2004 14:56:07 +0000 (14:56 +0000)]
* libaout.h (machine_type): Add M_88K_OPENBSD and M_HPPA_OPENBSD.
* netbsd-core.c (netbsd_core_file_p): Set architecture for alpha,
arm, m68k, m88k and hppa core files.

20 years agoDo not use iovec if it is NULL.
Nick Clifton [Fri, 21 May 2004 13:12:27 +0000 (13:12 +0000)]
Do not use iovec if it is NULL.

20 years ago * dwarf2.c (_bfd_dwarf2_find_nearest_line): Comment correction.
Ben Elliston [Fri, 21 May 2004 01:58:03 +0000 (01:58 +0000)]
* dwarf2.c (_bfd_dwarf2_find_nearest_line): Comment correction.

20 years agodaily update
Alan Modra [Fri, 21 May 2004 00:00:06 +0000 (00:00 +0000)]
daily update

20 years ago2004-05-20 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Thu, 20 May 2004 22:26:21 +0000 (22:26 +0000)]
2004-05-20  H.J. Lu  <hongjiu.lu@intel.com>

* gas/ia64/dv-srlz.d: Fix a typo.

20 years ago * config/tc-mips.c (append_insn): Use ISA-encoded addresses in MIPS16
Richard Sandiford [Thu, 20 May 2004 10:10:43 +0000 (10:10 +0000)]
* config/tc-mips.c (append_insn): Use ISA-encoded addresses in MIPS16
dwarf tables.

20 years agodaily update
Alan Modra [Thu, 20 May 2004 00:00:05 +0000 (00:00 +0000)]
daily update

20 years agoAdd code to cope with nested archives.
Nick Clifton [Wed, 19 May 2004 14:46:59 +0000 (14:46 +0000)]
Add code to cope with nested archives.

20 years ago * NEWS: Mention new linker map file generation and the
Joern Rennecke [Wed, 19 May 2004 14:15:55 +0000 (14:15 +0000)]
* NEWS: Mention new linker map file generation and the
--reduce-memory-overheads option.
* ld.texinfo: Document --reduce-memory-overheads option.
* ld.h (map_symbol_def): New struct.
(struct user_section_struct, section_userdata_type): Rename to:
(struct lean_user_section_struct, lean_section_userdata_type).
(struct fat_user_section_struct, fat_section_userdata_type): New.
(SECTION_USERDATA_SIZE): Define.
(args_type): New member reduce_memory_overheads.
* ldlang.c (map_obstack): New static variable.
(init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
(lang_map): Unless command_line.reduce_memory_overheads is set,
initialize lists of defined symbols for each section.
(print_input_section): Unless command_line.reduce_memory_overheads
is set, use print_all_symbols.
(init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
* ldmain.c (main): Initialize command_line.reduce_memory_overheads.
* lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
(ld_options): Add entry for --reduce-memory-overheads.
(parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.

20 years ago * ldgram.y (sect_constraint): New.
Jakub Jelinek [Wed, 19 May 2004 14:01:14 +0000 (14:01 +0000)]
* ldgram.y (sect_constraint): New.
(ONLY_IF_RO, ONLY_IF_RW): New tokens.
(section): Add sect_constraint.  Pass additional argument
to lang_enter_output_section_statement.
* mri.c (mri_draw_tree): Pass additional argument to
lang_enter_output_section_statement.
* emultempl/pe.em (place_orphan): Likewise.
(output_prev_sec_find): Disregard output section statements with
constraint == -1.
* emultempl/mmo.em (output_prev_sec_find): Likewise.
(mmo_place_orphan): Pass additional argument to
lang_enter_output_section_statement.
* emultempl/elf32.em (output_prev_sec_find): Disregard output section
statements with constraint == -1.
(place_orphan): Pass additional argument to
lang_enter_output_section_statement.
* ldlang.c (lang_enter_overlay_section): Likewise.
(lang_output_section_find_1): New.
(lang_output_section_find): Use it.
(lang_output_section_statement_lookup_1): New.
(lang_output_section_statement_lookup): Use it.
(check_section_callback, check_input_sections): New.
(map_input_to_output_sections): Check if all input sections
are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
(strip_excluded_output_sections): Disregard output section statements
with constraint == -1.
(lang_record_phdrs): Likewise.
(lang_enter_output_section_statement): Add constraint argument.
Use lang_output_section_statement_lookup_1.
* ldlang.h (lang_output_section_statement_type): Add constraint
and all_input_readonly fields.
(lang_enter_output_section_statement): Adjust prototype.
* ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
* scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
segment if all input sections are readonly.

20 years agoRemove redundant file
Nick Clifton [Wed, 19 May 2004 10:00:50 +0000 (10:00 +0000)]
Remove redundant file

20 years ago * ppc-opc.c (insert_fxm): Enable two operand mfcr when -many as
Alan Modra [Wed, 19 May 2004 05:11:48 +0000 (05:11 +0000)]
* ppc-opc.c (insert_fxm): Enable two operand mfcr when -many as
well as when -mpower4.

20 years agodaily update
Alan Modra [Wed, 19 May 2004 00:00:05 +0000 (00:00 +0000)]
daily update

20 years agoFixes for assembling with an ARM targeted version of GAS
Nick Clifton [Tue, 18 May 2004 16:18:56 +0000 (16:18 +0000)]
Fixes for assembling with an ARM targeted version of GAS

20 years ago * Makefile.def, Makefile.tpl, configure.in: Remove all mention
Zack Weinberg [Tue, 18 May 2004 02:00:58 +0000 (02:00 +0000)]
* Makefile.def, Makefile.tpl, configure.in: Remove all mention
of libf2c.
* configure, Makefile.in: Regenerate.

20 years agodaily update
Alan Modra [Tue, 18 May 2004 00:00:05 +0000 (00:00 +0000)]
daily update

20 years ago * ld.texinfo (Output Section Address): Correct subsection name.
Bob Wilson [Mon, 17 May 2004 22:48:55 +0000 (22:48 +0000)]
    * ld.texinfo (Output Section Address): Correct subsection name.

20 years ago * elf32-xtensa.c (xtensa_get_property_section_name): Determine linkonce
Bob Wilson [Mon, 17 May 2004 20:33:33 +0000 (20:33 +0000)]
* elf32-xtensa.c (xtensa_get_property_section_name): Determine linkonce
section names by inserting a new substring after .gnu.linkonce, except
for .gnu.linkonce.t.* where the "t." is replaced.

20 years agoAdd PowerPC LynxOS support
Nick Clifton [Mon, 17 May 2004 19:50:16 +0000 (19:50 +0000)]
Add PowerPC LynxOS support

20 years ago2004-05-17 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Mon, 17 May 2004 17:38:46 +0000 (17:38 +0000)]
2004-05-17  H.J. Lu  <hongjiu.lu@intel.com>

* ld-elf/frame.exp: New file. Test read-only .eh_frame and
.gcc_except_table sections.
* ld-elf/frame.s: Likewise.
* ld-elf/table.s: Likewise.
* ld-elf/tbss.s: Likewise.

20 years agobinutils ChangeLog:
Bob Wilson [Mon, 17 May 2004 16:40:01 +0000 (16:40 +0000)]
binutils ChangeLog:
2004-05-17  David Heine  <dlheine@tensilica.com>
* objcopy.c (setup_bfd_headers): New function.
(copy_object): Call setup_bfd_headers.
bfd ChangeLog:
2004-05-17  David Heine  <dlheine@tensilica.com>
* aout-target.h (MY_bfd_copy_private_header_data): Define.
* aout-tic30.c (MY_bfd_copy_private_header_data): Define.
* bfd.c (bfd_copy_private_header_data): Define.
* coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Add entries for new
interface.
* coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Likewise.
* coffcode.h (coff_bfd_copy_private_header_data): Define.
* elf-bfd.h (_bfd_elf_copy_private_header_data): Declare.
* elf.c (_bfd_elf_copy_private_section_data): Remove code to set up
segments by calling copy_private_bfd_data.
(_bfd_elf_copy_private_header_data): Define.
* elfxx-target.h (bfd_elfNN_bfd_copy_private_header_data): Define.
* libbfd-in.h (_bfd_generic_bfd_copy_private_header_data): Define.
* libecoff.h (_bfd_ecoff_bfd_copy_private_header_data): Define.
* mach-o.c (bfd_mach_o_bfd_copy_private_header_data): Define.
* mmo.c (mmo_bfd_copy_private_header_data): Define.
* ppcboot.c (ppcboot_bfd_copy_private_header_data): Define.
* som.c (som_bfd_copy_private_header_data): Define.
* targets.c (BFD_JUMP_TABLE_COPY): Add _bfd_copy_private_header_data.
* vms.c (vms_bfd_copy_private_header_data): Define.
* bfd-in2.h: Regenerate.
* libbfd.h: Regenerate.

20 years ago * gprof.texi (Output Options): Correct last patch to use @itemx, not
Ben Elliston [Mon, 17 May 2004 11:20:29 +0000 (11:20 +0000)]
* gprof.texi (Output Options): Correct last patch to use @itemx, not
@item, for options with long option alternatives.

20 years ago * gprof.texi (Introduction): Update synopsis.
Ben Elliston [Mon, 17 May 2004 05:04:27 +0000 (05:04 +0000)]
* gprof.texi (Introduction): Update synopsis.
(Output Options): Document -r and -R.
(Analysis Options): Document -t, --table-length.
(Miscellaneous Options): Document -h, --help.

20 years agodaily update
Alan Modra [Mon, 17 May 2004 00:00:08 +0000 (00:00 +0000)]
daily update

20 years agodaily update
Alan Modra [Sun, 16 May 2004 00:00:06 +0000 (00:00 +0000)]
daily update

20 years ago * elfxx-mips.c (MINUS_TWO): Define.
Thiemo Seufer [Sat, 15 May 2004 18:58:05 +0000 (18:58 +0000)]
* elfxx-mips.c (MINUS_TWO): Define.
(mips_elf_higher, mips_elf_highest,
mips_elf_create_dynamic_relocation): Use MINUS_ONE and MINUS_TWO for
some bfd_vma values.
(_bfd_mips_elf_finish_dynamic_symbol): Likewise. Code cleanup.

20 years agoCope with ARM mapping symbols
Nick Clifton [Sat, 15 May 2004 14:09:08 +0000 (14:09 +0000)]
Cope with ARM mapping symbols

20 years agoMake 'insn' argument of iq2000_cgen_insn_supported be const.
Nick Clifton [Sat, 15 May 2004 13:10:30 +0000 (13:10 +0000)]
Make 'insn' argument of iq2000_cgen_insn_supported be const.

20 years agodaily update
Alan Modra [Sat, 15 May 2004 00:00:06 +0000 (00:00 +0000)]
daily update

20 years ago * som.c (log2): Rename to exact_log2. Adjust all callers.
Dave Anglin [Fri, 14 May 2004 17:42:47 +0000 (17:42 +0000)]
* som.c (log2): Rename to exact_log2.  Adjust all callers.

20 years agodaily update
Alan Modra [Fri, 14 May 2004 00:32:17 +0000 (00:32 +0000)]
daily update

20 years agomerge from gcc
DJ Delorie [Thu, 13 May 2004 18:14:28 +0000 (18:14 +0000)]
merge from gcc

20 years agoRemove comment rendered obsolete by previous delta
Nick Clifton [Thu, 13 May 2004 15:16:00 +0000 (15:16 +0000)]
Remove comment rendered obsolete by previous delta

20 years agofix typo in file name
Nick Clifton [Thu, 13 May 2004 14:49:49 +0000 (14:49 +0000)]
fix typo in file name

20 years agoHandle dwarf3 format CIE entries.
Nick Clifton [Thu, 13 May 2004 14:41:18 +0000 (14:41 +0000)]
Handle dwarf3 format CIE entries.

20 years agoChange or32-rtems target from COFF to ELF format
Nick Clifton [Thu, 13 May 2004 14:12:27 +0000 (14:12 +0000)]
Change or32-rtems target from COFF to ELF format

20 years agoUpdated French translations
Nick Clifton [Thu, 13 May 2004 12:54:36 +0000 (12:54 +0000)]
Updated French translations

20 years agodaily update
Alan Modra [Thu, 13 May 2004 00:00:05 +0000 (00:00 +0000)]
daily update

20 years ago * ld-sh/tlsbin-2.d: Adjust for section reordering changes
Kaz Kojima [Wed, 12 May 2004 05:58:09 +0000 (05:58 +0000)]
* ld-sh/tlsbin-2.d: Adjust for section reordering changes
and removal of unneeded STT_SECTION symbols from .dynsym.
* ld-sh/tlsbin-3.d: Likewise.
* ld-sh/tlspic-2.d: Likewise.

20 years ago * binutils-all/ar.exp: Remove stray semicolons.
Ben Elliston [Wed, 12 May 2004 03:28:46 +0000 (03:28 +0000)]
* binutils-all/ar.exp: Remove stray semicolons.
* binutils-all/dlltool.exp: Likewise.
* binutils-all/objcopy.exp: Likewise.
* binutils-all/readelf.exp: Likewise.
* binutils-all/windres/windres.exp: Likewise.
* lib/utils-lib.exp: Likewise.

20 years ago * ld-sh/sh64/relax.exp: Remove stray semicolons.
Ben Elliston [Wed, 12 May 2004 03:08:09 +0000 (03:08 +0000)]
* ld-sh/sh64/relax.exp: Remove stray semicolons.
* ld-sh/sh64/relfail.exp: Likewise.
* lib/ld-lib.exp: Likewise.

20 years ago * gas/h8300/t03_add.exp: Remove stray semicolons.
Ben Elliston [Wed, 12 May 2004 03:06:10 +0000 (03:06 +0000)]
* gas/h8300/t03_add.exp: Remove stray semicolons.
* gas/h8300/t04_sub.exp: Likewise.
* gas/h8300/t05_cmp.exp: Likewise.
* gas/h8300/t08_or.exp: Likewise.
* gas/h8300/t09_xor.exp: Likewise.
* gas/h8300/t10_and.exp: Likewise.
* gas/hppa/reloc/reloc.exp: Likewise.
* gas/hppa/unsorted/unsorted.exp: Likewise.
* gas/i386/i386.exp: Likewise.
* gas/m68hc11/m68hc11.exp: Likewise.
* gas/mips/mips.exp: Likewise.
* gas/sparc/sparc.exp: Likewise.
* lib/gas-defs.exp: Likewise.

20 years agobfd/
Jakub Jelinek [Tue, 11 May 2004 17:08:38 +0000 (17:08 +0000)]
bfd/
* elflink.c (elf_bfd_final_link): Don't output STT_SECTION symbol
into .dynsym if elf_section_data (sec)->dynindx <= 0.
Adjust counting of last_local.
(_bfd_elf_link_renumber_dynsyms): Don't assign dynindx to sections
other than SHT_PROGBITS/SHT_NOBITS and neither for .got/.got.plt/.plt
created by the linker nor !SHF_ALLOC.

* elf32-i386.c (elf_i386_finish_dynamic_sections): Point
DT_PLTGOT to the start of the .got.plt section instead of the
.got output section.  Set sh_entsize for .got section in addition
to .got.plt.
(elf_i386_relocate_section): Don't assume _GLOBAL_OFFSET_TABLE_
is at sgot->output_section->vma.
* elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Point
DT_PLTGOT to the start of the .got.plt section instead of the
.got output section.
(elf64_x86_64_relocate_section): Don't assume _GLOBAL_OFFSET_TABLE_
is at sgot->output_section->vma.  Set sh_entsize for .got section
in addition to .got.plt.
* elf.c (_bfd_elf_print_private_bfd_data): Handle PT_GNU_RELRO.
(bfd_section_from_phdr): Likewise.
(map_sections_to_segments): Likewise.
(assign_file_positions_for_segments): Likewise.
(get_program_header_size): Likewise.
* elflink.c (bfd_elf_size_dynamic_sections): Set
elf_tdata (output_bfd)->relro from info->relro.
* elf-bfd.h (struct elf_obj_tdata): Add relro field.
include/
* bfdlink.h (struct bfd_link_info): Add relro, relro_start and
relro_end fields.
* elf/common.h (PT_GNU_EH_FRAME, PT_GNU_STACK): Add comments.
(PT_GNU_RELRO): Define.
binutils/
* readelf.c (get_segment_type): Handle PT_GNU_RELRO.
ld/
* genscripts.sh: Generate -z combreloc -z now -z relro scripts
for binaries, -shared and -pie.
* emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
* emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
* emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
(OTHER_RELRO_SECTIONS): ... this.
* ldlex.l (DATA_SEGMENT_RELRO_END): Add.
* emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
-z relro and -z norelro.
(gld${EMULATION_NAME}_list_options): Add it to usage.
(gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
-z relro scripts when appropriate.
* scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
Create separate .got.plt section if SEPARATE_GOTPLT.
Move sections which are only written during relocation handling
to the beginning of RW segment.  If NO_SMALL_DATA, move .got
before .data.  Add DATA_SEGMENT_RELRO_END directive.
Include OTHER_RELRO_SECTIONS.
* ldgram.y (DATA_SEGMENT_RELRO_END): Add.
* ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
(fold_unary): Likewise.
(fold_binary): Handle -z relro.
* ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
exp_dataseg_relro_adjust phases.  Add relro_end field.
* ldmain.c (main): Initialize link_info.relro to FALSE.
* ldlang.c (lang_size_sections): Handle -z relro.
ld/testsuite/
* ld-i386/tlspic.rd: Adjust for section reordering changes
and removal of unneeded STT_SECTION symbols from .dynsym.
* ld-i386/tlspic.dd: Likewise.
* ld-i386/tlspic.sd: Likewise.
* ld-i386/tlsbin.rd: Likewise.
* ld-i386/tlsbinpic.s: Likewise.
* ld-i386/tlsbin.dd: Likewise.
* ld-i386/tlsbin.sd: Likewise.
* ld-i386/tlsnopic.rd: Likewise.
* ld-i386/tlsnopic1.s: Likewise.
* ld-i386/combreloc.d: Likewise.
* ld-i386/tlsnopic.dd: Likewise.
* ld-i386/tlsnopic.sd: Likewise.
* ld-x86-64/tlspic.rd: Likewise.
* ld-x86-64/tlspic.dd: Likewise.
* ld-x86-64/tlsbin.dd: Likewise.
* ld-x86-64/tlspic.sd: Likewise.
* ld-x86-64/tlsbin.sd: Likewise.
* ld-x86-64/tlspic.td: Likewise.
* ld-x86-64/tlsbin.td: Likewise.
* ld-x86-64/tlsbin.rd: Likewise.
* ld-s390/tlspic1.s: Likewise.
* ld-s390/tlsbinpic.s: Likewise.
* ld-s390/tlspic.rd: Likewise.
* ld-s390/tlsbin.rd: Likewise.
* ld-s390/tlspic.dd: Likewise.
* ld-s390/tlsbin.dd: Likewise.
* ld-s390/tlsbin.sd: Likewise.
* ld-s390/tlsbin.td: Likewise.
* ld-s390/tlspic.sd: Likewise.
* ld-s390/tlspic.td: Likewise.
* ld-s390/tlspic1_64.s: Likewise.
* ld-s390/tlsbinpic_64.s: Likewise.
* ld-s390/tlspic_64.rd: Likewise.
* ld-s390/tlsbin_64.rd: Likewise.
* ld-s390/tlspic_64.dd: Likewise.
* ld-s390/tlsbin_64.dd: Likewise.
* ld-s390/tlspic_64.sd: Likewise.
* ld-s390/tlspic_64.td: Likewise.
* ld-s390/tlsbin_64.td: Likewise.
* ld-s390/tlsbin_64.sd: Likewise.
* ld-powerpc/tlsexe32.r: Likewise.
* ld-powerpc/tlsso32.r: Likewise.
* ld-powerpc/tlsso32.d: Likewise.
* ld-powerpc/tlsso32.g: Likewise.
* ld-powerpc/tlsso32.t: Likewise.
* ld-powerpc/tlsexe.r: Likewise.
* ld-powerpc/tlsso.r: Likewise.
* ld-powerpc/tlsso.g: Likewise.
* ld-powerpc/tlsexetoc.r: Likewise.
* ld-powerpc/tlstocso.r: Likewise.
* ld-powerpc/tlstocso.g: Likewise.
* ld-ia64/tlspic.rd: Likewise.
* ld-ia64/tlspic.dd: Likewise.
* ld-ia64/tlspic.sd: Likewise.
* ld-ia64/tlspic.td: Likewise.
* ld-ia64/tlsbin.rd: Likewise.
* ld-ia64/tlsbin.sd: Likewise.
* ld-ia64/tlsbin.td: Likewise.
* ld-elfvsb/elfvsb.exp: XFAIL non-PIC load offset tests on s390x.
* ld-shared/shared.exp: Likewise.

20 years agoApply H.J.'s patch to fix label arithmetic when multiple same-name sections are involved
Nick Clifton [Tue, 11 May 2004 15:53:47 +0000 (15:53 +0000)]
Apply H.J.'s patch to fix label arithmetic when multiple same-name sections are involved

20 years agodaily update
Alan Modra [Tue, 11 May 2004 00:00:06 +0000 (00:00 +0000)]
daily update

20 years ago2004-05-10 John Paul Wallington <jpw@gnu.org>
Hans-Peter Nilsson [Mon, 10 May 2004 03:57:04 +0000 (03:57 +0000)]
2004-05-10  John Paul Wallington  <jpw@gnu.org>

* ld-mmix/bspec2.d: Update sh_info to decimal.
* ld-mmix/local1.d: Likewise.
* ld-mmix/local3.d: Likewise.
* ld-mmix/local5.d: Likewise.
* ld-mmix/local7.d: Likewise.

20 years agodaily update
Alan Modra [Mon, 10 May 2004 00:00:27 +0000 (00:00 +0000)]
daily update

20 years ago * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
Marek Michalkiewicz [Sat, 8 May 2004 21:52:56 +0000 (21:52 +0000)]
* scripttempl/avr.sc: Do not set LMA for "eeprom" section.

20 years ago* elf32-frv.c (_frvfdpic_add_dyn_reloc): Don't warn when we get
Alexandre Oliva [Sat, 8 May 2004 07:05:32 +0000 (07:05 +0000)]
* elf32-frv.c (_frvfdpic_add_dyn_reloc): Don't warn when we get
a zero symndx for which we hadn't accounted a dynamic relocation.
(_frvfdpic_add_rofixup): Likewise.

20 years agodaily update
Alan Modra [Sat, 8 May 2004 00:00:07 +0000 (00:00 +0000)]
daily update

20 years ago * config/tc-mips.c (append_insn, mips_emit_delays): Extend -mfix-vr4120
Richard Sandiford [Fri, 7 May 2004 16:39:26 +0000 (16:39 +0000)]
* config/tc-mips.c (append_insn, mips_emit_delays): Extend -mfix-vr4120
to cope with VR4181A errata MD(1) and MD(4).

20 years ago2004-05-07 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Fri, 7 May 2004 15:33:36 +0000 (15:33 +0000)]
2004-05-07  H.J. Lu  <hongjiu.lu@intel.com>

* readelf.c (section_groups): New.
(group_count): New.
(section_headers_groups): New.
(process_section_groups): Populate group_count, section_groups
and section_headers_groups.
(process_unwind): Support section group.
(process_object): Always call process_section_groups. Free
section_groups and section_headers_groups.

20 years ago * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
Joern Rennecke [Fri, 7 May 2004 15:21:27 +0000 (15:21 +0000)]
* ldlang.c (print_padding_statement): Cast size_t to bfd_vma
before printing it with %W.

20 years ago* emultempl/pe.em (real_flags): New static.
Brian Ford [Fri, 7 May 2004 15:17:58 +0000 (15:17 +0000)]
* emultempl/pe.em (real_flags): New static.
(OPTION_LARGE_ADDRESS_AWARE): New define.
(gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
(gld_${EMULATION_NAME}_list_options): Likewise.
(gld${EMULATION_NAME}_handle_option): Likewise.
(gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
* ld.texinfo: Document it.
* NEWS: Mention it.

20 years ago* coffcode.h (coff_write_object_contents) [COFF_IMAGE_WITH_PE]:
Brian Ford [Fri, 7 May 2004 15:08:49 +0000 (15:08 +0000)]
* coffcode.h (coff_write_object_contents) [COFF_IMAGE_WITH_PE]:
Propagate IMAGE_FILE_LARGE_ADDRESS_AWARE.
* peXXigen.c (_bfd_XX_print_private_bfd_data_common): Recognize
IMAGE_FILE_LARGE_ADDRESS_AWARE.  Use PE defines.

20 years ago* NEWS: Mention DWARF 2 support for i386pe.
Brian Ford [Fri, 7 May 2004 14:49:48 +0000 (14:49 +0000)]
* NEWS: Mention DWARF 2 support for i386pe.

20 years ago* NEWS: Mention .secrel32 for pe[i]-i386.
Brian Ford [Fri, 7 May 2004 14:44:56 +0000 (14:44 +0000)]
* NEWS: Mention .secrel32 for pe[i]-i386.

20 years ago* elf32-frv.c (elf32_frvfdpic_modify_segment_map): Return
Alexandre Oliva [Fri, 7 May 2004 06:28:39 +0000 (06:28 +0000)]
* elf32-frv.c (elf32_frvfdpic_modify_segment_map): Return
immediately if there's no link info.
(elf32_frvfdpic_copy_private_bfd_data): New.
(bfd_elf32_bfd_copy_private_bfd_data): Use it for frvfdpic.

20 years ago* config/tc-frv.h (MAX_MEM_FOR_RS_ALIGN_CODE): New.
Alexandre Oliva [Fri, 7 May 2004 06:28:04 +0000 (06:28 +0000)]
* config/tc-frv.h (MAX_MEM_FOR_RS_ALIGN_CODE): New.
(HANDLE_ALIGN): New.

20 years ago * Makefile.am (DIST_SUBDIRS): Define.
Daniel Jacobowitz [Fri, 7 May 2004 06:23:54 +0000 (06:23 +0000)]
* Makefile.am (DIST_SUBDIRS): Define.
* aclocal.m4: Regenerate with automake 1.8.4.
* Makefile.in: Likewise.
* doc/Makefile.in: Likewise.

20 years ago * dwarf2.c (add_line_info): Also set info->filename to NULL if
Zack Weinberg [Fri, 7 May 2004 00:01:25 +0000 (00:01 +0000)]
* dwarf2.c (add_line_info): Also set info->filename to NULL if
filename argument is null; do not call strlen on a null pointer.

20 years agodaily update
Alan Modra [Fri, 7 May 2004 00:00:07 +0000 (00:00 +0000)]
daily update

20 years ago * elf32-arm.h (elf32_arm_relocate_section): Remove R_ARM_PLT32
Daniel Jacobowitz [Thu, 6 May 2004 23:43:40 +0000 (23:43 +0000)]
* elf32-arm.h (elf32_arm_relocate_section): Remove R_ARM_PLT32
special case.

20 years agoPatch from David Mosberger-Tang.
Jim Wilson [Thu, 6 May 2004 22:32:44 +0000 (22:32 +0000)]
Patch from David Mosberger-Tang.
* config/tc-ia64.c (dot_serialize): Declare.
(dot_serialize): New function.
(md_pseudo_table): Add ".serialize.data" and
".serialize.instruction" directives.

20 years agoRemove duplicate code and provide a function for generating internally consistent...
Nick Clifton [Thu, 6 May 2004 11:01:48 +0000 (11:01 +0000)]
Remove duplicate code and provide a function for generating internally consistent 'value out of range' messages

20 years ago* emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
Alexandre Oliva [Thu, 6 May 2004 02:46:54 +0000 (02:46 +0000)]
* emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
elf32-frvfdpic.

20 years ago* configure.in: Set em=linux for frv-*-*linux*.
Alexandre Oliva [Thu, 6 May 2004 02:46:45 +0000 (02:46 +0000)]
* configure.in: Set em=linux for frv-*-*linux*.
* configure: Rebuilt.
* config/tc-frv.h (TARGET_FORMAT): Use elf32-frvfdpic if...
(frv_md_fdpic_enabled): New.
* config/tc-frv.c (frv_md_fdpic_enabled): New.
(DEFAULT_FDPIC): New.
(frv_flags): Use DEFAULT_FDPIC.
(frv_pic_flag): Likewise.
(OPTION_NOPIC): New.
(md_longopts): Add -mnopic.
(md_parse_option): Handle it.
(md_show_usage): Add -mfdpic and -mnopic.

20 years ago* configure.in (bfd_elf32_frvfdpic_vec): New.
Alexandre Oliva [Thu, 6 May 2004 02:46:29 +0000 (02:46 +0000)]
* configure.in (bfd_elf32_frvfdpic_vec): New.
* configure: Rebuilt.
* targets.c (bfd_elf32_frvfdpic_vec): New.
* config.bfd: Enable it on frv-*-elf and frv-*-*linux*, as default
on the latter.
* elf32-frv.c: Prefix all identifiers added for FDPIC support with
frvfdpic instead of frv.  Rearrange elf-target macros such that
the FDPIC-specific ones are only defined for this new target
vector.
(bfd_elf32_frvfdpic_vec): Declare.
(IS_FDPIC): New.
(elf32_frv_relocate_section): Use it to enable segment checking
and to control rofixup emission.  Add output section vma to
applied relocation in non-LOAD non-ALLOC sections.  Use
_bfd_error_handler for errors.
(_frv_create_got_section): Create .rel.got and .rofixup only in
FDPIC.  Create non-dynamic _gp at .got+2048 in non-FDPIC, like the
linker script.
(elf32_frvfdpic_size_dynamic_sections): Assume FDPIC.
(elf32_frvfdpic_modify_segment_map): Likewise.
(elf32_frv_finish_dynamic_sections): New, do-nothing.
(elf32_frvfdpic_finish_dynamic_sections): Assume FDPIC.  Improve
error message if we miscompute the rofixup size.
(frvfdpic_elf_use_relative_eh_frame): Assume FDPIC.
(frvfdpic_elf_encode_eh_address): Likewise.
(elf32_frv_check_relocs): Reject FDPIC-only relocs in non-FDPIC.
Record relocs only in FDPIC.  Make sure _gp is defined for GPREL
relocs.  Reject unknown relocation types.
(elf32_frv_object_p): Make sure target vector matches FDPIC bits.
(frv_elf_merge_private_bfd_data): Likewise.
(ELF_MAXPAGESIZE): Revert to 0x1000 for elf32-frv; keep it as
0x4000 for newly-added elf32-frvfdpic.

20 years ago* ld-frv/fdpic.exp: Restore $LDFLAGS at the end.
Alexandre Oliva [Thu, 6 May 2004 02:46:13 +0000 (02:46 +0000)]
* ld-frv/fdpic.exp: Restore $LDFLAGS at the end.
* ld-frv/fr450-link.d: Match fdpic as well.

20 years ago* gas/frv/reloc1.d: Match elf32-frvfdpic as well.
Alexandre Oliva [Thu, 6 May 2004 02:46:07 +0000 (02:46 +0000)]
* gas/frv/reloc1.d: Match elf32-frvfdpic as well.
* gas/frv/fr405-insn.d: Likewise.
* gas/frv/fr450-insn.d: Likewise.

20 years ago * ld-sh/sh64/crange1.rd: Update sh_info to decimal.
Kaz Kojima [Thu, 6 May 2004 00:13:39 +0000 (00:13 +0000)]
* ld-sh/sh64/crange1.rd: Update sh_info to decimal.
* ld-sh/sh64/crange2.rd: Likewise.
* ld-sh/sh64/crange3.rd: Likewise.
* ld-sh/sh64/crange3-cmpct.rd: Likewise.
* ld-sh/sh64/crange3-media.rd: Likewise.
* ld-sh/sh64/crangerel1.rd: Likewise.
* ld-sh/sh64/crangerel2.rd: Likewise.

20 years agodaily update
Alan Modra [Thu, 6 May 2004 00:00:07 +0000 (00:00 +0000)]
daily update

20 years agoRemove checks of the return value from bfd_cache_ookup()
Nick Clifton [Wed, 5 May 2004 15:46:35 +0000 (15:46 +0000)]
Remove checks of the return value from bfd_cache_ookup()

20 years agoPR/136 - Have bfd_cache_lookup_worker() abort rather than return an
Nick Clifton [Wed, 5 May 2004 15:39:11 +0000 (15:39 +0000)]
PR/136 - Have bfd_cache_lookup_worker() abort rather than return an
(unchecked-for) NULL.

20 years agoAdd support for 521x,5249,547x,548x.
Nick Clifton [Wed, 5 May 2004 14:33:14 +0000 (14:33 +0000)]
Add support for 521x,5249,547x,548x.

20 years ago * ppc-opc.c (PPCVEC): Remove PPC_OPCODE_PPC.
Alan Modra [Wed, 5 May 2004 13:43:36 +0000 (13:43 +0000)]
* ppc-opc.c (PPCVEC): Remove PPC_OPCODE_PPC.

20 years ago * ld-powerpc/tlsexe.r: Update sh_info to decimal.
Alan Modra [Wed, 5 May 2004 13:31:05 +0000 (13:31 +0000)]
* ld-powerpc/tlsexe.r: Update sh_info to decimal.
* ld-powerpc/tlsexe32.r: Likewise.
* ld-powerpc/tlsexetoc.r: Likewise.
* ld-powerpc/tlsso.r: Likewise.
* ld-powerpc/tlsso32.r: Likewise.
* ld-powerpc/tlstocso.r: Likewise.

20 years ago * tc-s390.h (md_do_align, HANDLE_ALIGN): Remove.
Jakub Jelinek [Wed, 5 May 2004 13:06:18 +0000 (13:06 +0000)]
* tc-s390.h (md_do_align, HANDLE_ALIGN): Remove.
(NOP_OPCODE): Define.
(s390_align_code): Remove prototype.
* tc-s390.c (s390_align_code): Remove.

20 years agodaily update
Alan Modra [Wed, 5 May 2004 00:00:09 +0000 (00:00 +0000)]
daily update

20 years agomerge from gcc
DJ Delorie [Tue, 4 May 2004 20:06:15 +0000 (20:06 +0000)]
merge from gcc

20 years ago2004-05-04 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Tue, 4 May 2004 14:58:11 +0000 (14:58 +0000)]
2004-05-04  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-ia64.c (make_unw_section_name): Removed.
(start_unwind_section): New function.
(generate_unwind_image): Take const segT instead of const
char *.
(dot_handlerdata): Adjusted.
(dot_endp): Likewise.

20 years agodaily update
Alan Modra [Tue, 4 May 2004 00:00:07 +0000 (00:00 +0000)]
daily update

20 years ago * elf.c (_bfd_elf_rela_local_sym): Set kept_section for excluded
Alan Modra [Mon, 3 May 2004 14:52:02 +0000 (14:52 +0000)]
* elf.c (_bfd_elf_rela_local_sym): Set kept_section for excluded
SEC_MERGE sections.
* elflink.c (elf_link_input_bfd): Adjust output reloc index for
those against discarded link-once and SEC_MERGE section symbols.

20 years ago2004-05-02 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Mon, 3 May 2004 04:08:32 +0000 (04:08 +0000)]
2004-05-02  H.J. Lu  <hongjiu.lu@intel.com>

* config/obj-elf.c (obj_elf_change_section): Allow the
".note.GNU-stack" section has SHF_EXECINSTR.

20 years agodaily update
Alan Modra [Mon, 3 May 2004 00:00:06 +0000 (00:00 +0000)]
daily update

20 years agobfd/
H.J. Lu [Sun, 2 May 2004 14:36:25 +0000 (14:36 +0000)]
bfd/

2004-05-02  H.J. Lu  <hongjiu.lu@intel.com>

* section.c (bfd_get_section_by_name_if): New.
* bfd-in2.h: Regenerated.

gas/

2004-05-02  H.J. Lu  <hongjiu.lu@intel.com>

* config/obj-elf.c (get_section): Return bfd_boolean.
(obj_elf_change_section): Call bfd_get_section_by_name_if
instead of bfd_map_over_sections.

20 years ago * som.c (som_bfd_is_group_section): Define.
Alan Modra [Sun, 2 May 2004 06:21:08 +0000 (06:21 +0000)]
* som.c (som_bfd_is_group_section): Define.

20 years agodaily update
Alan Modra [Sun, 2 May 2004 00:00:07 +0000 (00:00 +0000)]
daily update

20 years ago * section.c (bfd_make_section_anyway): Copy the whole
Alan Modra [Sat, 1 May 2004 14:20:26 +0000 (14:20 +0000)]
* section.c (bfd_make_section_anyway): Copy the whole
bfd_hash_entry, not just "next" from existing entry.

20 years agodaily update
Alan Modra [Sat, 1 May 2004 00:00:08 +0000 (00:00 +0000)]
daily update

20 years agogas/
H.J. Lu [Fri, 30 Apr 2004 16:47:46 +0000 (16:47 +0000)]
gas/

2004-04-30  H.J. Lu  <hongjiu.lu@intel.com>

* config/obj-elf.c (get_section): New function.
(obj_elf_change_section): Support multiple sections with same
name.

gas/testsuite/

2004-04-30  H.J. Lu  <hongjiu.lu@intel.com>

* gas/elf/elf.exp: Remove group1, add group1a and group1b for
section group.

* gas/elf/group1a.d: New file.
* gas/elf/group1b.d: Likewise.

* gas/elf/group1.e: Removed.

20 years ago2004-04-30 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Fri, 30 Apr 2004 15:04:30 +0000 (15:04 +0000)]
2004-04-30  H.J. Lu  <hongjiu.lu@intel.com>

* elf.c (bfd_section_from_shdr): Maintain the section order in
a section group.
(special_sections): Add ".note.GNU-stack".
(elf_fake_sections): Handle section group for relocatable
link..

20 years ago2004-04-30 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Fri, 30 Apr 2004 15:01:15 +0000 (15:01 +0000)]
2004-04-30  H.J. Lu  <hongjiu.lu@intel.com>

* section.c (bfd_sections_find_if): New.
* bfd-in2.h: Regenerated.

20 years ago2004-04-30 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Fri, 30 Apr 2004 14:56:03 +0000 (14:56 +0000)]
2004-04-30  H.J. Lu  <hongjiu.lu@intel.com>

* readelf.c (process_section_headers): Use %3lu on sh_info.

20 years ago * ldlang.c (unique_section_p): Pass section parm, return true on
Alan Modra [Fri, 30 Apr 2004 14:26:09 +0000 (14:26 +0000)]
* ldlang.c (unique_section_p): Pass section parm, return true on
group sections.
(output_section_callback): Adjust.
* ldlang.h (unique_section_p): Update prototype.
* emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.

20 years ago * section.c (bfd_make_section_anyway): Add all sections to hash tab.
Alan Modra [Fri, 30 Apr 2004 14:23:40 +0000 (14:23 +0000)]
* section.c (bfd_make_section_anyway): Add all sections to hash tab.

* elf-bfd.h (bfd_elf_is_group_section): Declare.
* elf.c (bfd_elf_is_group_section): New function.
* elfxx-target.h (bfd_elfNN_bfd_is_group_section
* section.c (bfd_generic_is_group_section): New function.
* targets.c (struct bfd_target): Add _bfd_is_group_section field.
(BFD_JUMP_TABLE_LINK): Adjust.
* aout-adobe.c (aout_32_bfd_is_group_section): Define.
* aout-target.h (MY_bfd_is_group_section): Define.
* aout-tic30.c (MY_bfd_is_group_section): Define.
* bfd.c (bfd_is_group_section): Define.
* binary.c (binary_bfd_is_group_section): Define.
* bout.c (b_out_bfd_is_group_section): Define.
* coff-alpha.c (_bfd_ecoff_bfd_is_group_section): Define.
* coff-mips.c (_bfd_ecoff_bfd_is_group_section): Define.
* coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Adjust.
* coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Adjust.
* coffcode.h (coff_bfd_is_group_section): Define.
* i386msdos.c (msdos_bfd_is_group_section): Define.
* i386os9k.c (os9k_bfd_is_group_section): Define.
* ieee.c (ieee_bfd_is_group_section): Define.
* ihex.c (ihex_bfd_is_group_section): Define.
* libbfd-in.h (_bfd_nolink_bfd_is_group_section): Define.
* mach-o.c (bfd_mach_o_bfd_is_group_section): Define.
* mmo.c (mmo_bfd_is_group_section): Define.
* nlm-target.h (nlm_bfd_is_group_section): Define.
* oasys.c (oasys_bfd_is_group_section): Define.
* pef.c (bfd_pef_bfd_is_group_section): Define.
* ppcboot.c (ppcboot_bfd_is_group_section): Define.
* srec.c (srec_bfd_is_group_section): Define.
* tekhex.c (tekhex_bfd_is_group_section): Define.
* versados.c (versados_bfd_is_group_section): Define.
* vms.c (vms_bfd_is_group_section): Define.
* xsym.c (bfd_sym_bfd_is_group_section): Define.
* bfd-in2.h: Regenerate.
* libbfd.h: Regenerate.

20 years ago * ld.texinfo (--gc-sections): Remove restriction for
Eric Botcazou [Fri, 30 Apr 2004 11:49:45 +0000 (11:49 +0000)]
* ld.texinfo (--gc-sections): Remove restriction for
dynamic linking.

20 years agoFix handling of case sensitive register aliases and add a test for the bug
Nick Clifton [Fri, 30 Apr 2004 10:51:13 +0000 (10:51 +0000)]
Fix handling of case sensitive register aliases and add a test for the bug

20 years ago * elflink.c (elf_gc_mark): Follow indirect and warning syms.
Alan Modra [Fri, 30 Apr 2004 08:48:55 +0000 (08:48 +0000)]
* elflink.c (elf_gc_mark): Follow indirect and warning syms.