public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
To: "H.J. Lu" <hjl.tools@gmail.com>, libc-alpha@sourceware.org
Subject: Re: [PATCH v10 1/7] elf: Define DT_RELR related macros and types
Date: Wed, 20 Apr 2022 09:45:32 -0300	[thread overview]
Message-ID: <47258bc7-e7cd-1987-facc-d7d83a5f4766@linaro.org> (raw)
In-Reply-To: <20220414232129.1886210-2-hjl.tools@gmail.com>

LGTM, thanks.

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>

On 14/04/2022 20:21, H.J. Lu wrote:
> ---
>  elf/elf.h | 13 +++++++++++--
>  1 file changed, 11 insertions(+), 2 deletions(-)
> 
> diff --git a/elf/elf.h b/elf/elf.h
> index 0735f6b579..0195029188 100644
> --- a/elf/elf.h
> +++ b/elf/elf.h
> @@ -443,7 +443,8 @@ typedef struct
>  #define SHT_PREINIT_ARRAY 16		/* Array of pre-constructors */
>  #define SHT_GROUP	  17		/* Section group */
>  #define SHT_SYMTAB_SHNDX  18		/* Extended section indices */
> -#define	SHT_NUM		  19		/* Number of defined types.  */
> +#define SHT_RELR	  19            /* RELR relative relocations */
> +#define	SHT_NUM		  20		/* Number of defined types.  */
>  #define SHT_LOOS	  0x60000000	/* Start OS-specific.  */
>  #define SHT_GNU_ATTRIBUTES 0x6ffffff5	/* Object attributes.  */
>  #define SHT_GNU_HASH	  0x6ffffff6	/* GNU-style hash table.  */
> @@ -662,6 +663,11 @@ typedef struct
>    Elf64_Sxword	r_addend;		/* Addend */
>  } Elf64_Rela;
>  
> +/* RELR relocation table entry */
> +
> +typedef Elf32_Word	Elf32_Relr;
> +typedef Elf64_Xword	Elf64_Relr;
> +
>  /* How to extract and insert information held in the r_info field.  */
>  
>  #define ELF32_R_SYM(val)		((val) >> 8)
> @@ -887,7 +893,10 @@ typedef struct
>  #define DT_PREINIT_ARRAY 32		/* Array with addresses of preinit fct*/
>  #define DT_PREINIT_ARRAYSZ 33		/* size in bytes of DT_PREINIT_ARRAY */
>  #define DT_SYMTAB_SHNDX	34		/* Address of SYMTAB_SHNDX section */
> -#define	DT_NUM		35		/* Number used */
> +#define DT_RELRSZ	35		/* Total size of RELR relative relocations */
> +#define DT_RELR		36		/* Address of RELR relative relocations */
> +#define DT_RELRENT	37		/* Size of one RELR relative relocaction */
> +#define	DT_NUM		38		/* Number used */
>  #define DT_LOOS		0x6000000d	/* Start of OS-specific */
>  #define DT_HIOS		0x6ffff000	/* End of OS-specific */
>  #define DT_LOPROC	0x70000000	/* Start of processor-specific */

  reply	other threads:[~2022-04-20 12:45 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-14 23:21 [PATCH v10 0/7] Support DT_RELR relative relocation format H.J. Lu
2022-04-14 23:21 ` [PATCH v10 1/7] elf: Define DT_RELR related macros and types H.J. Lu
2022-04-20 12:45   ` Adhemerval Zanella [this message]
2022-04-14 23:21 ` [PATCH v10 2/7] Add GLIBC_ABI_DT_RELR for DT_RELR support H.J. Lu
2022-04-20 13:32   ` Adhemerval Zanella
2022-04-14 23:21 ` [PATCH v10 3/7] elf: Support DT_RELR relative relocation format [BZ #27924] H.J. Lu
2022-04-20 13:44   ` Adhemerval Zanella
2022-04-22 18:47     ` H.J. Lu
2022-04-14 23:21 ` [PATCH v10 4/7] elf: Properly handle zero DT_RELA/DT_REL values H.J. Lu
2022-04-20 17:10   ` Adhemerval Zanella
2022-04-14 23:21 ` [PATCH v10 5/7] elf: Add more DT_RELR tests H.J. Lu
2022-04-20 17:24   ` Adhemerval Zanella
2022-04-20 17:41     ` Adhemerval Zanella
2022-04-22 18:44       ` H.J. Lu
2022-04-14 23:21 ` [PATCH v10 6/7] Add --disable-default-dt-relr H.J. Lu
2022-04-20 17:49   ` Adhemerval Zanella
2022-04-22 18:41     ` H.J. Lu
2022-04-14 23:21 ` [PATCH v10 7/7] NEWS: Mention DT_RELR support H.J. Lu
2022-04-20 17:49   ` Adhemerval Zanella

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47258bc7-e7cd-1987-facc-d7d83a5f4766@linaro.org \
    --to=adhemerval.zanella@linaro.org \
    --cc=hjl.tools@gmail.com \
    --cc=libc-alpha@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).