URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
Compare Revisions
- This comparison shows the changes necessary to convert path
/
- from Rev 209 to Rev 210
- ↔ Reverse comparison
Rev 209 → Rev 210
/openrisc/trunk/gnu-src/binutils-2.20.1/ld/ChangeLog
1,3 → 1,8
2010-07-07 Jeremy Bennett <jeremy.bennett@embecosm.com> |
|
* emulparams/or32elf.sh: Load text at zero. Put .vectors section |
first of all. |
|
2010-02-10 Richard Sandiford <r.sandiford@uk.ibm.com> |
|
* Makefile.am (CFILES): Add ldlex-wrapper.c. |
/openrisc/trunk/gnu-src/binutils-2.20.1/ld/ldlex.c
1,5 → 1,5
|
#line 3 "/Users/gingold/Repositories/fsf/binutils-2_20/ld/ldlex.c" |
#line 3 "../../srcw/ld/ldlex.c" |
|
#define YY_INT_ALIGNED short int |
|
152,13 → 152,8
typedef struct yy_buffer_state *YY_BUFFER_STATE; |
#endif |
|
#ifndef YY_TYPEDEF_YY_SIZE_T |
#define YY_TYPEDEF_YY_SIZE_T |
typedef size_t yy_size_t; |
#endif |
extern int yyleng; |
|
extern yy_size_t yyleng; |
|
extern FILE *yyin, *yyout; |
|
#define EOB_ACT_CONTINUE_SCAN 0 |
183,6 → 178,11
|
#define unput(c) yyunput( c, (yytext_ptr) ) |
|
#ifndef YY_TYPEDEF_YY_SIZE_T |
#define YY_TYPEDEF_YY_SIZE_T |
typedef size_t yy_size_t; |
#endif |
|
#ifndef YY_STRUCT_YY_BUFFER_STATE |
#define YY_STRUCT_YY_BUFFER_STATE |
struct yy_buffer_state |
200,7 → 200,7
/* Number of characters read into yy_ch_buf, not including EOB |
* characters. |
*/ |
yy_size_t yy_n_chars; |
int yy_n_chars; |
|
/* Whether we "own" the buffer - i.e., we know we created it, |
* and can realloc() it to grow it, and should free() it to |
270,8 → 270,8
|
/* yy_hold_char holds the character lost when yytext is formed. */ |
static char yy_hold_char; |
static yy_size_t yy_n_chars; /* number of characters read into yy_ch_buf */ |
yy_size_t yyleng; |
static int yy_n_chars; /* number of characters read into yy_ch_buf */ |
int yyleng; |
|
/* Points to current character in buffer. */ |
static char *yy_c_buf_p = (char *) 0; |
299,7 → 299,7
|
YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size ); |
YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str ); |
YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,yy_size_t len ); |
YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,int len ); |
|
void *yyalloc (yy_size_t ); |
void *yyrealloc (void *,yy_size_t ); |
1655,7 → 1655,7
|
|
|
#line 1659 "/Users/gingold/Repositories/fsf/binutils-2_20/ld/ldlex.c" |
#line 1659 "../../srcw/ld/ldlex.c" |
|
#define INITIAL 0 |
#define SCRIPT 1 |
1702,7 → 1702,7
|
void yyset_out (FILE * out_str ); |
|
yy_size_t yyget_leng (void ); |
int yyget_leng (void ); |
|
char *yyget_text (void ); |
|
1763,7 → 1763,7
if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ |
{ \ |
int c = '*'; \ |
yy_size_t n; \ |
unsigned n; \ |
for ( n = 0; n < max_size && \ |
(c = getc( yyin )) != EOF && c != '\n'; ++n ) \ |
buf[n] = (char) c; \ |
1864,7 → 1864,7
} |
} |
|
#line 1868 "/Users/gingold/Repositories/fsf/binutils-2_20/ld/ldlex.c" |
#line 1868 "../../srcw/ld/ldlex.c" |
|
if ( !(yy_init) ) |
{ |
3031,7 → 3031,7
#line 463 "ldlex.l" |
ECHO; |
YY_BREAK |
#line 3035 "/Users/gingold/Repositories/fsf/binutils-2_20/ld/ldlex.c" |
#line 3035 "../../srcw/ld/ldlex.c" |
|
case YY_END_OF_BUFFER: |
{ |
3215,7 → 3215,7
|
else |
{ |
yy_size_t num_to_read = |
int num_to_read = |
YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; |
|
while ( num_to_read <= 0 ) |
3229,7 → 3229,7
|
if ( b->yy_is_our_buffer ) |
{ |
yy_size_t new_size = b->yy_buf_size * 2; |
int new_size = b->yy_buf_size * 2; |
|
if ( new_size <= 0 ) |
b->yy_buf_size += b->yy_buf_size / 8; |
3260,7 → 3260,7
|
/* Read in more data. */ |
YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]), |
(yy_n_chars), num_to_read ); |
(yy_n_chars), (size_t) num_to_read ); |
|
YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); |
} |
3370,7 → 3370,7
if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 ) |
{ /* need to shift things up to make room */ |
/* +2 for EOB chars. */ |
register yy_size_t number_to_move = (yy_n_chars) + 2; |
register int number_to_move = (yy_n_chars) + 2; |
register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[ |
YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2]; |
register char *source = |
3419,7 → 3419,7
|
else |
{ /* need more input */ |
yy_size_t offset = (yy_c_buf_p) - (yytext_ptr); |
int offset = (yy_c_buf_p) - (yytext_ptr); |
++(yy_c_buf_p); |
|
switch ( yy_get_next_buffer( ) ) |
3443,7 → 3443,7
case EOB_ACT_END_OF_FILE: |
{ |
if ( yywrap( ) ) |
return 0; |
return EOF; |
|
if ( ! (yy_did_buffer_switch_on_eof) ) |
YY_NEW_FILE; |
3695,7 → 3695,7
*/ |
static void yyensure_buffer_stack (void) |
{ |
yy_size_t num_to_alloc; |
int num_to_alloc; |
|
if (!(yy_buffer_stack)) { |
|
3792,11 → 3792,12
* |
* @return the newly allocated buffer state object. |
*/ |
YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_len ) |
YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, int _yybytes_len ) |
{ |
YY_BUFFER_STATE b; |
char *buf; |
yy_size_t n, i; |
yy_size_t n; |
int i; |
|
/* Get memory for full buffer, including space for trailing EOB's. */ |
n = _yybytes_len + 2; |
3878,7 → 3879,7
/** Get the length of the current token. |
* |
*/ |
yy_size_t yyget_leng (void) |
int yyget_leng (void) |
{ |
return yyleng; |
} |
/openrisc/trunk/gnu-src/binutils-2.20.1/ld/emulparams/or32elf.sh
1,8 → 1,11
SCRIPT_NAME=elf |
TEMPLATE_NAME=elf32 |
OUTPUT_FORMAT="elf32-or32" |
NO_RELA_RELOCS=yes |
TEXT_START_ADDR=0x1000000 |
TEXT_START_ADDR=0x0 |
TEXT_BASE_ADDRESS=0x0 |
INITIAL_READONLY_SECTIONS=".vectors ${RELOCATING-0} : { KEEP (*(.vectors)) }" |
TARGET_PAGE_SIZE=0x1000000 |
MAXPAGESIZE=0x2000 |
ARCH=or32 |
EMBEDDED=yes |
NOP=0x15000000 |