Alan Modra
165f707ac8
PR22471, undefined reference to linker-defined symbols
...
This patch processes linker script assignment statements before ld
opens DT_NEEDED libraries, in order to define symbols like __bss_start
that might also be defined by a library, falsely triggering an error
about "DSO missing from command line".
The initial value won't be correct when assigning a symbol from dot,
and I make no attempt to handle all expressions. For example, an
assignment like "_start_foo = ADDR (.foo)" isn't valid until sections
are laid out, so won't define _start_foo early. What's here should be
enough for most common scripts, and hopefully won't perturb fragile
scripts.
bfd/
PR 22471
* elflink.c (_bfd_elf_merge_symbol): Allow weak symbols to override
early passes over linker script symbols.
* linker.c (_bfd_generic_link_add_one_symbol): Allow symbols to
override early passes over linker script symbols. Clear ldscript_def
on symbol definitions.
ld/
PR 22471
* ldexp.c (struct definedness_hash_entry): Delete "by_script". Make
"iteration" an 8-bit field, and update mask in all uses.
(definedness_newfunc): Don't init "by_script".
(update_definedness): Test ldscript_def rather than by_script.
(is_sym_value): Likewise.
(fold_name <DEFINED>): Return a result for first phase. Test
ldscript_def.
(fold_name <NAME>): Return a result for first phase.
* ldlang.c (open_input_bfds): Process all assignments, not just
defsym.
(lang_process): Increment lang_statement_iteration before
open_input_bfds.
* testsuite/ld-mips-elf/tlsdyn-o32-1.d: Adjust for larger .dynsym.
* testsuite/ld-mips-elf/tlsdyn-o32-1.got: Likewise.
* testsuite/ld-mips-elf/tlsdyn-o32-2.d: Likewise.
* testsuite/ld-mips-elf/tlsdyn-o32-2.got: Likewise.
* testsuite/ld-mips-elf/tlsdyn-o32-3.d: Likewise.
* testsuite/ld-mips-elf/tlsdyn-o32-3.got: Likewise.
2017-11-28 22:57:00 +10:30
..
2014-09-06 18:02:50 +01:00
2014-09-06 18:02:50 +01:00
2014-09-06 18:02:50 +01:00
2014-09-06 18:02:50 +01:00
2014-09-06 18:02:50 +01:00
2014-09-06 18:02:50 +01:00
2014-09-06 18:02:50 +01:00
2014-09-06 18:02:50 +01:00
2014-09-06 18:02:50 +01:00
2014-11-05 10:48:38 +00:00
2014-07-29 11:27:59 +01:00
2014-07-29 11:27:59 +01:00
2014-09-06 18:02:50 +01:00
2014-07-29 11:27:59 +01:00
2014-07-29 11:27:59 +01:00
2014-09-06 18:02:50 +01:00
2014-07-29 11:27:59 +01:00
2014-07-29 11:27:59 +01:00
2014-09-06 18:02:50 +01:00
2014-07-29 11:27:59 +01:00
2014-07-29 11:27:59 +01:00
2014-07-29 11:27:59 +01:00
2014-09-06 18:02:50 +01:00
2014-07-29 11:27:59 +01:00
2014-09-06 18:02:50 +01:00
2014-09-06 18:02:50 +01:00
2014-07-29 11:27:59 +01:00
2014-09-06 18:02:50 +01:00
2014-07-29 11:27:59 +01:00
2014-09-06 18:02:50 +01:00
2014-07-29 11:27:59 +01:00
2014-07-29 11:27:59 +01:00
2015-07-09 08:26:10 -07:00
2014-12-19 14:20:17 +00:00
2014-12-19 14:20:17 +00:00
2014-12-19 14:20:17 +00:00
2014-12-19 14:20:17 +00:00
2014-07-29 11:27:59 +01:00
2014-09-06 18:02:50 +01:00
2014-09-06 18:02:50 +01:00
2014-09-06 18:02:50 +01:00
2015-07-09 08:26:10 -07:00
2015-07-09 08:26:10 -07:00
2016-08-19 09:16:30 +01:00
2014-12-19 14:20:17 +00:00
2014-07-29 11:27:59 +01:00
2014-07-29 11:27:59 +01:00
2016-01-04 23:30:00 +00:00
2014-09-06 18:02:50 +01:00
2014-09-06 18:02:50 +01:00
2014-09-06 18:02:50 +01:00
2014-12-19 14:20:17 +00:00
2015-07-09 08:26:10 -07:00
2014-12-19 14:20:17 +00:00
2014-07-29 11:27:59 +01:00
2014-12-19 14:20:17 +00:00
2014-07-29 11:27:59 +01:00
2016-01-04 23:30:00 +00:00
2014-09-06 18:02:50 +01:00
2014-09-06 18:02:50 +01:00
2014-09-06 18:02:50 +01:00
2014-12-19 14:20:17 +00:00
2015-07-09 08:26:10 -07:00
2014-12-19 14:20:17 +00:00
2014-07-29 11:27:59 +01:00
2014-07-29 11:27:59 +01:00
2014-12-19 14:20:17 +00:00
2016-01-04 23:30:00 +00:00
2014-09-06 18:02:50 +01:00
2014-09-06 18:02:50 +01:00
2014-09-06 18:02:50 +01:00
2014-12-19 14:20:17 +00:00
2015-07-09 08:26:10 -07:00
2014-07-29 11:27:59 +01:00
2016-01-04 23:30:00 +00:00
2016-01-04 23:30:00 +00:00
2016-01-04 23:30:00 +00:00
2014-12-19 14:20:17 +00:00
2016-01-04 23:30:00 +00:00
2016-01-04 23:30:00 +00:00
2016-01-04 23:30:00 +00:00
2016-01-04 23:30:00 +00:00
2016-01-04 23:30:00 +00:00
2016-08-19 09:16:30 +01:00
2014-09-06 18:02:50 +01:00
2014-09-06 18:02:50 +01:00
2014-09-06 18:02:50 +01:00
2016-01-04 23:30:00 +00:00
2014-09-06 18:02:50 +01:00
2014-09-06 18:02:50 +01:00
2014-09-06 18:02:50 +01:00
2014-09-06 18:02:50 +01:00
2015-07-09 08:26:10 -07:00
2016-08-19 09:16:30 +01:00
2014-09-06 18:02:50 +01:00
2014-09-06 18:02:50 +01:00
2014-09-06 18:02:50 +01:00
2016-01-04 23:30:00 +00:00
2014-09-06 18:02:50 +01:00
2014-09-06 18:02:50 +01:00
2014-09-06 18:02:50 +01:00
2014-09-06 18:02:50 +01:00
2015-07-09 08:26:10 -07:00
2016-08-19 09:16:30 +01:00
2014-09-06 18:02:50 +01:00
2014-09-06 18:02:50 +01:00
2014-09-06 18:02:50 +01:00
2016-01-04 23:30:00 +00:00
2014-09-06 18:02:50 +01:00
2014-09-06 18:02:50 +01:00
2014-09-06 18:02:50 +01:00
2014-09-06 18:02:50 +01:00
2015-07-09 08:26:10 -07:00
2014-07-29 11:27:59 +01:00
2015-07-09 08:26:10 -07:00
2013-10-14 19:02:00 +00:00
2013-10-14 19:02:00 +00:00
2013-10-14 19:02:00 +00:00
2014-07-29 11:27:59 +01:00
2014-07-29 11:27:59 +01:00
2014-07-29 11:27:59 +01:00
2014-07-29 11:27:59 +01:00
2014-07-29 11:27:59 +01:00
2014-07-29 11:27:59 +01:00
2014-07-29 11:27:59 +01:00
2014-07-29 11:27:59 +01:00
2014-07-29 11:27:59 +01:00
2017-08-30 16:07:45 +01:00
2017-08-30 16:07:45 +01:00
2017-08-30 16:07:45 +01:00
2016-07-19 16:22:53 +01:00
2016-07-19 16:22:53 +01:00
2016-07-19 16:22:53 +01:00
2017-08-30 16:07:45 +01:00
2017-08-30 16:07:45 +01:00
2017-08-30 16:07:45 +01:00
2016-07-19 16:22:53 +01:00
2016-07-19 16:22:53 +01:00
2016-07-19 16:22:53 +01:00
2017-08-30 16:07:45 +01:00
2017-08-30 16:07:45 +01:00
2017-08-30 16:07:45 +01:00
2017-01-30 17:16:01 +00:00
2017-01-30 17:16:01 +00:00
2017-01-30 17:16:01 +00:00
2017-08-30 16:07:45 +01:00
2017-08-30 16:07:45 +01:00
2017-08-30 16:07:45 +01:00
2016-07-19 16:22:53 +01:00
2016-07-19 16:22:53 +01:00
2016-07-19 16:22:53 +01:00
2017-07-07 17:58:03 +01:00
2017-07-07 17:58:03 +01:00
2017-07-07 17:58:03 +01:00
2016-07-14 20:06:37 +01:00
2016-07-14 20:06:37 +01:00
2016-07-14 20:06:37 +01:00
2016-07-14 20:06:37 +01:00
2016-07-14 20:06:37 +01:00
2016-07-14 20:06:37 +01:00
2016-07-02 23:16:41 +01:00
2017-01-02 14:08:56 +10:30
2015-05-28 15:21:17 -07:00
2015-05-28 15:21:17 -07:00
2015-05-28 15:21:17 -07:00
2015-05-28 15:21:17 -07:00
2015-05-28 15:21:17 -07:00
2015-05-28 15:21:17 -07:00
2015-05-28 15:21:17 -07:00
2015-05-28 15:21:17 -07:00
2015-05-28 15:21:17 -07:00
2015-05-28 15:21:17 -07:00
2015-05-28 15:21:17 -07:00
2015-05-28 15:21:17 -07:00
2015-05-28 15:21:17 -07:00
2013-10-13 10:17:20 +00:00
2015-08-12 17:10:22 +01:00
2013-10-13 10:17:20 +00:00
2015-08-12 17:10:22 +01:00
2013-10-13 10:17:20 +00:00
2016-07-26 20:00:48 +01:00
2016-07-26 20:00:48 +01:00
2016-07-26 20:00:48 +01:00
2016-07-26 20:00:48 +01:00
2016-07-26 20:00:48 +01:00
2016-07-26 20:00:48 +01:00
2015-08-12 17:10:22 +01:00
2013-10-13 10:17:20 +00:00
2015-08-12 17:10:22 +01:00
2013-10-13 10:17:20 +00:00
2015-08-12 17:10:22 +01:00
2013-10-13 10:17:20 +00:00
2015-08-12 17:10:22 +01:00
2013-10-13 10:17:20 +00:00
2015-08-12 17:10:22 +01:00
2013-10-13 10:17:20 +00:00
2016-07-26 20:00:48 +01:00
2016-07-26 20:00:48 +01:00
2016-07-26 20:00:48 +01:00
2016-07-26 20:00:48 +01:00
2015-08-12 17:10:22 +01:00
2013-10-13 10:17:20 +00:00
2013-10-13 10:17:20 +00:00
2013-10-13 10:17:20 +00:00
2015-08-12 17:10:22 +01:00
2013-10-13 10:17:20 +00:00
2015-08-12 17:10:22 +01:00
2013-10-13 10:17:20 +00:00
2014-07-29 11:27:59 +01:00
2016-07-26 20:00:48 +01:00
2016-07-26 20:00:48 +01:00
2016-07-26 20:00:48 +01:00
2013-10-13 10:17:20 +00:00
2013-10-13 10:17:20 +00:00
2013-10-13 10:17:20 +00:00
2014-07-29 11:27:59 +01:00
2014-10-04 22:49:32 +09:30
2017-03-05 14:49:54 +10:30
2014-10-04 22:49:32 +09:30
2017-03-05 14:49:54 +10:30
2017-03-05 14:49:54 +10:30
2013-09-24 22:15:38 +00:00
2013-05-03 15:19:27 +00:00
2013-05-03 15:19:27 +00:00
2013-05-03 15:19:27 +00:00
2013-11-19 10:54:00 -08:00
2013-05-03 15:19:27 +00:00
2013-05-03 15:19:27 +00:00
2014-07-29 11:27:59 +01:00
2014-07-29 11:27:59 +01:00
2014-07-29 11:27:59 +01:00
2014-07-29 11:27:59 +01:00
2014-07-29 11:27:59 +01:00
2014-07-29 11:27:59 +01:00
2014-07-29 11:27:59 +01:00
2014-07-29 11:27:59 +01:00
2014-07-29 11:27:59 +01:00
2014-07-29 11:27:59 +01:00
2014-07-29 11:27:59 +01:00
2016-04-05 15:14:54 +01:00
2016-04-05 15:14:54 +01:00
2016-04-05 15:14:54 +01:00
2016-04-05 15:14:54 +01:00
2017-01-02 14:08:56 +10:30
2016-04-05 15:14:54 +01:00
2016-04-05 15:14:54 +01:00
2016-04-05 15:14:54 +01:00
2016-04-05 15:14:54 +01:00
2014-07-29 11:27:59 +01:00
2014-07-29 11:27:59 +01:00
2014-07-29 11:27:59 +01:00
2013-02-13 14:08:58 +00:00
2013-02-13 14:08:58 +00:00
2013-02-13 14:08:58 +00:00
2013-02-13 14:08:58 +00:00
2013-02-13 14:08:58 +00:00
2013-02-13 14:08:58 +00:00
2013-02-13 14:08:58 +00:00
2013-02-13 14:08:58 +00:00
2013-02-13 14:08:58 +00:00
2013-02-13 14:08:58 +00:00
2013-02-13 14:08:58 +00:00
2013-02-13 14:08:58 +00:00
2013-02-13 14:08:58 +00:00
2013-02-13 14:08:58 +00:00
2013-02-13 14:08:58 +00:00
2013-02-13 14:08:58 +00:00
2013-02-13 14:08:58 +00:00
2013-02-13 14:08:58 +00:00
2013-02-13 14:08:58 +00:00
2014-11-27 06:44:29 -08:00
2015-09-18 12:39:16 +09:30
2016-05-28 10:33:54 +01:00
2016-05-28 10:33:54 +01:00
2016-05-28 10:33:54 +01:00
2016-05-28 10:33:54 +01:00
2016-05-28 10:33:54 +01:00
2016-05-28 10:33:54 +01:00
2013-05-29 16:22:14 +00:00
2013-05-29 16:22:14 +00:00
2017-02-28 00:22:36 +00:00
2017-02-28 00:22:36 +00:00
2015-08-12 17:10:22 +01:00
2013-02-18 23:35:17 +00:00
2016-05-20 13:38:48 +01:00
2016-05-20 13:38:48 +01:00
2016-05-20 13:38:48 +01:00
2016-05-24 14:11:50 +01:00
2016-05-24 14:11:50 +01:00
2016-05-24 14:11:50 +01:00
2017-06-26 19:27:14 +01:00
2016-07-14 20:06:37 +01:00
2016-07-14 20:06:37 +01:00
2016-07-27 17:38:31 +01:00
2016-07-14 20:06:37 +01:00
2016-07-14 20:06:37 +01:00
2016-07-27 17:38:31 +01:00
2016-06-28 01:29:56 +01:00
2016-06-28 01:29:56 +01:00
2017-05-03 00:15:56 +01:00
2017-05-03 00:15:56 +01:00
2017-05-03 00:15:56 +01:00
2017-05-03 00:15:56 +01:00
2016-07-14 20:08:59 +01:00
2017-05-03 00:15:56 +01:00
2016-07-14 20:08:59 +01:00
2016-07-14 20:08:59 +01:00
2017-05-03 00:15:56 +01:00
2017-05-03 00:15:56 +01:00
2016-07-14 20:08:59 +01:00
2017-05-03 00:15:56 +01:00
2017-05-03 00:15:56 +01:00
2016-07-14 20:08:59 +01:00
2016-07-14 20:08:59 +01:00
2016-06-28 01:29:56 +01:00
2016-06-28 01:29:56 +01:00
2016-06-28 01:29:56 +01:00
2015-10-29 06:58:16 -07:00
2015-10-29 06:58:16 -07:00
2015-10-29 06:58:16 -07:00
2015-10-29 06:58:16 -07:00
2017-05-03 20:47:40 +01:00
2017-05-03 20:47:40 +01:00
2017-05-03 20:47:40 +01:00
2017-05-03 20:47:40 +01:00
2017-05-03 20:47:40 +01:00
2017-05-03 20:47:40 +01:00
2017-05-03 20:47:40 +01:00
2017-05-03 20:47:40 +01:00
2014-07-29 11:27:59 +01:00
2013-08-23 07:54:19 +00:00
2013-09-24 22:15:38 +00:00
2013-02-13 14:08:58 +00:00
2014-07-29 11:27:59 +01:00
2013-09-24 22:15:38 +00:00
2015-08-12 17:10:22 +01:00
2014-07-29 11:27:59 +01:00
2014-07-29 11:27:59 +01:00
2017-05-15 14:00:50 +01:00
2017-05-15 14:00:50 +01:00
2017-05-15 14:00:50 +01:00
2017-05-15 14:00:50 +01:00
2017-05-15 14:00:50 +01:00
2017-05-15 14:00:50 +01:00
2017-05-15 14:00:50 +01:00
2017-05-15 14:00:50 +01:00
2014-07-29 11:27:59 +01:00
2017-06-28 02:07:36 +01:00
2017-08-30 16:07:45 +01:00
2014-07-29 11:27:59 +01:00
2017-02-15 13:41:51 +00:00
2016-06-21 14:18:23 +01:00
2014-07-29 11:27:59 +01:00
2014-07-29 11:27:59 +01:00
2013-07-12 15:58:15 +00:00
2014-07-29 11:27:59 +01:00
2013-07-12 15:58:15 +00:00
2013-07-12 15:58:15 +00:00
2013-07-12 15:58:15 +00:00
2015-09-18 12:39:16 +09:30
2015-09-18 12:39:16 +09:30
2015-09-18 12:39:16 +09:30
2016-08-10 22:24:43 +01:00
2016-08-10 22:24:43 +01:00
2016-08-10 22:24:43 +01:00
2016-08-10 22:24:43 +01:00
2015-02-19 13:36:34 +10:30
2016-08-10 22:24:43 +01:00
2016-08-10 22:24:43 +01:00
2015-08-12 17:10:22 +01:00
2014-07-29 11:27:59 +01:00
2014-07-29 11:27:59 +01:00
2014-02-18 16:23:48 -08:00
2015-06-26 11:53:33 +01:00
2015-08-12 17:10:22 +01:00
2014-07-29 11:27:59 +01:00
2014-07-29 11:27:59 +01:00
2013-09-24 22:15:38 +00:00
2015-06-26 11:53:33 +01:00
2014-07-29 11:27:59 +01:00
2013-09-24 22:15:38 +00:00
2013-09-24 22:15:38 +00:00
2015-06-26 11:53:33 +01:00
2015-08-12 17:10:22 +01:00
2014-07-29 11:27:59 +01:00
2014-07-29 11:27:59 +01:00
2013-09-24 22:15:38 +00:00
2015-06-26 11:53:33 +01:00
2015-08-12 17:10:22 +01:00
2013-10-13 10:03:22 +00:00
2013-10-13 10:03:22 +00:00
2013-10-13 10:03:22 +00:00
2015-06-26 11:53:33 +01:00
2015-08-12 17:10:22 +01:00
2013-10-13 10:03:22 +00:00
2013-10-13 10:03:22 +00:00
2013-10-13 10:03:22 +00:00
2015-06-26 11:53:33 +01:00
2015-08-12 17:10:22 +01:00
2013-10-13 10:03:22 +00:00
2013-10-13 10:03:22 +00:00
2013-10-13 10:03:22 +00:00
2014-07-29 11:27:59 +01:00
2016-02-23 05:19:03 -08:00
2016-02-23 05:19:03 -08:00
2016-02-23 05:19:03 -08:00
2015-06-26 11:53:33 +01:00
2017-04-26 13:17:07 +01:00
2017-04-26 13:17:07 +01:00
2017-04-26 13:17:07 +01:00
2017-04-26 13:17:07 +01:00
2014-07-29 11:27:59 +01:00
2014-07-29 11:27:59 +01:00
2014-07-29 11:27:59 +01:00
2014-07-29 11:27:59 +01:00
2017-02-23 23:49:14 +00:00
2017-02-23 23:49:14 +00:00
2017-02-23 23:49:14 +00:00
2017-02-23 23:49:14 +00:00
2017-07-01 00:42:19 +01:00
2017-07-01 00:42:19 +01:00
2017-07-01 00:42:19 +01:00
2017-07-01 00:42:19 +01:00
2017-07-01 00:42:19 +01:00
2014-11-27 06:44:29 -08:00
2016-05-27 22:25:42 +01:00
2016-05-27 22:25:42 +01:00
2015-08-12 17:10:22 +01:00
2015-08-12 17:10:22 +01:00
2015-08-12 17:10:22 +01:00
2015-08-12 17:10:22 +01:00
2015-08-12 17:10:22 +01:00
2014-07-29 11:27:59 +01:00
2013-02-11 18:09:24 +00:00
2013-02-11 18:09:24 +00:00
2014-07-29 11:27:59 +01:00
2013-02-11 18:06:10 +00:00
2017-02-01 22:15:32 +00:00
2013-02-11 18:06:10 +00:00
2017-02-01 22:15:32 +00:00
2017-02-01 22:15:32 +00:00
2015-08-12 17:10:22 +01:00
2017-11-28 22:57:00 +10:30
2017-11-28 22:57:00 +10:30
2017-11-28 22:57:00 +10:30
2017-11-28 22:57:00 +10:30
2017-11-28 22:57:00 +10:30
2017-11-28 22:57:00 +10:30
2015-08-12 17:10:22 +01:00
2015-06-26 11:53:33 +01:00
2014-11-27 06:44:29 -08:00
2015-08-12 17:10:22 +01:00
2013-09-24 22:15:38 +00:00
2017-02-15 13:41:51 +00:00
2017-02-15 13:41:51 +00:00
2017-02-15 13:41:51 +00:00
2017-02-15 13:41:51 +00:00
2017-02-15 13:41:51 +00:00
2017-02-15 13:41:51 +00:00
2017-02-15 13:41:51 +00:00
2017-02-15 13:41:51 +00:00
2017-02-15 13:41:51 +00:00
2017-02-15 13:41:51 +00:00
2016-05-28 10:59:45 +01:00
2016-05-28 10:38:02 +01:00
2016-05-25 21:03:22 +01:00
2016-05-26 12:28:59 +01:00
2016-05-26 12:28:59 +01:00
2016-07-19 14:46:30 +01:00
2016-05-25 21:03:22 +01:00
2016-07-19 16:22:53 +01:00
2016-07-19 16:22:53 +01:00
2016-07-19 16:22:53 +01:00
2016-07-19 16:22:53 +01:00
2016-05-27 22:31:29 +01:00
2016-05-27 22:31:29 +01:00
2017-02-15 13:41:51 +00:00
2016-05-27 22:31:29 +01:00
2016-07-19 16:22:53 +01:00
2016-07-19 16:22:53 +01:00
2017-02-15 13:41:51 +00:00
2016-07-19 16:22:53 +01:00
2016-05-27 22:31:29 +01:00
2017-02-15 13:41:51 +00:00
2016-05-27 22:31:29 +01:00
2017-02-15 13:41:51 +00:00
2016-05-26 12:28:59 +01:00
2016-07-19 14:46:30 +01:00
2016-05-26 12:28:59 +01:00
2016-07-19 14:46:30 +01:00
2017-02-15 13:41:51 +00:00
2017-02-15 13:41:51 +00:00
2017-02-15 13:41:51 +00:00
2016-05-28 10:38:02 +01:00
2016-05-26 12:28:59 +01:00
2017-02-15 13:41:51 +00:00
2016-05-26 12:28:59 +01:00
2016-05-28 10:38:02 +01:00
2016-05-26 12:28:59 +01:00
2017-02-15 13:41:51 +00:00
2016-05-26 12:28:59 +01:00
2016-05-28 10:59:45 +01:00
2016-07-19 14:46:30 +01:00
2016-07-19 14:46:30 +01:00
2017-02-01 22:17:33 +00:00
2017-02-01 22:17:33 +00:00
2014-07-29 11:27:59 +01:00
2017-11-07 17:01:16 +10:30
2017-02-01 22:17:33 +00:00