mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-09-11 08:25:30 +08:00
* elflink.c (_bfd_elf_add_default_symbol): Preserve section
over _bfd_elf_merge_symbol calls.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2013-03-26 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
|
* elflink.c (_bfd_elf_add_default_symbol): Preserve section
|
||||||
|
over _bfd_elf_merge_symbol calls.
|
||||||
|
|
||||||
2013-03-26 Alan Modra <amodra@gmail.com>
|
2013-03-26 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
* elflink.c (elf_link_add_object_symbols): Add assertion for
|
* elflink.c (elf_link_add_object_symbols): Add assertion for
|
||||||
|
@ -1600,6 +1600,7 @@ _bfd_elf_add_default_symbol (bfd *abfd,
|
|||||||
bfd_boolean override;
|
bfd_boolean override;
|
||||||
char *p;
|
char *p;
|
||||||
size_t len, shortlen;
|
size_t len, shortlen;
|
||||||
|
asection *tmp_sec;
|
||||||
|
|
||||||
/* If this symbol has a version, and it is the default version, we
|
/* If this symbol has a version, and it is the default version, we
|
||||||
create an indirect symbol from the default name to the fully
|
create an indirect symbol from the default name to the fully
|
||||||
@ -1626,7 +1627,8 @@ _bfd_elf_add_default_symbol (bfd *abfd,
|
|||||||
actually going to define an indirect symbol. */
|
actually going to define an indirect symbol. */
|
||||||
type_change_ok = FALSE;
|
type_change_ok = FALSE;
|
||||||
size_change_ok = FALSE;
|
size_change_ok = FALSE;
|
||||||
if (!_bfd_elf_merge_symbol (abfd, info, shortname, sym, &sec, &value,
|
tmp_sec = sec;
|
||||||
|
if (!_bfd_elf_merge_symbol (abfd, info, shortname, sym, &tmp_sec, &value,
|
||||||
&hi, poldbfd, NULL, NULL, &skip, &override,
|
&hi, poldbfd, NULL, NULL, &skip, &override,
|
||||||
&type_change_ok, &size_change_ok))
|
&type_change_ok, &size_change_ok))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
@ -1734,7 +1736,8 @@ nondefault:
|
|||||||
/* Once again, merge with any existing symbol. */
|
/* Once again, merge with any existing symbol. */
|
||||||
type_change_ok = FALSE;
|
type_change_ok = FALSE;
|
||||||
size_change_ok = FALSE;
|
size_change_ok = FALSE;
|
||||||
if (!_bfd_elf_merge_symbol (abfd, info, shortname, sym, &sec, &value,
|
tmp_sec = sec;
|
||||||
|
if (!_bfd_elf_merge_symbol (abfd, info, shortname, sym, &tmp_sec, &value,
|
||||||
&hi, NULL, NULL, NULL, &skip, &override,
|
&hi, NULL, NULL, NULL, &skip, &override,
|
||||||
&type_change_ok, &size_change_ok))
|
&type_change_ok, &size_change_ok))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
Reference in New Issue
Block a user