George Rimar
e7bf968803
[ELF] - Stop producing broken output for R_386_GOT32[X] relocations.
...
Previously we silently produced broken output for R_386_GOT32X/R_386_GOT32
relocations if they were used to compute the address of the symbol’s global
offset table entry without base register when position-independent code is disabled.
Situation happened because of recent ABI changes. Released ABI mentions that
R_386_GOT32X can be calculated in a two different ways (so we did not follow ABI here
before this patch), but draft ABI also mentions R_386_GOT32 relocation here.
We should use the same calculations for both relocations.
Problem is that we always calculated them as G + A - GOT (offset from end of GOT),
but for case when PIC is disabled, according to i386 ABI calculation should be G + A,
what should produce just an address in GOT finally.
ABI: https://github.com/hjl-tools/x86-psABI/wiki/intel386-psABI-draft.pdf (p36, p60).
llvm-svn: 299812
2017-04-08 06:14:14 +00:00
..
2016-06-04 19:11:14 +00:00
2016-06-04 23:33:31 +00:00
2016-01-13 13:04:46 +00:00
2016-01-11 14:27:05 +00:00
2016-04-15 12:22:22 +00:00
2016-03-29 08:35:42 +00:00
2016-04-27 02:58:27 +00:00
2016-12-14 10:36:12 +00:00
2016-10-10 09:39:26 +00:00
2016-06-07 09:31:52 +00:00
2016-12-08 12:58:55 +00:00
2016-06-16 09:53:46 +00:00
2016-06-16 09:53:46 +00:00
2016-06-16 09:53:46 +00:00
2016-09-23 13:54:48 +00:00
2016-11-21 13:57:50 +00:00
2016-09-29 10:27:10 +00:00
2016-11-08 16:26:32 +00:00
2016-02-02 08:22:41 +00:00
2016-05-24 02:37:40 +00:00
2016-05-24 02:37:40 +00:00
2017-01-10 01:21:50 +00:00
2016-02-11 23:41:38 +00:00
2016-02-11 23:41:38 +00:00
2016-02-11 23:41:38 +00:00
2017-01-26 14:09:18 +00:00
2016-02-16 16:46:31 +00:00
2016-02-26 14:27:47 +00:00
2016-04-06 19:38:26 +00:00
2016-06-28 21:48:33 +00:00
2016-06-07 09:31:52 +00:00
2016-06-16 09:53:46 +00:00
2016-04-15 15:26:52 +00:00
2016-10-20 09:19:48 +00:00
2016-10-20 09:19:48 +00:00
2016-04-26 16:22:51 +00:00
2016-05-25 14:31:37 +00:00
2017-04-08 06:14:14 +00:00
2017-02-13 21:29:56 +00:00
2017-02-13 21:29:56 +00:00
2017-02-13 21:29:56 +00:00
2017-02-13 21:29:56 +00:00
2016-12-06 12:19:24 +00:00
2016-02-25 18:43:51 +00:00
2017-01-20 04:58:12 +00:00
2016-12-02 17:23:58 +00:00
2016-04-27 02:58:27 +00:00
2016-04-27 02:58:27 +00:00
2016-03-29 08:35:42 +00:00
2017-01-13 21:05:46 +00:00
2017-01-13 21:05:46 +00:00
2017-01-13 21:05:46 +00:00
2016-03-31 12:09:36 +00:00
2016-12-21 05:31:57 +00:00
2016-05-24 02:37:40 +00:00
2016-09-29 12:58:42 +00:00
2016-09-29 12:58:42 +00:00
2016-09-29 12:58:48 +00:00
2016-04-04 16:02:39 +00:00
2016-11-05 22:58:01 +00:00
2016-05-21 19:48:54 +00:00
2016-05-26 20:46:01 +00:00
2016-03-31 21:26:23 +00:00
2016-06-23 15:26:31 +00:00
2016-02-26 14:27:47 +00:00
2016-03-08 19:51:58 +00:00
2016-04-29 16:23:31 +00:00
2016-04-30 01:15:17 +00:00
2016-02-25 08:23:37 +00:00
2016-03-11 14:34:44 +00:00
2017-02-23 06:22:28 +00:00
2016-11-15 08:19:02 +00:00
2016-02-25 08:23:37 +00:00
2016-04-04 22:29:24 +00:00
2017-03-17 10:14:53 +00:00
2016-06-07 09:31:52 +00:00
2017-01-10 01:21:50 +00:00
2016-11-15 08:07:14 +00:00
2017-01-19 19:51:02 +00:00
2016-01-18 23:54:05 +00:00
2016-12-08 12:58:55 +00:00
2016-02-24 16:37:47 +00:00
2016-12-03 15:26:18 +00:00
2016-04-08 20:49:31 +00:00
2016-04-08 20:49:31 +00:00
2016-06-14 21:56:36 +00:00
2016-10-13 22:20:18 +00:00
2016-07-25 16:51:52 +00:00
2016-04-01 12:54:27 +00:00
2016-02-22 23:19:29 +00:00
2016-04-13 18:07:57 +00:00
2016-04-13 18:07:57 +00:00
2016-06-23 07:00:17 +00:00
2016-06-23 07:00:17 +00:00
2016-09-12 10:02:41 +00:00
2016-12-07 19:42:25 +00:00
2016-04-30 01:15:17 +00:00
2016-05-09 21:40:06 +00:00
2017-01-11 08:29:52 +00:00
2016-06-29 12:35:04 +00:00
2016-10-06 09:45:04 +00:00
2016-11-23 05:14:01 +00:00
2016-06-20 11:55:12 +00:00
2016-04-27 20:22:31 +00:00
2016-04-27 20:22:31 +00:00
2016-04-27 20:22:31 +00:00
2016-06-20 14:02:22 +00:00
2016-04-29 17:46:07 +00:00
2016-06-06 22:42:57 +00:00
2016-06-06 22:42:57 +00:00
2016-04-30 00:49:10 +00:00
2016-03-14 09:19:30 +00:00
2016-03-14 09:19:30 +00:00
2016-04-27 02:58:27 +00:00
2016-06-17 15:42:36 +00:00
2017-01-18 02:20:53 +00:00
2017-01-18 02:20:53 +00:00
2017-02-13 16:21:34 +00:00
2017-02-13 16:21:34 +00:00
2016-03-08 19:51:58 +00:00
2016-07-04 17:34:53 +00:00
2017-03-14 22:50:07 +00:00