This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 1/9] [ARC] Avoid creating dynamic relocs when static linked is requested.


Hi Nick,

If one invokes ADD_RELA when no dynamic sections get created, it would
segmentation fault.
However, invocations to this macro are being done eagerly and that is
the reason for the simple condition fix.

Honestly, thinking about it now I do not find a use case where it would
be helpful to return an error message, but I can be wrong. :-(
Do you have use case in mind?

Cheers,
Cupertino

On 06/06/2017 02:09 PM, Nick Clifton wrote:
> Hi Cupertino,
>
>   First of all - sorry for taking so long to look at this patch series.
>
>> 	* elf32-arc.c (ADD_RELA): Changed to only work when dynamic object is
>> 	created.
> One thing that struck me about this patch is - what should happen if dynamic
> sections are not being created ?  IE is it an error to invoke the ADD_RELA
> macro if dynamic sections are not being emitted ?  If so, then maybe this
> macro should be extended to include an error message...
>
> Cheers
>   Nick
>
>
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]