mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-03 05:12:28 +08:00
Add support for creating archives of slim-LTO modules using MRi script commands.
PR 21702 * arsup.c (ar_addmod): Add plugin support for the MRI ADDMOD command.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2017-08-02 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
|
PR 21702
|
||||||
|
* arsup.c (ar_addmod): Add plugin support for the MRI ADDMOD
|
||||||
|
command.
|
||||||
|
|
||||||
2017-08-02 Nick Clifton <nickc@redhat.com>
|
2017-08-02 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
* testsuite/binutils-all/objdump.exp (cpus_expected): Add am33-2.
|
* testsuite/binutils-all/objdump.exp (cpus_expected): Add am33-2.
|
||||||
|
@ -254,8 +254,13 @@ ar_addmod (struct list *list)
|
|||||||
{
|
{
|
||||||
while (list)
|
while (list)
|
||||||
{
|
{
|
||||||
bfd *abfd = bfd_openr (list->name, NULL);
|
bfd *abfd;
|
||||||
|
|
||||||
|
#if BFD_SUPPORTS_PLUGINS
|
||||||
|
abfd = bfd_openr (list->name, "plugin");
|
||||||
|
#else
|
||||||
|
abfd = bfd_openr (list->name, NULL);
|
||||||
|
#endif
|
||||||
if (!abfd)
|
if (!abfd)
|
||||||
{
|
{
|
||||||
fprintf (stderr, _("%s: can't open file %s\n"),
|
fprintf (stderr, _("%s: can't open file %s\n"),
|
||||||
@ -367,7 +372,7 @@ ar_replace (struct list *list)
|
|||||||
if (FILENAME_CMP (member->filename, list->name) == 0)
|
if (FILENAME_CMP (member->filename, list->name) == 0)
|
||||||
{
|
{
|
||||||
/* Found the one to replace. */
|
/* Found the one to replace. */
|
||||||
bfd *abfd = bfd_openr (list->name, 0);
|
bfd *abfd = bfd_openr (list->name, NULL);
|
||||||
|
|
||||||
if (!abfd)
|
if (!abfd)
|
||||||
{
|
{
|
||||||
@ -391,7 +396,7 @@ ar_replace (struct list *list)
|
|||||||
|
|
||||||
if (!found)
|
if (!found)
|
||||||
{
|
{
|
||||||
bfd *abfd = bfd_openr (list->name, 0);
|
bfd *abfd = bfd_openr (list->name, NULL);
|
||||||
|
|
||||||
fprintf (stderr,_("%s: can't find module file %s\n"),
|
fprintf (stderr,_("%s: can't find module file %s\n"),
|
||||||
program_name, list->name);
|
program_name, list->name);
|
||||||
@ -473,7 +478,7 @@ ar_extract (struct list *list)
|
|||||||
|
|
||||||
if (!found)
|
if (!found)
|
||||||
{
|
{
|
||||||
bfd_openr (list->name, 0);
|
bfd_openr (list->name, NULL);
|
||||||
fprintf (stderr, _("%s: can't find module file %s\n"),
|
fprintf (stderr, _("%s: can't find module file %s\n"),
|
||||||
program_name, list->name);
|
program_name, list->name);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user