Rafael Espindola
224dbf4aec
Completely rewrite ELFObjectWriter::RecordRelocation.
...
I started trying to fix a small issue, but this code has seen a small fix too
many.
The old code was fairly convoluted. Some of the issues it had:
* It failed to check if a symbol difference was in the some section when
converting a relocation to pcrel.
* It failed to check if the relocation was already pcrel.
* The pcrel value computation was wrong in some cases (relocation-pc.s)
* It was missing quiet a few cases where it should not convert symbol
relocations to section relocations, leaving the backends to patch it up.
* It would not propagate the fact that it had changed a relocation to pcrel,
requiring a quiet nasty work around in ARM.
* It was missing comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205076 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-29 06:26:49 +00:00
..
2014-03-28 18:50:26 +00:00
2014-03-04 09:23:33 +00:00
2014-03-04 10:07:28 +00:00
2014-03-29 06:26:49 +00:00
2013-12-11 00:30:57 +00:00
2014-02-14 19:16:39 +00:00
2013-12-10 05:39:34 +00:00
2012-12-19 19:55:47 +00:00
2014-03-20 10:41:37 +00:00
2014-01-21 15:03:52 +00:00
2014-03-20 10:41:37 +00:00
2014-03-07 06:08:31 +00:00
2013-10-29 19:29:03 +00:00
2014-02-14 19:16:39 +00:00
2013-05-10 22:25:39 +00:00
2014-03-04 10:07:28 +00:00
2014-02-14 19:16:39 +00:00
2013-08-07 04:00:26 +00:00
2014-03-02 12:27:27 +00:00
2013-12-06 00:13:50 +00:00
2014-01-23 10:31:31 +00:00
2014-03-04 11:45:46 +00:00
2013-05-25 02:42:55 +00:00
2014-03-04 10:07:28 +00:00
2014-02-05 23:15:53 +00:00
2014-03-12 08:00:24 +00:00
2013-06-07 07:04:14 +00:00
2014-03-26 16:09:43 +00:00
2013-11-28 15:26:33 +00:00
2014-03-20 11:51:58 +00:00
2013-05-24 22:23:49 +00:00
2013-09-28 13:42:22 +00:00
2014-02-28 10:00:38 +00:00
2014-03-02 09:09:27 +00:00
2014-02-07 17:16:40 +00:00
2014-03-23 17:09:26 +00:00
2014-01-21 11:28:03 +00:00
2014-03-23 17:09:26 +00:00
2014-03-10 20:34:23 +00:00
2013-04-18 00:52:44 +00:00
2013-10-15 01:48:30 +00:00
2013-01-02 11:36:10 +00:00
2013-03-29 01:51:04 +00:00
2014-03-20 11:51:58 +00:00
2014-02-05 17:19:30 +00:00
2013-11-19 00:57:56 +00:00
2013-11-19 00:57:56 +00:00
2014-03-26 16:09:43 +00:00
2014-03-04 11:45:46 +00:00
2014-03-03 14:31:21 +00:00
2014-03-27 16:42:17 +00:00
2014-03-27 16:42:17 +00:00
2013-07-24 13:02:35 +00:00
2012-12-03 23:11:12 +00:00
2014-03-02 12:27:27 +00:00
2013-10-08 18:13:24 +00:00
2014-03-04 11:26:31 +00:00
2014-01-07 21:19:40 +00:00
2013-10-29 16:24:21 +00:00
2013-04-09 19:46:01 +00:00
2013-04-09 19:46:01 +00:00
2014-02-10 12:05:17 +00:00
2014-03-12 11:54:00 +00:00
2014-01-07 11:48:04 +00:00
2013-09-23 22:36:11 +00:00
2013-04-10 16:58:04 +00:00
2014-03-12 08:00:24 +00:00
2013-10-07 13:39:22 +00:00
2014-03-20 11:51:58 +00:00
2012-02-28 07:46:26 +00:00
2014-03-24 14:05:39 +00:00
2014-03-07 06:08:31 +00:00
2013-10-29 19:29:03 +00:00
2014-03-20 10:18:24 +00:00
2013-10-15 01:48:30 +00:00
2014-03-27 16:42:17 +00:00
2014-03-03 14:31:21 +00:00
2014-03-27 16:42:17 +00:00
2014-03-02 09:09:27 +00:00
2012-02-17 08:55:11 +00:00
2011-04-15 21:51:11 +00:00
2014-03-12 08:00:24 +00:00
2013-06-07 07:04:14 +00:00
2014-03-27 16:42:17 +00:00
2014-03-20 11:51:58 +00:00
2014-03-10 16:31:25 +00:00
2013-07-12 23:33:22 +00:00
2014-02-08 14:53:28 +00:00
2014-03-02 09:09:27 +00:00
2014-03-26 15:14:32 +00:00
2014-03-12 11:54:00 +00:00