Rafael Espindola
f20f8d830f
Change how we handle section symbols on ELF.
...
On ELF every section can have a corresponding section symbol. When in
an assembly file we have
.quad .text
the '.text' refers to that symbol.
The way we used to handle them is to leave .text an undefined symbol
until the very end when the object writer would map them to the
actual section symbol.
The problem with that is that anything before the end would see an
undefined symbol. This could result in bad diagnostics
(test/MC/AArch64/label-arithmetic-diags-elf.s), or incorrect results
when using the asm streamer (est/MC/Mips/expansion-jal-sym-pic.s).
Fixing this will also allow using the section symbol earlier for
setting sh_link of SHF_METADATA sections.
This patch includes a few hacks to avoid changing our behaviour when
handling conflicts between section symbols and other symbols. I
reported pr31850 to track that.
llvm-svn: 293936
2017-02-02 21:26:06 +00:00
..
2016-03-24 13:26:59 +00:00
2016-02-01 15:13:31 +00:00
2015-12-18 08:59:37 +00:00
2016-04-29 08:36:54 +00:00
2017-01-16 13:55:58 +00:00
2017-01-22 20:28:56 +00:00
2017-01-22 20:28:56 +00:00
2016-05-17 09:32:58 +00:00
2016-05-17 09:32:58 +00:00
2016-05-13 11:32:53 +00:00
2017-01-16 13:55:58 +00:00
2017-01-16 13:55:58 +00:00
2017-01-16 13:55:58 +00:00
2017-01-16 13:55:58 +00:00
2017-01-16 13:55:58 +00:00
2017-01-16 13:55:58 +00:00
2017-01-16 13:55:58 +00:00
2017-01-16 13:55:58 +00:00
2017-01-16 13:55:58 +00:00
2016-11-22 19:17:23 +00:00
2017-01-16 13:55:58 +00:00
2017-01-16 13:55:58 +00:00
2017-01-16 13:55:58 +00:00
2017-01-16 13:55:58 +00:00
2016-11-22 19:17:23 +00:00
2016-03-31 14:12:01 +00:00
2015-04-21 11:50:52 +00:00
2015-04-21 11:50:52 +00:00
2017-02-01 18:50:24 +00:00
2017-02-02 16:13:49 +00:00
2015-09-15 15:06:26 +00:00
2015-06-17 15:14:35 +00:00
2014-04-01 10:35:28 +00:00
2014-11-06 10:02:45 +00:00
2016-06-16 09:17:03 +00:00
2016-05-18 00:27:17 +00:00
2016-06-16 09:17:03 +00:00
2016-06-24 12:23:17 +00:00
2016-06-24 12:23:17 +00:00
2016-05-18 11:58:50 +00:00
2016-10-12 13:58:07 +00:00
2016-12-08 22:10:52 +00:00
2016-06-24 12:23:17 +00:00
2016-05-18 00:27:17 +00:00
2016-05-18 00:27:17 +00:00
2016-05-18 00:27:17 +00:00
2016-04-29 16:16:49 +00:00
2015-04-27 22:04:24 +00:00
2015-09-24 20:57:24 +00:00
2014-07-17 09:52:56 +00:00
2016-05-16 09:10:13 +00:00
2016-05-16 09:10:13 +00:00
2014-07-17 09:52:56 +00:00
2014-07-17 09:52:56 +00:00
2014-07-17 09:52:56 +00:00
2014-07-17 09:52:56 +00:00
2014-07-17 09:52:56 +00:00
2014-07-17 09:52:56 +00:00
2017-01-27 11:36:52 +00:00
2015-01-26 17:33:46 +00:00
2016-03-24 16:10:37 +00:00
2015-03-13 18:20:45 +00:00
2014-04-30 11:21:10 +00:00
2014-04-30 11:21:10 +00:00
2015-06-23 11:31:32 +00:00
2015-04-15 15:59:37 +00:00
2017-02-02 21:26:06 +00:00
2017-02-02 21:26:06 +00:00
2016-08-08 11:50:25 +00:00
2016-05-09 10:21:14 +00:00
2016-04-08 18:15:37 +00:00
2016-06-03 10:22:22 +00:00
2016-04-08 18:15:37 +00:00
2016-05-18 11:58:50 +00:00
2016-03-24 16:10:37 +00:00
2016-04-04 15:32:49 +00:00
2016-04-08 18:15:37 +00:00
2014-06-09 22:42:55 +00:00
2014-05-23 13:35:24 +00:00
2016-01-29 16:18:34 +00:00
2015-10-12 14:24:05 +00:00
2017-02-02 16:13:49 +00:00
2016-05-16 08:57:59 +00:00
2017-01-31 10:49:24 +00:00
2016-05-16 08:57:59 +00:00
2017-01-31 10:49:24 +00:00
2016-05-16 08:57:59 +00:00
2017-01-31 10:49:24 +00:00
2016-05-16 08:57:59 +00:00
2016-05-16 08:57:59 +00:00
2016-01-21 15:11:01 +00:00
2015-10-05 13:19:29 +00:00
2015-08-17 10:11:55 +00:00
2015-08-17 10:11:55 +00:00
2016-06-03 09:53:06 +00:00
2016-07-19 10:49:03 +00:00
2016-10-19 13:41:12 +00:00
2016-10-05 18:26:19 +00:00
2017-01-22 20:28:56 +00:00
2016-11-21 20:30:41 +00:00
2016-10-18 15:17:17 +00:00
2015-02-10 16:36:20 +00:00
2016-03-24 16:10:37 +00:00
2016-06-15 07:46:24 +00:00
2015-01-12 12:03:34 +00:00
2015-01-21 12:39:30 +00:00
2015-01-21 12:39:30 +00:00
2015-10-28 11:04:29 +00:00
2015-11-17 10:00:43 +00:00
2016-08-22 12:17:59 +00:00
2016-05-03 13:35:44 +00:00
2014-11-19 13:37:51 +00:00
2016-04-19 23:51:52 +00:00
2016-06-27 08:23:28 +00:00
2013-10-29 16:38:59 +00:00
2015-02-18 17:15:48 +00:00
2016-03-24 16:10:37 +00:00
2016-03-24 16:10:37 +00:00
2015-09-16 09:14:35 +00:00
2013-08-13 20:19:16 +00:00
2013-09-06 12:41:17 +00:00
2013-09-06 13:08:00 +00:00
2015-11-17 10:00:43 +00:00
2016-05-03 13:35:44 +00:00
2016-04-27 11:02:23 +00:00
2013-10-29 16:38:59 +00:00
2013-11-15 08:07:34 +00:00
2015-11-26 16:35:41 +00:00
2016-02-29 11:24:49 +00:00
2013-08-28 00:55:15 +00:00
2015-01-26 17:33:46 +00:00
2016-12-08 22:10:48 +00:00
2014-03-03 14:27:49 +00:00
2016-06-16 09:17:03 +00:00
2016-06-03 10:22:22 +00:00
2015-06-23 10:11:36 +00:00
2016-06-24 12:23:17 +00:00
2014-09-16 15:00:52 +00:00
2016-05-03 13:35:44 +00:00
2016-06-16 09:17:03 +00:00
2015-03-06 12:15:12 +00:00
2015-08-11 08:56:25 +00:00
2013-12-13 11:11:02 +00:00
2016-02-29 16:06:38 +00:00
2016-04-19 23:51:52 +00:00
2016-02-15 16:11:51 +00:00
2015-11-17 10:00:43 +00:00
2016-06-24 12:23:17 +00:00
2016-11-22 16:43:49 +00:00
2015-06-23 13:54:42 +00:00
2014-11-11 11:22:39 +00:00
2015-04-08 12:15:05 +00:00
2014-03-03 13:12:59 +00:00
2013-04-14 21:18:36 +00:00
2015-02-13 10:30:57 +00:00
2015-11-17 10:00:43 +00:00
2014-08-13 10:07:34 +00:00
2016-02-17 11:15:16 +00:00
2014-07-21 13:30:55 +00:00
2015-01-26 17:33:46 +00:00
2014-04-01 10:35:28 +00:00
2014-03-26 11:39:07 +00:00
2015-05-14 13:42:10 +00:00
2015-06-30 13:46:03 +00:00
2015-06-30 13:46:03 +00:00
2015-01-26 17:33:46 +00:00
2016-06-03 10:22:22 +00:00
2016-06-23 12:42:53 +00:00
2014-07-10 13:38:23 +00:00
2016-06-23 12:42:53 +00:00
2015-05-28 16:23:16 +00:00
2016-06-24 12:23:17 +00:00
2014-03-28 19:41:33 +00:00
2015-11-12 13:33:00 +00:00
2016-01-19 23:05:27 +00:00
2016-12-05 12:55:19 +00:00
2016-06-24 12:23:17 +00:00
2016-05-13 12:07:14 +00:00
2016-08-22 16:18:42 +00:00
2015-11-19 15:04:31 +00:00
2015-11-19 15:04:31 +00:00
2015-11-19 15:04:31 +00:00
2016-05-04 13:21:06 +00:00
2016-04-12 15:28:16 +00:00
2015-04-27 14:05:04 +00:00
2015-02-13 10:30:57 +00:00
2015-02-13 10:30:57 +00:00
2016-06-16 09:17:03 +00:00
2014-09-09 12:52:14 +00:00
2014-11-04 17:18:07 +00:00
2015-02-18 16:24:50 +00:00
2015-02-18 16:24:50 +00:00
2014-09-17 09:01:54 +00:00
2015-05-14 14:51:32 +00:00
2017-02-02 16:13:49 +00:00
2015-06-30 09:36:50 +00:00
2015-06-30 09:36:50 +00:00
2016-05-05 14:15:46 +00:00
2015-06-09 13:33:26 +00:00
2015-06-02 09:48:04 +00:00
2015-06-02 09:48:04 +00:00
2016-06-03 10:22:22 +00:00
2016-05-09 10:21:14 +00:00
2014-04-01 10:41:48 +00:00
2015-03-13 18:20:45 +00:00
2016-07-11 07:41:56 +00:00
2014-10-02 13:41:42 +00:00
2015-06-30 12:41:33 +00:00
2016-02-11 13:48:49 +00:00
2015-06-23 11:31:32 +00:00