mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 06:17:47 +08:00
* ldlang.c (map_input_to_output_sections): For lang_address, call
init_os if it hasn't already been called.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
Thu Jun 9 00:17:20 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
|
||||||
|
|
||||||
|
* ldlang.c (map_input_to_output_sections): For lang_address, call
|
||||||
|
init_os if it hasn't already been called.
|
||||||
|
|
||||||
Thu Jun 2 17:24:08 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
|
Thu Jun 2 17:24:08 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
|
||||||
|
|
||||||
Add support for SunOS shared libraries.
|
Add support for SunOS shared libraries.
|
||||||
|
11
ld/ldlang.c
11
ld/ldlang.c
@ -1060,15 +1060,12 @@ map_input_to_output_sections (s, target, output_section_statement)
|
|||||||
/* Mark the specified section with the supplied address */
|
/* Mark the specified section with the supplied address */
|
||||||
{
|
{
|
||||||
lang_output_section_statement_type *os =
|
lang_output_section_statement_type *os =
|
||||||
lang_output_section_statement_lookup
|
lang_output_section_statement_lookup
|
||||||
(s->address_statement.section_name);
|
(s->address_statement.section_name);
|
||||||
|
|
||||||
|
if (os->bfd_section == NULL)
|
||||||
|
init_os (os);
|
||||||
os->addr_tree = s->address_statement.address;
|
os->addr_tree = s->address_statement.address;
|
||||||
if (os->bfd_section == (asection *) NULL)
|
|
||||||
{
|
|
||||||
einfo ("%P%F: cannot set the address of undefined section %s\n",
|
|
||||||
s->address_statement.section_name);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user