forked from Imagelibrary/binutils-gdb
Fix buffer overflows in ld when printing translated strings.
ld * ldmain.c (add_archive_element): Eliminate string buffer. * ldlang.c (lang_print_asneeded): Likewise.
This commit is contained in:
@@ -2035,14 +2035,11 @@ static void
|
||||
lang_print_asneeded (void)
|
||||
{
|
||||
struct asneeded_minfo *m;
|
||||
char buf[100];
|
||||
|
||||
if (asneeded_list_head == NULL)
|
||||
return;
|
||||
|
||||
sprintf (buf, _("\nAs-needed library included "
|
||||
"to satisfy reference by file (symbol)\n\n"));
|
||||
minfo ("%s", buf);
|
||||
minfo (_("\nAs-needed library included to satisfy reference by file (symbol)\n\n"));
|
||||
|
||||
for (m = asneeded_list_head; m != NULL; m = m->next)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user