mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-20 18:08:24 +08:00
rcsid's removed
This commit is contained in:
@ -17,8 +17,6 @@ You should have received a copy of the GNU General Public License
|
|||||||
along with GAS; see the file COPYING. If not, write to
|
along with GAS; see the file COPYING. If not, write to
|
||||||
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
|
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
|
||||||
|
|
||||||
/* static const char rcsid[] = "$Id$"; */
|
|
||||||
|
|
||||||
#include "as.h"
|
#include "as.h"
|
||||||
|
|
||||||
#ifdef USG
|
#ifdef USG
|
||||||
|
@ -17,15 +17,13 @@
|
|||||||
along with GAS; see the file COPYING. If not, write to
|
along with GAS; see the file COPYING. If not, write to
|
||||||
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
|
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
|
||||||
|
|
||||||
/* static const char rcsid[] = "$Id$"; */
|
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
#include "as.h"
|
#include "as.h"
|
||||||
|
|
||||||
/* careful, this file includes data *declarations* */
|
/* careful, this file includes data *declarations* */
|
||||||
#include "sparc-opcode.h"
|
#include "opcode/sparc.h"
|
||||||
|
|
||||||
void md_begin();
|
void md_begin();
|
||||||
void md_end();
|
void md_end();
|
||||||
@ -137,10 +135,14 @@ static int special_case;
|
|||||||
* sort of like s_lcomm
|
* sort of like s_lcomm
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
static int max_alignment = 15;
|
||||||
|
|
||||||
static void s_reserve() {
|
static void s_reserve() {
|
||||||
char *name;
|
char *name;
|
||||||
char c;
|
|
||||||
char *p;
|
char *p;
|
||||||
|
char c;
|
||||||
|
int align;
|
||||||
|
int size;
|
||||||
int temp;
|
int temp;
|
||||||
symbolS *symbolP;
|
symbolS *symbolP;
|
||||||
|
|
||||||
@ -149,38 +151,87 @@ static void s_reserve() {
|
|||||||
p = input_line_pointer;
|
p = input_line_pointer;
|
||||||
*p = c;
|
*p = c;
|
||||||
SKIP_WHITESPACE();
|
SKIP_WHITESPACE();
|
||||||
if (* input_line_pointer != ',') {
|
|
||||||
|
if (*input_line_pointer != ',') {
|
||||||
as_bad("Expected comma after name");
|
as_bad("Expected comma after name");
|
||||||
ignore_rest_of_line();
|
ignore_rest_of_line();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
input_line_pointer ++;
|
|
||||||
if ((temp = get_absolute_expression()) < 0) {
|
++input_line_pointer;
|
||||||
as_bad("BSS length (%d.) <0! Ignored.", temp);
|
|
||||||
|
if ((size = get_absolute_expression()) < 0) {
|
||||||
|
as_bad("BSS length (%d.) <0! Ignored.", size);
|
||||||
ignore_rest_of_line();
|
ignore_rest_of_line();
|
||||||
return;
|
return;
|
||||||
}
|
} /* bad length */
|
||||||
|
|
||||||
*p = 0;
|
*p = 0;
|
||||||
symbolP = symbol_find_or_make(name);
|
symbolP = symbol_find_or_make(name);
|
||||||
*p = c;
|
*p = c;
|
||||||
|
|
||||||
if (strncmp(input_line_pointer, ",\"bss\"", 6) != 0) {
|
if (strncmp(input_line_pointer, ",\"bss\"", 6) != 0) {
|
||||||
as_bad("bad .reserve segment: `%s'", input_line_pointer);
|
as_bad("bad .reserve segment: `%s'", input_line_pointer);
|
||||||
return;
|
return;
|
||||||
}
|
} /* if not bss */
|
||||||
|
|
||||||
input_line_pointer += 6;
|
input_line_pointer += 6;
|
||||||
|
SKIP_WHITESPACE();
|
||||||
|
|
||||||
|
if (*input_line_pointer == ',') {
|
||||||
|
++input_line_pointer;
|
||||||
|
|
||||||
|
SKIP_WHITESPACE();
|
||||||
|
if (*input_line_pointer == '\n') {
|
||||||
|
as_bad("Missing alignment");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
align = get_absolute_expression();
|
||||||
|
if (align > max_alignment){
|
||||||
|
align = max_alignment;
|
||||||
|
as_warn("Alignment too large: %d. assumed.", align);
|
||||||
|
} else if (align < 0) {
|
||||||
|
align = 0;
|
||||||
|
as_warn("Alignment negative. 0 assumed.");
|
||||||
|
}
|
||||||
|
#ifdef MANY_SEGMENTS
|
||||||
|
#define SEG_BSS SEG_E2
|
||||||
|
record_alignment(SEG_E2, align);
|
||||||
|
#else
|
||||||
|
record_alignment(SEG_BSS, align);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* convert to a power of 2 alignment */
|
||||||
|
for (temp = 0; (align & 1) == 0; align >>= 1, ++temp) ;;
|
||||||
|
|
||||||
|
if (align != 1) {
|
||||||
|
as_bad("Alignment not a power of 2");
|
||||||
|
ignore_rest_of_line();
|
||||||
|
return;
|
||||||
|
} /* not a power of two */
|
||||||
|
|
||||||
|
align = temp;
|
||||||
|
|
||||||
|
/* Align */
|
||||||
|
align = ~((~0) << align); /* Convert to a mask */
|
||||||
|
local_bss_counter = (local_bss_counter + align) & (~align);
|
||||||
|
} /* if has optional alignment */
|
||||||
|
|
||||||
if (S_GET_OTHER(symbolP) == 0
|
if (S_GET_OTHER(symbolP) == 0
|
||||||
&& S_GET_DESC(symbolP) == 0
|
&& S_GET_DESC(symbolP) == 0
|
||||||
&& ((S_GET_TYPE(symbolP) == N_BSS
|
&& ((S_GET_SEGMENT(symbolP) == SEG_BSS
|
||||||
&& S_GET_VALUE(symbolP) == local_bss_counter)
|
&& S_GET_VALUE(symbolP) == local_bss_counter)
|
||||||
|| !S_IS_DEFINED(symbolP))) {
|
|| !S_IS_DEFINED(symbolP))) {
|
||||||
S_SET_VALUE(symbolP, local_bss_counter);
|
S_SET_VALUE(symbolP, local_bss_counter);
|
||||||
S_SET_SEGMENT(symbolP, SEG_BSS);
|
S_SET_SEGMENT(symbolP, SEG_BSS);
|
||||||
symbolP->sy_frag = & bss_address_frag;
|
symbolP->sy_frag = &bss_address_frag;
|
||||||
local_bss_counter += temp;
|
local_bss_counter += size;
|
||||||
} else {
|
} else {
|
||||||
as_warn("Ignoring attempt to re-define symbol from %d. to %d.",
|
as_warn("Ignoring attempt to re-define symbol from %d. to %d.",
|
||||||
S_GET_VALUE(symbolP), local_bss_counter);
|
S_GET_VALUE(symbolP), local_bss_counter);
|
||||||
}
|
} /* if not redefining */
|
||||||
|
|
||||||
demand_empty_rest_of_line();
|
demand_empty_rest_of_line();
|
||||||
return;
|
return;
|
||||||
} /* s_reserve() */
|
} /* s_reserve() */
|
||||||
@ -876,9 +927,9 @@ char *str;
|
|||||||
if (mask >= 32) {
|
if (mask >= 32) {
|
||||||
mask -= 31;
|
mask -= 31;
|
||||||
} /* wrap high bit */
|
} /* wrap high bit */
|
||||||
} /* if not an 'f' register. */
|
|
||||||
#endif /* NO_V9 */
|
#endif /* NO_V9 */
|
||||||
/* end-sanitize-v9 */
|
/* end-sanitize-v9 */
|
||||||
|
} /* if not an 'f' register. */
|
||||||
} /* on error */
|
} /* on error */
|
||||||
|
|
||||||
switch (*args) {
|
switch (*args) {
|
||||||
@ -937,6 +988,10 @@ char *str;
|
|||||||
the_insn.pcrel = 1;
|
the_insn.pcrel = 1;
|
||||||
goto immediate;
|
goto immediate;
|
||||||
|
|
||||||
|
case 'n': /* 22 bit immediate */
|
||||||
|
the_insn.reloc = RELOC_22;
|
||||||
|
goto immediate;
|
||||||
|
|
||||||
case 'i': /* 13 bit immediate */
|
case 'i': /* 13 bit immediate */
|
||||||
the_insn.reloc = RELOC_BASE13;
|
the_insn.reloc = RELOC_BASE13;
|
||||||
|
|
||||||
@ -984,23 +1039,22 @@ char *str;
|
|||||||
|
|
||||||
char *s1;
|
char *s1;
|
||||||
|
|
||||||
for(s1=s;*s1 && *s1!=','&& *s1!=']';s1++)
|
for (s1 = s; *s1 && *s1 != ',' && *s1 != ']'; s1++) ;;
|
||||||
;
|
|
||||||
|
|
||||||
if(s1!=s && isdigit(s1[-1])) {
|
if (s1 != s && isdigit(s1[-1])) {
|
||||||
if(s1[-2]=='%' && s1[-3]=='+') {
|
if(s1[-2] == '%' && s1[-3] == '+') {
|
||||||
s1-=3;
|
s1 -= 3;
|
||||||
*s1='\0';
|
*s1 = '\0';
|
||||||
(void)getExpression(s);
|
(void) getExpression(s);
|
||||||
*s1='+';
|
*s1 = '+';
|
||||||
s=s1;
|
s = s1;
|
||||||
continue;
|
continue;
|
||||||
} else if(strchr("goli0123456789",s1[-2]) && s1[-3]=='%' && s1[-4]=='+') {
|
} else if (strchr("goli0123456789", s1[-2]) && s1[-3] == '%' && s1[-4] == '+') {
|
||||||
s1-=4;
|
s1 -= 4;
|
||||||
*s1='\0';
|
*s1 = '\0';
|
||||||
(void)getExpression(s);
|
(void) getExpression(s);
|
||||||
*s1='+';
|
*s1 = '+';
|
||||||
s=s1;
|
s = s1;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1016,20 +1070,21 @@ char *str;
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'A': /* alternate space */
|
case 'A': {
|
||||||
if (isdigit(*s)) {
|
char *push = input_line_pointer;
|
||||||
long num;
|
expressionS e;
|
||||||
|
|
||||||
num=0;
|
input_line_pointer = s;
|
||||||
while (isdigit(*s)) {
|
|
||||||
num= num*10 + *s-'0';
|
if (expression(&e) == SEG_ABSOLUTE) {
|
||||||
++s;
|
opcode |= e.X_add_number << 5;
|
||||||
}
|
s = input_line_pointer;
|
||||||
opcode |= num<<5;
|
input_line_pointer = push;
|
||||||
continue;
|
continue;
|
||||||
}
|
} /* if absolute */
|
||||||
|
|
||||||
break;
|
break;
|
||||||
/* abort(); */
|
} /* alternate space */
|
||||||
|
|
||||||
case 'p':
|
case 'p':
|
||||||
if (strncmp(s, "%psr", 4) == 0) {
|
if (strncmp(s, "%psr", 4) == 0) {
|
||||||
@ -1347,10 +1402,23 @@ long val;
|
|||||||
buf[3]=0;
|
buf[3]=0;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
#if 0
|
|
||||||
case RELOC_22:
|
case RELOC_22:
|
||||||
|
if (val & ~0x003fffff) {
|
||||||
|
as_bad("relocation overflow");
|
||||||
|
} /* on overflow */
|
||||||
|
buf[1] |= (val >> 16) & 0x3f;
|
||||||
|
buf[2] = val >> 8;
|
||||||
|
buf[3] = val & 0xff;
|
||||||
|
break;
|
||||||
|
|
||||||
case RELOC_13:
|
case RELOC_13:
|
||||||
#endif
|
if (val & ~0x00001fff) {
|
||||||
|
as_bad("relocation overflow");
|
||||||
|
} /* on overflow */
|
||||||
|
buf[2] = (val >> 8) & 0x1f;
|
||||||
|
buf[3] = val & 0xff;
|
||||||
|
break;
|
||||||
|
|
||||||
/* start-sanitize-v9 */
|
/* start-sanitize-v9 */
|
||||||
#ifndef NO_V9
|
#ifndef NO_V9
|
||||||
@ -1492,6 +1560,7 @@ fragS *fragP;
|
|||||||
segT segtype;
|
segT segtype;
|
||||||
{
|
{
|
||||||
as_fatal("sparc_estimate_size_before_relax\n");
|
as_fatal("sparc_estimate_size_before_relax\n");
|
||||||
|
return(1);
|
||||||
} /* md_estimate_size_before_relax() */
|
} /* md_estimate_size_before_relax() */
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
@ -1718,6 +1787,13 @@ fixS *fixP;
|
|||||||
return fixP->fx_size + fixP->fx_where + fixP->fx_frag->fr_address;
|
return fixP->fx_size + fixP->fx_where + fixP->fx_frag->fr_address;
|
||||||
} /* md_pcrel_from() */
|
} /* md_pcrel_from() */
|
||||||
|
|
||||||
|
void tc_aout_pre_write_hook(headers)
|
||||||
|
object_headers *headers;
|
||||||
|
{
|
||||||
|
H_SET_VERSION(headers, 1);
|
||||||
|
return;
|
||||||
|
} /* tc_aout_pre_write_hook() */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Local Variables:
|
* Local Variables:
|
||||||
* comment-column: 0
|
* comment-column: 0
|
||||||
|
@ -17,8 +17,6 @@ You should have received a copy of the GNU General Public License
|
|||||||
along with GAS; see the file COPYING. If not, write to
|
along with GAS; see the file COPYING. If not, write to
|
||||||
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
|
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
|
||||||
|
|
||||||
/* static const char rcsid[] = "$Id$"; */
|
|
||||||
|
|
||||||
#include "flonum.h"
|
#include "flonum.h"
|
||||||
/* JF: I added the last entry to this table, and I'm not
|
/* JF: I added the last entry to this table, and I'm not
|
||||||
sure if its right or not. Could go either way. I wish
|
sure if its right or not. Could go either way. I wish
|
||||||
|
@ -17,8 +17,6 @@ You should have received a copy of the GNU General Public License
|
|||||||
along with GAS; see the file COPYING. If not, write to
|
along with GAS; see the file COPYING. If not, write to
|
||||||
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
|
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
|
||||||
|
|
||||||
/* static const char rcsid[] = "$Id$"; */
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Export: Hex_value[]. Converts digits to their radix-values.
|
* Export: Hex_value[]. Converts digits to their radix-values.
|
||||||
* As distributed assumes 8 bits per char (256 entries) and ASCII.
|
* As distributed assumes 8 bits per char (256 entries) and ASCII.
|
||||||
|
@ -17,8 +17,6 @@ You should have received a copy of the GNU General Public License
|
|||||||
along with GAS; see the file COPYING. If not, write to
|
along with GAS; see the file COPYING. If not, write to
|
||||||
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
|
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
|
||||||
|
|
||||||
/* static const char rcsid[] = "$Id$"; */
|
|
||||||
|
|
||||||
/* If your compiler is really ansi, then you don't need this. */
|
/* If your compiler is really ansi, then you don't need this. */
|
||||||
#ifndef __STDC__
|
#ifndef __STDC__
|
||||||
|
|
||||||
|
@ -17,8 +17,6 @@ You should have received a copy of the GNU General Public License
|
|||||||
along with GAS; see the file COPYING. If not, write to
|
along with GAS; see the file COPYING. If not, write to
|
||||||
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
|
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
|
||||||
|
|
||||||
/* static const char rcsid[] = "$Id$"; */
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
NAME
|
NAME
|
||||||
xmalloc() - get memory or bust
|
xmalloc() - get memory or bust
|
||||||
|
@ -18,8 +18,6 @@ along with GAS; see the file COPYING. If not, write to
|
|||||||
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
|
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
|
||||||
|
|
||||||
|
|
||||||
/* static const char rcsid[] = "$Id$"; */
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
||||||
NAME
|
NAME
|
||||||
|
Reference in New Issue
Block a user