From e01e1cee39777b6278ff01502742347247e8dfd7 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Fri, 21 Aug 2020 09:17:53 +0930 Subject: Rearrange symbol_create parameters These functions take an offset within frag, frag within section, and section parameter. So it makes sense to order the parameters as section, frag, offset. * symbols.h (symbol_new, symbol_create, local_symbol_make), (symbol_temp_new): Arrange params as section, frag, offset. * symbols.c: Adjust to suit. * as.c: Likewise. * cgen.c: Likewise. * dwarf2dbg.c: Likewise. * ecoff.c: Likewise. * expr.c: Likewise. * itbl-ops.c: Likewise. * read.c: Likewise. * stabs.c: Likewise. * subsegs.c: Likewise. * config/obj-coff.c: Likewise. * config/obj-elf.c: Likewise. * config/obj-macho.c: Likewise. * config/tc-aarch64.c: Likewise. * config/tc-alpha.c: Likewise. * config/tc-arc.c: Likewise. * config/tc-arm.c: Likewise. * config/tc-avr.c: Likewise. * config/tc-cr16.c: Likewise. * config/tc-cris.c: Likewise. * config/tc-csky.c: Likewise. * config/tc-dlx.c: Likewise. * config/tc-hppa.c: Likewise. * config/tc-i386.c: Likewise. * config/tc-ia64.c: Likewise. * config/tc-m32r.c: Likewise. * config/tc-m68k.c: Likewise. * config/tc-mips.c: Likewise. * config/tc-mmix.c: Likewise. * config/tc-mn10200.c: Likewise. * config/tc-mn10300.c: Likewise. * config/tc-nds32.c: Likewise. * config/tc-nios2.c: Likewise. * config/tc-ppc.c: Likewise. * config/tc-riscv.c: Likewise. * config/tc-s390.c: Likewise. * config/tc-sh.c: Likewise. * config/tc-tic4x.c: Likewise. * config/tc-tic54x.c: Likewise. * config/tc-xtensa.c: Likewise. --- gas/config/tc-arm.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'gas/config/tc-arm.c') diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c index 3b17e20..ce2dd0e 100644 --- a/gas/config/tc-arm.c +++ b/gas/config/tc-arm.c @@ -2971,7 +2971,7 @@ make_mapping_symbol (enum mstate state, valueT value, fragS *frag) abort (); } - symbolP = symbol_new (symname, now_seg, value, frag); + symbolP = symbol_new (symname, now_seg, frag, value); symbol_get_bfdsym (symbolP)->flags |= type | BSF_LOCAL; switch (state) @@ -3310,12 +3310,12 @@ s_thumb_set (int equiv) memset (dummy_frag, 0, sizeof (fragS)); dummy_frag->fr_type = rs_fill; dummy_frag->line = listing_tail; - symbolP = symbol_new (name, undefined_section, 0, dummy_frag); + symbolP = symbol_new (name, undefined_section, dummy_frag, 0); dummy_frag->fr_symbol = symbolP; } else #endif - symbolP = symbol_new (name, undefined_section, 0, &zero_address_frag); + symbolP = symbol_new (name, undefined_section, &zero_address_frag, 0); #ifdef OBJ_COFF /* "set" symbols are local unless otherwise specified. */ @@ -3543,7 +3543,7 @@ find_or_make_literal_pool (void) if (pool->symbol == NULL) { pool->symbol = symbol_create (FAKE_LABEL_NAME, undefined_section, - (valueT) 0, &zero_address_frag); + &zero_address_frag, 0); pool->id = latest_pool_num ++; } @@ -28025,7 +28025,7 @@ md_undefined_symbol (char * name ATTRIBUTE_UNUSED) as_bad (_("GOT already in the symbol table")); GOT_symbol = symbol_new (name, undefined_section, - (valueT) 0, & zero_address_frag); + &zero_address_frag, 0); } return GOT_symbol; -- cgit v1.1