[PATCH] riscv: restore ABI compatibility (bug 24484)

Szabolcs Nagy Szabolcs.Nagy@arm.com
Thu Jul 4 12:42:00 GMT 2019


On 04/07/2019 13:31, Andreas Schwab wrote:
> On Jul 04 2019, Szabolcs Nagy <Szabolcs.Nagy@arm.com> wrote:
> 
>> On 04/07/2019 09:37, Andreas Schwab wrote:
>>> On Jul 04 2019, Florian Weimer <fweimer@redhat.com> wrote:
>>>
>>>> Perhaps indicate somewhere that “a read-only dynamic section is not
>>>> relocated by the loader” or something like that, so that someone not
>>>> familiar with the MIPS mechanism understands the ABI difference?
>>>
>>> I think we should make DL_RO_DYN_SECTION the default for new ports, like
>>> everyone else does.
>>
>> then DT_DEBUG does not work.
> 
> In which way?

so is .dynamic actually mapped readonly?
or is this DL_RO_DYN_SECTION just about the 'relocated DT_ entries' abi?

if it's ro then ldso cannot set DT_DEBUG that the debugger looks at.
i think on mips the debugger looks at a different tag that has an indirection.


>> i suspect the debug abi is broken on riscv now.
> 
> I don't think so.
> 
> Andreas.
> 



More information about the Libc-alpha mailing list