Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190306143048.GB26605@port70.net>
Date: Wed, 6 Mar 2019 15:30:48 +0100
From: Szabolcs Nagy <nsz@...t70.net>
To: musl@...ts.openwall.com
Cc: Ray <i@...kray.me>
Subject: Re: [PATCH] resolve DT_RELR packed relative relocations

* Ray <i@...kray.me> [2019-03-06 13:14:17 +0000]:
> --- a/include/elf.h
> +++ b/include/elf.h
> @@ -384,7 +384,8 @@ typedef struct {
>  #define SHT_PREINIT_ARRAY 16
>  #define SHT_GROUP   17
>  #define SHT_SYMTAB_SHNDX  18
> -#define SHT_NUM   19
> +#define SHT_RELR   19
> +#define SHT_NUM   20
>  #define SHT_LOOS   0x60000000
>  #define SHT_GNU_ATTRIBUTES 0x6ffffff5
>  #define SHT_GNU_HASH   0x6ffffff6
> @@ -744,7 +745,10 @@ typedef struct {
>  #define DT_PREINIT_ARRAY 32
>  #define DT_PREINIT_ARRAYSZ 33
>  #define DT_SYMTAB_SHNDX 34
> -#define DT_NUM 35
> +#define DT_RELRSZ 35
> +#define DT_RELR 36
> +#define DT_RELRENT 37
> +#define DT_NUM 38
>  #define DT_LOOS 0x6000000d
>  #define DT_HIOS 0x6ffff000
>  #define DT_LOPROC 0x70000000

if these are really generic elf things (instead of
os specific) then i don't see how lld can implement
this before the numbers are allocated in the gabi.

the last gabi change was in 2013
http://www.sco.com/developers/gabi/latest/revision.html
and currently its status is unclear, see discussions at
https://groups.google.com/forum/#!msg/generic-abi/XsQpUE6s02o/6rJd339BEAAJ

i think we do want a document instead of a mailing list
post to avoid conflicts. but it is a bit tricky since
the copyright owner is not interested maintaining it.

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.