Re: [PATCH 0/2] ARC Moving to @pcl relocations

2016-07-28 Thread Vineet Gupta
On 07/28/2016 03:04 PM, Bernhard Reutner-Fischer wrote: >> Indeed your 2/2 seems to be the most "past-proof" code change. So I >> >would think it >> >is indeed better and is something I should have done in the first >> >place. >> > >> >@Alexey, @Vlad what say you ? > uClibc traditionally supports t

Re: [PATCH 2/2] ARC: Add new compiler define to indicate @pcl relocation support

2016-07-28 Thread Waldemar Brodkorb
Hi Andrew, Andrew Burgess wrote, > Some old versions of binutils did not support @pcl relocations. This > commit adds a new flag to the uClibc configuration system that detects > if the toolchain supports @pcl relocations or not. > > If this relocation is supported then the define ARC_HAS_AT_PCL

Re: [PATCH 0/2] ARC Moving to @pcl relocations

2016-07-28 Thread Bernhard Reutner-Fischer
On July 28, 2016 8:50:41 PM GMT+02:00, Vineet Gupta wrote: >Hi Andrew, > >On 07/28/2016 11:20 AM, Andrew Burgess wrote: >> This is a slightly odd series of 2 patches. The two patches are >> actually alternative solutions to the same problem. I'm keen to see >> one of these merged, but I don't k

Re: [PATCH 0/2] ARC Moving to @pcl relocations

2016-07-28 Thread Vineet Gupta
Hi Andrew, On 07/28/2016 11:20 AM, Andrew Burgess wrote: > This is a slightly odd series of 2 patches. The two patches are > actually alternative solutions to the same problem. I'm keen to see > one of these merged, but I don't know which method would be preferred. > > This commit aims to addres

[PATCH 1/2] ARC: Update relocation syntax for old-thread model code

2016-07-28 Thread Andrew Burgess
This commit reverses a change introduced in commit 20554a78a9bba that split some of the ARC code into two based on whether uClibc was configured with native threads or not. The native thread code was updated to use the relocation syntax of modern binutils, while the non-native code path used a syn

[PATCH 2/2] ARC: Add new compiler define to indicate @pcl relocation support

2016-07-28 Thread Andrew Burgess
Some old versions of binutils did not support @pcl relocations. This commit adds a new flag to the uClibc configuration system that detects if the toolchain supports @pcl relocations or not. If this relocation is supported then the define ARC_HAS_AT_PCL_RELOC will be passed to the compiler, which

[PATCH 0/2] ARC Moving to @pcl relocations

2016-07-28 Thread Andrew Burgess
This is a slightly odd series of 2 patches. The two patches are actually alternative solutions to the same problem. I'm keen to see one of these merged, but I don't know which method would be preferred. This commit aims to address an issue that was introduced / mentioned in commit 20554a78a9bba2

[PATCH] ARC: Support R_ARC_JMP_SLOT relocations during bootstrap

2016-07-28 Thread Andrew Burgess
I ran into this issue while trying to debug a _different_ issue witin the uClinc(-ng) arc dynamic linker. I turned on debugging support within the dynamic linker, and the linker would no longer complete its bootstrap phase due to a lack of support for the R_ARC_JMP_SLOT relocation type. To reprod