mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-22 19:09:31 +08:00
* config/tc-mips.c (s_change_section): Fix parsing. Code cleanup.
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
2002-09-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
|
||||||
|
|
||||||
|
* config/tc-mips.c (s_change_section): Fix parsing. Code cleanup.
|
||||||
|
|
||||||
2002-09-17 Stan Cox <scox@redhat.com>
|
2002-09-17 Stan Cox <scox@redhat.com>
|
||||||
|
|
||||||
* tc-mips.c (load_address): Use BFD_RELOC_MIPS_GOT_DISP for newabi.
|
* tc-mips.c (load_address): Use BFD_RELOC_MIPS_GOT_DISP for newabi.
|
||||||
|
@ -11285,8 +11285,7 @@ s_change_section (ignore)
|
|||||||
#ifdef OBJ_ELF
|
#ifdef OBJ_ELF
|
||||||
char *section_name;
|
char *section_name;
|
||||||
char c;
|
char c;
|
||||||
char *next_c;
|
char next_c;
|
||||||
char *p;
|
|
||||||
int section_type;
|
int section_type;
|
||||||
int section_flag;
|
int section_flag;
|
||||||
int section_entry_size;
|
int section_entry_size;
|
||||||
@ -11297,14 +11296,13 @@ s_change_section (ignore)
|
|||||||
|
|
||||||
section_name = input_line_pointer;
|
section_name = input_line_pointer;
|
||||||
c = get_symbol_end ();
|
c = get_symbol_end ();
|
||||||
next_c = input_line_pointer + 1;
|
next_c = *(input_line_pointer + 1);
|
||||||
/* just after name is now '\0' */
|
|
||||||
p = input_line_pointer;
|
|
||||||
|
|
||||||
/* Do we have .section Name<,"flags"> */
|
/* Do we have .section Name<,"flags">? */
|
||||||
if (c == '\n' || (c == ',' && *next_c == '"') || c == '"')
|
if (c != ',' || (c == ',' && next_c == '"'))
|
||||||
{
|
{
|
||||||
*p = c;
|
/* just after name is now '\0'. */
|
||||||
|
*input_line_pointer = c;
|
||||||
input_line_pointer = section_name;
|
input_line_pointer = section_name;
|
||||||
obj_elf_section (ignore);
|
obj_elf_section (ignore);
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user