projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix memory leak of the demangled symbol name
[deliverable/binutils-gdb.git]
/
ld
/
ldmain.c
diff --git
a/ld/ldmain.c
b/ld/ldmain.c
index a7ca4f487db11cacaf2b755b43dd7ac0e580baf5..c4af10f4e9121949b1b66df6428e95e66ce3eed4 100644
(file)
--- a/
ld/ldmain.c
+++ b/
ld/ldmain.c
@@
-1,5
+1,5
@@
/* Main program of GNU linker.
/* Main program of GNU linker.
- Copyright (C) 1991-20
19
Free Software Foundation, Inc.
+ Copyright (C) 1991-20
20
Free Software Foundation, Inc.
Written by Steve Chamberlain steve@cygnus.com
This file is part of the GNU Binutils.
Written by Steve Chamberlain steve@cygnus.com
This file is part of the GNU Binutils.
@@
-25,6
+25,7
@@
#include "libiberty.h"
#include "progress.h"
#include "bfdlink.h"
#include "libiberty.h"
#include "progress.h"
#include "bfdlink.h"
+#include "ctf-api.h"
#include "filenames.h"
#include "ld.h"
#include "filenames.h"
#include "ld.h"
@@
-148,7
+149,9
@@
static struct bfd_link_callbacks link_callbacks =
einfo,
info_msg,
minfo,
einfo,
info_msg,
minfo,
- ldlang_override_segment_assignment
+ ldlang_override_segment_assignment,
+ ldlang_ctf_apply_strsym,
+ ldlang_write_ctf_late
};
static bfd_assert_handler_type default_bfd_assert_handler;
};
static bfd_assert_handler_type default_bfd_assert_handler;
@@
-816,9
+819,9
@@
add_archive_element (struct bfd_link_info *info,
input->local_sym_name = abfd->filename;
input->the_bfd = abfd;
input->local_sym_name = abfd->filename;
input->the_bfd = abfd;
- parent =
abfd->my_archive->usrdata
;
+ parent =
bfd_usrdata (abfd->my_archive)
;
if (parent != NULL && !parent->flags.reload)
if (parent != NULL && !parent->flags.reload)
- parent->next =
(lang_statement_union_type *)
input;
+ parent->next = input;
/* Save the original data for trace files/tries below, as plugins
(if enabled) may possibly alter it to point to a replacement
/* Save the original data for trace files/tries below, as plugins
(if enabled) may possibly alter it to point to a replacement
This page took
0.023918 seconds
and
4
git commands to generate.