aboutsummaryrefslogtreecommitdiff
path: root/gas/config
AgeCommit message (Collapse)AuthorFilesLines
1994-06-11 Add weak symbols as an extension to a.out.Ian Lance Taylor1-0/+47
* read.c (pseudo_set): Only preserve external bit for OBJ_AOUT and OBJ_BOUT if not BFD_ASSEMBLER. * config/aout_gnu.h (N_WEAKU, N_WEAKA, N_WEAKT, N_WEAKD, N_WEAKB): Define as in ../include/aout/aout64.h. * config/obj-aout.h (OBJ_SYMFIELD_TYPE): If not BFD_ASSEMBLER, define as char. (S_GET_WEAK, S_SET_WEAK): Define if not BFD_ASSEMBLER. * config/obj-aout.c (obj_pseudo_table): Add "weak". (obj_emit_symbols): Adjust type of weak symbols. (obj_aout_weak): New static function.
1994-06-10 * config/ho-sunos.h: Include <stdlib.h>. Don't declare malloc,Ian Lance Taylor1-6/+1
realloc, free, or atol.
1994-06-06 * config/tc-mips.c (RDATA_SECTION_NAME): Define.Ian Lance Taylor1-18/+39
(macro): Correct M_LI_SS SVR4_PIC/EMBEDDED_PIC case. After M_LI_D or M_L_DOB or label dob, force a new frag to avoid getting confused in tc_gen_reloc. (mips_ip): Use RDATA_SECTION_NAME, not .rdata. (s_change_sec): Likewise.
1994-06-03 * as.c (show_usage), config/tc-alpha.c (md_show_usage),David MacKenzie1-1/+0
config/tc-mips.c (md_show_usage): Fix up messages.
1994-06-03improve usage messageDavid MacKenzie1-2/+3
1994-06-03 * as.h: Replace flagseen with separate variables.David MacKenzie9-66/+120
* as.c (parse_args): Set them. Don't accept -1 option, or -v explicitly (it's a synonym for --version). * as.c, input-scrub.c, messages.c, read.c, symbols.c, write.c, config/obj-aout.c, config/obj-aout.h, config/obj-bout.c, config/obj-bout.h, config/obj-coff.c, config/obj-coff.h, config/obj-vms.c, config/tc-hppa.c, config/tc-i386.c, config/tc-i960.c, config/tc-m68k.c, config/tc-mips.c, config/tc-vax.c: Use the new flag variables instead of flagseen. * config/tc-vax.c [OBJ_VMS]: Recognize -+, -1, -v, and document in usage.
1994-06-03 * as.c (show_usage): Remove target specific messages;David MacKenzie12-1127/+1160
instead, call md_show_usage. (parse_args): Use getopt_long_only. Take pointers to argc and argv. (main): Pass parse_args pointers. * as.h: Remove 3 variables that are redundant with flagseen. * as.c, messages.c: Change their users to use flagseen. Define getopt stuff. * tc.h: Update md_parse_option decl. Add md_show_usage decl. * config/tc-*.c: Add md_shortopts, md_longopts, md_longopts_size, md_show_usage. Change calling convention for md_parse_option. Remove md_parse_long_option. * config/tc-ns32k.c: Rename `struct option' to `struct ns32k_option'. * config/tc-i386.h: Don't define md_parse_option.
1994-06-0268060 supportKen Raeburn1-185/+263
1994-06-02(fixup_segment) [!BFD_ASSEMBLER] [DIFF_EXPR_OK]: Do conversion to pc-relativeKen Raeburn1-2/+2659
for difference, even if pcrel is already set.
1994-06-02Handle EV5 (21164/66/68) PALcode support.Ken Raeburn2-105/+536
* config/tc-alpha.c (machine): New variable. (load_insn): New macro. (load_insn_table): New function. (md_begin): Call load_insn_table, once for basic instructions and once for appropriate PAL instruction table. (md_parse_option): Set `machine' based on -m##### arguments. * config/alpha-opcode.h (alpha_pal21064_opcodes): Split out from alpha_opcodes. (alpha_pal21164_opcodes): New table. (NUM21064OPCODES, NUM21164OPCODES): New macros.
1994-06-01 * config/tc-mips.c (mips_ip): Force floating point values to beIan Lance Taylor1-5/+13
aligned correctly.
1994-05-27changes from gas-2.3/binutils-2.4 dist (details in branch log msgs, changelogs)Ken Raeburn5-117/+138
1994-05-19 * config/tc-sparc.c (md_section_align): Don't change the size ifIan Lance Taylor1-4/+11
OBJ_ELF.
1994-05-18 * config/tc-hppa.c (pa_ip): Use R_HPPA_ABS_CALL, not R_HPPA forJeff Law1-1/+1
absolute calls.
1994-05-17 * config/tc-hppa.c (pa_parse_fp_cmp_cond): Report an errorJeff Law1-1/+13
on a partial completer match.
1994-05-16 * config/tc-hppa.c: Change .hppa_unwind to .PARISC.unwindJeff Law1-169/+27
throughout code. (is_complex): Delete definition and support for complex relocation types. (tc_gen_reloc): Delete special unwind crud for ELF. Simplify and rewrite ELF code based on 94-02-02 PA ELF draft spec. (pa_build_unwind_subspace): Use standard PARISC_DIR32 relocs for the unwind descriptors.
1994-05-07Disable single quote strings.Steve Chamberlain1-1/+1
1994-05-06 * config/go32.mh: New makefile fragment for go32 crossing.Steve Chamberlain2-0/+3
* configure.in (host==go32): Use new fragment.
1994-05-06Note deleted files.Ken Raeburn1-3/+0
1994-05-05* config/obj-coff*.*: Merged coffbfd versions into coff versions, with a singleKen Raeburn2-3198/+0
"#ifdef BFD_ASSEMBLER" controlling most of it for now. Deleted obj-coffbfd.* files. * configure.in: Always use obj-coff.* for COFF targets.
1994-05-04* config/te-dpx2.h (TARGET_FORMAT, REGISTER_PREFIX_OPTIONAL): Define.Ken Raeburn1-0/+4
* configure.in (m68k-bull-sysv3*): Enable.
1994-05-04not usedKen Raeburn1-855/+0
1994-05-04 * config/obj-coffbfd.c (fixup_segment): Make common symbol and PCIan Lance Taylor1-3/+3
relative adjustments when TE_LYNX is defined as well as when TC_I386 is defined.
1994-05-04* obj-coff.h (TARGET_FORMAT) [TC_I960]: Select little endian version.Ken Raeburn4-582/+494
* obj-coffbfd.h (TARGET_FORMAT) [TC_I960]: Ditto. * obj-coff.c (coff_frob_section): Round up the size of every section to a multiple of the alignment, so that BFD doesn't surprise us. Eliminate many simple differences between the two COFF back ends: * obj-coffbfd.c: Removed all uses of DEFUN and DEFUN_VOID. Made minor stylistic changes, deleted some register declarations. (stack_top): Deleted. (symbol_to_chars): Use absolute_section and reg_section instead of the corresponding SEG_* symbols. (obj_coff_endef, tag_find_or_make, fixup_segment): Likewise. (stack typedef, stack_init, stack_delete, stack_push, stack_pop): Moved to just after pseudo-op table. All functions now static. (stack_delete): Removed declaration. (tag_init, tag_insert, tag_find_or_make, tag_find): Moved to just after stack functions. * obj-coffbfd.h: Reordered some declarations and macros. (stack_init, stack_delete, stack_push, stack_pop): Don't declare. (stack typedef): Deleted. (SYMBOLS_NEED_BACKPOINTERS): Always undef then define; don't test. (SYM_AUXENT): New macro. (SA_GET_*, SA_SET_*): Define in terms of SYM_AUXENT when feasible. (SF_GET_*, SF_SET_*): Define in terms of SF_GET when feasible. (SA_GET_SYM_TAGNDX, SA_GET_SYM_ENDNDX, SA_SET_SYM_TAGNDX, SA_SET_SYM_ENDNDX, object_headers typedef, data_section_header, text_section_header): Delete non-BFD_HEADERS versions, since we always define that symbol now. * obj-coff.c (stack_top): Deleted. (obj_coff_endef, obj_coff_dim, obj_coff_line, obj_coff_size, obj_coff_scl, obj_coff_tag, obj_coff_type, obj_coff_val): Change argument name from "ignored" to "ignore". (obj_coff_val): Use frag_now_fix. (obj_pseudo_table): Removed IGNORE_DEBUG version, since it doesn't get used. (stack typedef, stack_init, stack_delete, stack_push, stack_pop): Moved to just after pseudo-op table. All functions now static. (tag_init, tag_insert, tag_find_or_make, tag_find): Moved to just after stack functions. * obj-coff.h: Reordered some declarations and macros. Protected against multiple inclusions. (stack_init, stack_delete, stack_push, stack_pop): Don't declare. (stack typedef): Deleted. (SYMBOLS_NEED_BACKPOINTERS): Always undef then define; don't test. (stdoutput): Deleted declaration. (TARGET_FORMAT) [TC_I386]: Don't define if already defined.
1994-04-26* tc-m68k.c (flag_reg_prefix_optional): New variable. Initialized to value ofKen Raeburn1-3/+32
REGISTER_PREFIX_OPTIONAL, if defined, or zero. (m68k_reg_parse): If flag_reg_prefix_optional is set, permit register prefix to be absent. (m68k_ip_op): Accept `&' also for immediate constants. (insert_reg): Don't bother with (two!?) sanity checks of the symbol table when inserting each register. (m68k_parse_long_option): New function. Set flag_reg_prefix_optional if "register-prefix-optional" is passed. * tc-m68k.h (REGISTER_PREFIX): Always define if not already defined. (OPTIONAL_REGISTER_PREFIX): Don't define. (REGISTER_PREFIX_OPTIONAL): If not already defined, define as zero or one depending on M68KCOFF. Some changes to help Apollo support, from troy@cbme.unsw.edu.au: * tc-m68k.c (DATA, ADDR, SP, FPREG, COPNUM, BAD, BAC): Define as macros instead of enumerators, since the Apollo compiler can't handle "enumVal1, enumVal2 = enumVal1" when defining an enum type. (make_pcrel_absolute) [NO_PCREL_RELOCS]: New function. (tc_coff_fix2rtype) [NO_PCREL_RELOCS]: Generate only R_RELBYTE, R_DIR16, and R_DIR32 relocs. * tc-m68k.h [TE_APOLLO] (COFF_MAGIC, COFF_AOUTHDR_MAGIC): Use Apollo versions. [TE_APOLLO] (OBJ_COFF_OMIT_OPTIONAL_HEADER): Undefine. That is, do include the optional header for Apollo target. (COFF_MAGIC): Don't define as MC68MAGIC if it's already defined. * tc-m68k.h [TE_DELTA] (LEX_PCT): Define as 1, so that `%' can be used within a label name. * tc-m68k.h (m68k_init_after_args): Declare. (tc_init_after_args): Define as m68k_init_after_args. * tc-m68k.c (m68k_init_after_args): New function, containing one-shot code from md_assemble. Added warning for combination of 68040 and 68851. (md_assemble): Startup-time code deleted.
1994-04-26* config/obj-coffbfd.c (fill_section): Check COFF_NOLOAD_PROBLEMKen Raeburn1-2/+7
also before setting STYP_NOLOAD for .bss section.
1994-04-22* config/obj-coff.c (obj_symbol_new_hook): Don't need to strip underscores,Ken Raeburn2-21/+0
since symbol_new will already have done it. * config/obj-coffbfd.c (obj_symbol_new_hook): Ditto.
1994-04-21 * config/tc-mips.c (append_insn): Permit branches to be switchedIan Lance Taylor1-2/+0
with the preceding instruction even if .set nobopt has been seen. .set nobopt actually controls whether to bring up an instruction from the branch target, which gas does not currently support.
1994-04-20* config/obj-coff.h, config/obj-coff.c: Deleted all code used only whenKen Raeburn2-1744/+69
BFD_ASSEMBLER is not defined, and all conditionals relating to such code. No such targets remain. Fixes for stabs-in-coff: * config/obj-coff.c: Include subsegs.h. (coff_frob_section): New function. (obj_coff_init_stab_section): New function. * config/obj-coff.h (obj_coff_init_stab_section, coff_frob_section): Declare. (obj_frob_section): New macro; uses coff_frob_section. (INIT_STAB_SECTION): New macro; uses obj_coff_init_stab_section.
1994-04-19(VMS_write_object_file): While looking for register mask, skip empty fill fragsKen Raeburn1-0/+5
caused by enabling listing output.
1994-04-19Include string.h.Ken Raeburn1-0/+1
1994-04-18 * config/tc-hppa.c (pa_parse_space_stmt): Use the built-inJeff Law1-8/+36
defaults for defined, private, and spnum fields for the $TEXT$ and $PRIVATE$ spaces. Do not clobber spnum. Do not reset the segment if just updating a space. (pa_spaces_begin): Set BFD section flags for all built-in subspaces.
1994-04-14* Makefile.in: Make $(OBJS) depend on $(ALL_OBJ_DEPS).Ken Raeburn1-0/+2
* configure.in: Set ALL_OBJ_DEPS in output Makefile. Based on suggestions from <BAILEY@hmivax.humgen.upenn.edu> (Charles Bailey): * vmsconf.sh: In generated file, get ".obj" suffix right, build source files from other directories into objects in the current directory, and specify PSECT attributes explicitly to linker. Also added missing label. * Makefile.in (stamp-mk.com): Reference new variable VMS_OTHER_OBJS for list of non-local object files, instead of listing them here. (VMS_OTHER_OBJS): New variable, added more libiberty files. * make-gas.com: Regenerated. * config/ho-vms.h (unlink): Define as delete. * config-gas.com: Fix quoting on TARGET_CANONICAL definition. Delete files before creating them.
1994-04-14Remove assertion that was not intended to be checked in.Ian Lance Taylor1-1/+0
1994-04-14 * config/tc-mips.h (DIFF_EXPR_OK): Define.Ian Lance Taylor1-8/+112
* config/tc-mips.c (macro_build): Permit BFD_RELOC_PCREL_LO16 for certain cases of 'i', 'j' and 'o'. Change 'u' to take an argument, the reloc type. (load_register): Pass reloc type to macro_build for 'u'. (macro): Likewise. For M_LA_AB permit a difference expression when generating embedded PIC code between an arbitrary symbol and a symbol in the .text section. (mips_force_relocation): Force BFD_RELOC_PCREL_HI16_S and BFD_RELOC_PCREL_LO16 to be emitted. (md_apply_fix): Check that most relocs are not PC relative. Handle BFD_RELOC_PCREL_HI16_S and BFD_RELOC_PCREL_LO16. (tc_gen_reloc): Change #error to as_fatal. Handle BFD_RELOC_PCREL_LO16 and BFD_RELOC_PCREL_HI16_S.
1994-04-11 * config/tc-hppa.c (pa_procend): Handle case where label wasJeff Law1-2/+37
defined after the .proc directive.
1994-04-11 * config/tc-hppa.c (pa_procend): Give an error if we encounter aJeff Law1-0/+3
procend for a procedure without a name.
1994-04-07note deleted .mt filesKen Raeburn1-4/+0
1994-04-07 * config/tc-mips.c (macro): Pass NULL for expression argument toIan Lance Taylor1-6/+36
macro_build for nori case. (SWITCH_TABLE): Define. (mips_force_relocation): Force a relocation for a switch table entry. (md_apply_fix): Write switch table entry value into file. (tc_gen_reloc): Use BFD_RELOC_GPREL32 for a switch table entry, and set the addend to the difference between the reloc address and the subtrahend.
1994-04-07 * config/tc-hppa.h (elf_tc_symbol): Delete. No longer used.Jeff Law1-24/+0
(elf_tc_make_sections): Likewise. (hppa_tc_make_sections, hppa_tc_symbol): Delete extern decls. * config/tc-hppa.c (hppa_tc_make_sections): Delete function. (hppa_tc_symbol): Likewise. * config/obj-elf.c (elf_frob_file): Delete elf_tc_symbol and elf_tc_make_sections stuff. It was there to support PA braindamage which has been fixed, and in the case of elf_tc_make_sections is redundant with elf_tc_final_processing.
1994-04-05 * config/tc-mips.c (mips_ip): For case 'o', when generatingIan Lance Taylor1-11/+44
embedded PIC code, accept the difference between two local symbols as being constant. (mips_force_relocation): Only force a reloc to be generated for a PC relative fixup. (md_apply_fix): For BFD_RELOC_32 and BFD_RELOC_LO16, put the fixup value into the file if the fixup will not generate a reloc.
1994-04-05(s_reserve): If section passed isn't bss, don't spew remainder of input file inKen Raeburn1-2/+8
error message. (tc_gen_reloc): If bfd_reloc_type_lookup returns null, print error message with reloc type and try to process remainder of file.
1994-04-05 * config/tc-hppa.c (tc_gen_reloc): Fix thinko in ELF version.Jeff Law1-3/+2
1994-04-04 * config/tc-ppc.c (ppc_size): New static variable.Ian Lance Taylor1-6/+12
(ppc_arch): Check for PPC_OPCODE_PPC before PPC_OPCODE_POWER. (md_begin): If an instruction has a size specific flag set, only add it if we are assembling that size.
1994-03-31 * config/tc-sparc.c (tc_gen_reloc): Add a gruesome hack to getIan Lance Taylor1-21/+67
cross section PC relative relocs right for COFF and ELF.
1994-03-28* config/obj-coff.h (SEPARATE_STAB_SECTIONS): Always define.Ken Raeburn1-0/+6
(OBJ_PROCESS_STAB): Don't define.
1994-03-28Mon Mar 28 12:35:00 1994 David Edelsohn (edelsohn@npac.syr.edu)Ian Lance Taylor1-0/+2416
* config/tc-ppc.c (md_parse_option): Add -mpwrx (POWER/2 aka RIOS2), -mpwr (POWER aka RIOS1), -mppc (PowerPC aka MPC603/604), and -many (all architectures).
1994-03-27 * config/tc-hppa.c (tc_gen_reloc): Set addend for relocationJeff Law1-24/+32
involving a function symbol which is not a plabel to zero. (md_apply_fix): Never pass a function symbol to field_adjust.
1994-03-25 * config/obj-aout.c (obj_aout_frob_symbol): If N_EXT is set for anIan Lance Taylor1-5/+33
N_INDR symbol, set BSF_EXPORT and clear BSF_LOCAL.
1994-03-25 * config/tc-mips.c (append_insn): If EMBEDDED_PIC, don't swap aIan Lance Taylor1-7/+59
branch with an instruction that uses $at, in case the branch is later expanded. (macro): If EMBEDDED_PIC, case M_JAL_A may use $at. (md_pcrel_from): If not OBJ_AOUT, return 4 for an undefined symbol to make it pcrel_offset. (tc_gen_reloc): If not OBJ_AOUT, set the reloc addend to reloc->address; another gruesome hack to get gas reloc handling to do the right thing.