[PATCH v5 02/14] ARC: startup and dynamic linking code
Joseph Myers
joseph@codesourcery.com
Fri Apr 17 22:42:20 GMT 2020
On Wed, 8 Apr 2020, Vineet Gupta via Libc-alpha wrote:
> +/* What this code does:
> + -ldso starts execution here when kernel returns from execve()
> + -calls into generic ldso entry point _dl_start( )
Avoid use of parentheses to indicate that a name is a function.
> +auto inline void
> +__attribute__ ((always_inline))
> +elf_machine_rela_relative (ElfW(Addr) l_addr, const ElfW(Rela) *reloc,
> + void *const reloc_addr_arg)
> +{
> + ElfW(Addr) *const reloc_addr = reloc_addr_arg;
> + *reloc_addr += l_addr; // + reloc->r_addend;
This comment seems unhelpful. If you want to comment on the addend not
being added, write a comment that says *why* it's not being added, not
just a commented-out addition.
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Libc-alpha
mailing list