This is the mail archive of the mailing list for the binutils project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: Add --dynamic-list-data/--dynamic-list-cpp-new

Hi H. J.

2007-01-09 H.J. Lu  <>

	PR ld/3831
	* elf-bfd.h (bfd_elf_link_mark_dynamic_symbol): Add an
	argument, Elf_Internal_Sym *.

	* elflink.c (bfd_elf_link_mark_dynamic_symbol): Mark a data
	symbol dynamic if info->dynamic_data is TRUE.
	(bfd_elf_record_link_assignment): Updated call to
	(_bfd_elf_merge_symbol): Likewise.  Always call

2007-01-09 H.J. Lu  <>

PR ld/3831
* bfdlink.h (bfd_link_info): Rename dynamic to dynamic_list.
Add dynamic and dynamic_data.

2007-01-05 H.J. Lu  <>

	PR ld/3831
	* NEWS: Mention -Bsymbolic-functions, --dynamic-list-data and

	* ld.texinfo: Document -Bsymbolic-functions, --dynamic-list-data
	and --dynamic-list-cpp-new.

	* ldlang.c (lang_append_dynamic_list_cpp_new): New.
	(lang_process): Change link_info.dynamic to
	(lang_append_dynamic_list): Likewise.
	* ldmain.c (main): Likewise.  Initialize link_info.dynamic and
	link_info.dynamic_data to FALSE.

* ldlang.h (lang_append_dynamic_list_cpp_new): New.

	* lexsup.c (option_values): Add OPTION_DYNAMIC_LIST_DATA and
	(ld_options): Add entries for -Bsymbolic-functions,
	--dynamic-list-data and --dynamic-list-cpp-new.  Make
	-Bsymbolic-functions an alias of --dynamic-list-data.
	(parse_args): Change link_info.dynamic to link_info.dynamic_list.
	Set link_info.dynamic to TRUE for --dynamic-list and
	--dynamic-list-cpp-typeinfo.  Handle --dynamic-list-data and

2007-01-09 H.J. Lu  <>

	PR ld/3831
	* ld-elf/ New.
	* ld-elf/ Likewise.
	* ld-elf/dl5.out: Likewise.
	* ld-elf/ Likewise.

	* ld-elf/shared.exp: Add tests for --dynamic-list-data and

Approved - please apply.

Minor niggles:

+  /* It may be called more than once on the same H.  */
+  if(h->dynamic || info->relocatable)

Formatting: missing space after the "if" statement.

+* ELF: Add -Bsymbolic-functions, --dynamic-list-cpp-new, which puts C++
+  operator new and delete on the dynamic list, and --dynamic-list-data,
+  builtin list for --dynamic-list, which puts global data symbols on the
+  dynamic list.

Grammar: Add the new options: --dynamic-list-cpp-new which puts the C++ new and delete operators on the dynamic list, and --dynamic-list-data (or its alias -Bsymbolic-functions) which puts global data symbols on the dynamic list.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]