aboutsummaryrefslogtreecommitdiff
path: root/binutils
AgeCommit message (Collapse)AuthorFilesLines
2002-05-23 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_THREAD_LOCALJakub Jelinek3-10/+31
for symbols from SHF_TLS section. (_bfd_elf_print_private_bfd_data): Add PT_TLS. (elf_fake_sections): Set SHF_TLS for SEC_THREAD_LOCAL sections. (map_sections_to_segments): Build PT_TLS segment if necessary. (assign_file_positions_for_segments): Likewise. (get_program_header_size): Account for PT_TLS segment. (swap_out_syms): Set type of BSF_THREAD_LOCAL symbols and symbols from SEC_THREAD_LOCAL sections to STT_TLS. * reloc.c: Add 386 and IA-64 TLS relocs. * section.c (SEC_THREAD_LOCAL): Define. (SEC_CONSTRUCTOR_TEXT, SEC_CONSTRUCTOR_DATA, SEC_CONSTRUCTOR_BSS): Remove. * elflink.h (elf_link_add_object_symbols): Support .tcommon. (size_dynamic_sections): If DF_STATIC_TLS, set DF_FLAGS unconditionally. (struct elf_final_link_info): Add first_tls_sec. (elf_bfd_final_link): Set first_tls_sec. Compute elf_hash_table (info)->tls_segment. (elf_link_output_extsym): Handle STT_TLS symbols. (elf_link_input_bfd): Likewise. * syms.c (BSF_THREAD_LOCAL): Define. * bfd-in2.h: Rebuilt. * libbfd.h: Rebuilt. * elf32-i386.c (elf_i386_tls_transition, dtpoff_base, tpoff, elf_i386_mkobject, elf_i386_object_p): New functions. (elf_howto_table): Add TLS relocs. (elf_i386_reloc_type_lookup): Support TLS relocs. (elf_i386_info_to_howto_rel): Likewise. (struct elf_i386_link_hash_entry): Add tls_type. (struct elf_i386_obj_tdata): New. (elf_i386_hash_entry, elf_i386_tdata, elf_i386_local_got_tls_type): New macros. (struct elf_i386_link_hash_table): Add tls_ldm_got. (link_hash_newfunc): Clear tls_type. (elf_i386_check_relocs): Support TLS relocs. (elf_i386_gc_sweep_hook): Likewise. (allocate_dynrelocs): Likewise. (elf_i386_size_dynamic_sections): Likewise. (elf_i386_relocate_section): Likewise. (elf_i386_finish_dynamic_symbol): Likewise. (bfd_elf32_mkobject, elf_backend_object_p): Define. * elfxx-ia64.c (struct elfNN_ia64_dyn_sym_info): Add tprel_offset, dtpmod_offset, dtprel_offset, tprel_done, dtpmod_done, dtprel_done, want_tprel, want_dtpmod, want_dtprel. (elfNN_ia64_tprel_base, elfNN_ia64_dtprel_base): New functions. (ia64_howto_table): Add TLS relocs, rename R_IA64_LTOFF_TP22 to R_IA64_LTOFF_TPREL22. (elf_code_to_howto_index): Add TLS relocs. (elfNN_ia64_check_relocs): Support TLS relocs. (allocate_global_data_got): Account for TLS .got data. (allocate_dynrel_entries): Account for TLS dynamic relocations. (elfNN_ia64_install_value): Supprt TLS relocs. (set_got_entry): Support TLS relocs. (elfNN_ia64_relocate_section): Likewise. * config/obj-elf.c (elf_common): Renamed from obj_elf_common. (obj_elf_common): Call elf_common. (obj_elf_tls_common): New function. (elf_pseudo_tab): Support .tls_common. (special_sections): Add .tdata and .tbss. (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS sections. (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS). (obj_elf_parse_section_letters): Include T in error message. * config/tc-ppc.c (ppc_section_letter): Likewise. * config/tc-alpha.c (alpha_elf_section_letter): Likewise. (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as SEC_MERGE. * config/tc-sparc.c (md_apply_fix3): Likewise. * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs. Define them if not BFD_ASSEMBLER. (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF and @NTPOFF. (md_apply_fix3): Add TLS relocs. * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE, FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE, FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE. (pseudo_func): Support @dtpmod(), @dtprel() and @tprel(). (ia64_elf_section_letter): Include T in error message. (md_begin): Support TLS operators. (md_operand): Likewise. (ia64_gen_real_reloc_type): Support TLS relocs. * testsuite/gas/i386/tlspic.s: New file. * testsuite/gas/i386/tlsd.s: New file. * testsuite/gas/i386/tlsnopic.s: New file. * testsuite/gas/i386/tlsd.d: New file. * testsuite/gas/i386/tlsnopic.d: New file. * testsuite/gas/i386/tlspic.d: New file. * testsuite/gas/i386/i386.exp: Add tlsd, tlsnopic and tlspic tests. * testsuite/gas/ia64/tls.s: New file. * testsuite/gas/ia64/tls.d: New file. * testsuite/gas/ia64/ia64.exp: Add tls test. * write.c (adjust_reloc_syms): Don't change symbols in SEC_THREAD_LOCAL sections to STT_SECTION + addend. * elf/common.h (PT_TLS, SHF_TLS, STT_TLS, DF_STATIC_TLS): Define. * elf/ia64.h (R_IA64_LTOFF_TPREL22): Renamed from R_IA64_LTOFF_TP22. * elf/i386.h: Add TLS relocs. * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss. * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for output section if necessary. Handle .tbss. (lang_size_sections): Clear _raw_size for .tbss section (it allocates space in PT_TLS segment only). * ldwrite.c (build_link_order): Build link order for .tbss too. * readelf.c (get_segment_type): Add PT_TLS. (get_elf_section_flags): Add SHF_TLS. (get_dynamic_flags): Optimize. Add DF_STATIC_TLS. (process_dynamic_segment): Use puts instead of printf. (get_symbol_type): Support STT_TLS. * objdump.c (dump_section_header): Remove SEC_CONSTRUCTOR_TEXT, SEC_CONSTRUCTOR_DATA, SEC_CONSTRUCTOR_BSS. Add SEC_THREAD_LOCAL.
2002-05-23 * rdcoff.c: Fix formatting.Kazu Hirata8-214/+224
* rddbg.c: Likewise. * readelf.c: Likewise. * rename.c: Likewise. * resbin.c: Likewise. * resrc.c: Likewise. * resres.c: Likewise.
2002-05-21 * filemode.c: Fix formatting.Kazu Hirata13-111/+126
* ieee.c: Likewise. * is-ranlib.c: Likewise. * is-strip.c: Likewise. * maybe-ranlib.c: Likewise. * maybe-strip.c: Likewise. * nlmconv.c: Likewise. * nm.c: Likewise. * not-ranlib.c: Likewise. * not-strip.c: Likewise. * objcopy.c: Likewise. * objdump.c: Likewise.
2002-05-21 * objdump.c (dump_headers): Fix output formatting for ELF32Thiemo Seufer2-1/+10
architectures in a BFD64 enabled toolchain. * bfd/bfd.c (bfd_get_arch_size): Remove bfd_set_error call for non-ELF targets.
2002-05-20 * debug.c: Fix formatting.Kazu Hirata7-287/+296
* debug.h: Likewise. * dlltool.c: Likewise. * dllwrap.c: Likewise. * emul_aix.c: Likewise. * emul_vanilla.c: Likewise.
2002-05-19 * addr2line.c: Fix formatting.Kazu Hirata11-69/+82
* ar.c: Likewise. * arsup.c: Likewise. * arsup.h: Likewise. * binemul.c: Likewise. * binemul.h: Likewise. * bucomm.c: Likewise. * coffdump.c: Likewise. * coffgrok.c: Likewise. * coffgrok.h: Likewise.
2002-05-16 * MAINTAINERS: Add myself as the second AVR port maintainer.Marek Michalkiewicz2-0/+5
2002-05-16 * MAINTAINERS: Update my email address.Stephane Carrez2-1/+5
2002-05-09Add Joasn Thorpe as VAX maintainerNick Clifton2-0/+5
2002-05-08 * configure.in: Replace `*pe' with `pe' throughout.Alan Modra3-14/+19
2002-05-07Honour DESTDIRNick Clifton3-13/+18
2002-05-06oops, missing changelog entryAlan Modra1-1/+14
* dlltool.c (process_def_file): Add missing prototype. (new_directive, assemble_file, main): Likewise. (process_def_file, new_directive): Make static. (inform): Rewrite using VA_FIXEDARG. * dllwrap.c (mybasename): Add missing prototype. (strhash, main): Likewise. (inform): Rewrite using VA_FIXEDARG. (warn): Likewise. (cleanup_and_exit): Use old style function definition. (strhash): Likewise. * windres.c (define_resource): Use one memset to clear all of struct res_resource.
2002-05-05 * dlltool.c (process_def_file): Add missing prototype.Alan Modra3-63/+33
(new_directive, assemble_file, main): Likewise. (process_def_file, new_directive): Make static. (inform): Rewrite using VA_FIXEDARG. * dllwrap.c (mybasename): Add missing prototype. (strhash, main): Likewise. (inform): Rewrite using VA_FIXEDARG. (warn): Likewise. (cleanup_and_exit): Use old style function definition. (strhash): Likewise. * windres.c (define_resource): Use one memset to clear all of struct res_resource.
2002-05-05 * rcparse.y: Remove newcmd rule. Move rcparse_discard_stringsAlan Modra4-23/+78
call to rules that need no lookahead. Check for no lookahead. * rclex.l (get_string): Correct "strings" list handling. * resrc.c (read_rc_file): Discard strings.
2002-05-04 * ar.c (replace_members): Remove unused var. Formatting fix.Alan Modra3-3/+6
* binemul.c (ar_emul_default_parse_arg): Add ATTRIBUTE_UNUSED.
2002-05-04 * MAINTAINERS: Sort port maintainers by CPU.Alan Modra2-5/+9
2002-05-04 * size.c (display_archive): Add last_arfile and code to close archives.Alan Modra2-1/+12
2002-05-01 * nm.c (print_symbol): Check returned filename fromAlan Modra2-1/+7
bfd_find_nearest_line is non-NULL.
2002-04-252002-04-25 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni2-0/+5
* readelf.c (get_AT_name): Handle DW_AT_GNU_vector.
2002-04-25The patch contains mostly fixes for the disassembler. It also fixesNick Clifton2-1/+6
a crash of the assembler with some malformed source input. Long segmented addresses are now correctly relocated. Finally it updates my email address in the MAINTAINERS file.
2002-04-17 * arparse.y: Fix syntax warning.Thiemo Seufer2-0/+5
* ldgram.y: Fix syntax warning.
2002-04-16Remove unused function fetch_location_list.Nick Clifton2-13/+18
Catch corrupt core notes and display a warning message.
2002-04-16Define MEMFLAGS_DISCARDABLE by default for dialogs.Nick Clifton7-2/+40
Add a test for this.
2002-04-15Allow two to five parameter in FONT statement of DIALOGEX resources.Nick Clifton8-8/+145
2002-04-11Use 'file delete' instead of 'exec rm -f'.Nick Clifton2-1/+6
2002-04-10Delete created files upon successful completeion of the test.Nick Clifton2-8/+12
2002-04-10Regernated recently created expected output files using MSVC.Nick Clifton11-10/+25
Set MEMFLAG_PURE by default - bug exposed by regenerated files.
2002-04-09Add WS_CAPTION dialog style if CAPTION is specified.Nick Clifton5-0/+20
Add testcase.
2002-04-09Don't print empty dialog caption.Nick Clifton5-0/+19
Add testcase.
2002-04-09Fix overlooked sublang shift bug.Nick Clifton5-7/+27
Add testcase.
2002-04-09Set default LANGUAGE to english/us.Nick Clifton9-6/+33
2002-04-09Use signature to identify DIALOGEX.Nick Clifton4-14/+32
Add testcase.
2002-04-09Don't add default dialog style when explicit style specified.Nick Clifton5-4/+29
Print style even if it is 0. Add testcase.
2002-04-09"\a" escape (used for right justified key definitions in menus) is encodes asNick Clifton5-1/+21
binary 8.
2002-04-09Fix parsing hex constants in strings. Add test for the fix.Nick Clifton5-6/+24
2002-04-09Fix typo in BEDIT warning.Nick Clifton2-4/+5
2002-04-09Apply patch from Bernd Herd to fix quoted class definitions inside dialogs.Nick Clifton5-6/+32
2002-04-09Tue Apr 9 15:13:10 2002 J"orn Rennecke <joern.rennecke@superh.com>Joern Rennecke2-1/+5
* MAINTAINERS: Update my email address.
2002-04-04 * dep-in.sed: Cope with absolute paths.Alan Modra4-32/+55
* Makefile.am (dep.sed): Subst TOPDIR. Run "make dep-am". * Makefile.in: Regenerate.
2002-03-27 * MAINTAINERS: Update my email address.Peter Targett2-1/+5
2002-03-21 * Makefile.am: Run "make dep-am".Alan Modra8-482/+472
* Makefile.in: Regenerate. * doc/Makefile.in: Regenerate. * po/POTFILES.in: Regenerate. * aclocal.m4: Regenerate. * config.in: Regenerate. * configure: Regenerate.
2002-03-212002-03-20 Daniel Berlin <dan@dberlin.org>Daniel Berlin2-3/+157
* readelf.c: Add support for displaying dwarf2 location lists. (do_debug_loc, debug_loc_section, debug_loc_size): New. (parse_args): Use 'O' as shorthand for displaying location list section. (process_section_headers): Handle debug_loc as well. (load_debug_loc): New. (free_debug_loc): New. (fetch_location_list): New. (display_debug_loc): New. (display_debug_info): Call load_debug_loc and free_debug_loc. (debug_displays): We can display .debug_loc now, too. (usage): Update usage string. (read_and_display_attr_value): Note location lists, but don't display them inline.
2002-03-18Add AIX 64 shared library support and emulation layer for binutilsNick Clifton12-76/+628
2002-03-18Updated French translationsNick Clifton2-55/+59
2002-03-13Updated French translationsNick Clifton2-182/+453
2002-03-082002-03-07 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz2-3/+7
* README: Update some version numbers.
2002-03-082002-03-07 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz2-3/+8
* doc/binutils.texi (Target Selection): Fix LD crossreferences. (Architecture Selection): Likewise.
2002-03-01Take into account --kill-at (-k) while generating .exp file.Nick Clifton2-2/+7
2002-02-21Fix typo.Nick Clifton2-1/+5
2002-02-20Mark 2.12 branchNick Clifton2-0/+6