Re: new ELF marking

2017-08-09 Thread Carlos O'Donell
On 08/09/2017 05:24 PM, H.J. Lu wrote: > On Wed, Aug 9, 2017 at 1:32 PM, Kostya Serebryany wrote: I believe this would only be an output bit, but I'm not sure how it would be wired into binutils. Kostya, do you know any details about how AddressSanitizer might

Re: new ELF marking

2017-08-09 Thread Carlos O'Donell
On 08/09/2017 05:24 PM, H.J. Lu wrote: > On Wed, Aug 9, 2017 at 1:32 PM, Kostya Serebryany wrote: I believe this would only be an output bit, but I'm not sure how it would be wired into binutils. Kostya, do you know any details about how AddressSanitizer might be able to

Re: new ELF marking

2017-08-09 Thread H.J. Lu
On Wed, Aug 9, 2017 at 1:32 PM, Kostya Serebryany wrote: >> > >> > I believe this would only be an output bit, but I'm not sure how it >> > would be wired into binutils. Kostya, do you know any details about >> > how AddressSanitizer might be able to create this ELF note? > > I

Re: new ELF marking

2017-08-09 Thread H.J. Lu
On Wed, Aug 9, 2017 at 1:32 PM, Kostya Serebryany wrote: >> > >> > I believe this would only be an output bit, but I'm not sure how it >> > would be wired into binutils. Kostya, do you know any details about >> > how AddressSanitizer might be able to create this ELF note? > > I don't, hopefully

Re: new ELF marking

2017-08-09 Thread Kostya Serebryany
> > > > I believe this would only be an output bit, but I'm not sure how it > > would be wired into binutils. Kostya, do you know any details about > > how AddressSanitizer might be able to create this ELF note? I don't, hopefully H.J's suggestion works. Will it be backward compatible? (i.e. will

Re: new ELF marking

2017-08-09 Thread Kostya Serebryany
> > > > I believe this would only be an output bit, but I'm not sure how it > > would be wired into binutils. Kostya, do you know any details about > > how AddressSanitizer might be able to create this ELF note? I don't, hopefully H.J's suggestion works. Will it be backward compatible? (i.e. will

Re: new ELF marking

2017-08-09 Thread H.J. Lu
On Wed, Aug 9, 2017 at 11:52 AM, Kees Cook wrote: > On Wed, Aug 9, 2017 at 11:46 AM, H.J. Lu wrote: >> On Wed, Aug 9, 2017 at 11:26 AM, Kees Cook wrote: >>> On Wed, Aug 9, 2017 at 10:16 AM, H.J. Lu wrote:

Re: new ELF marking

2017-08-09 Thread H.J. Lu
On Wed, Aug 9, 2017 at 11:52 AM, Kees Cook wrote: > On Wed, Aug 9, 2017 at 11:46 AM, H.J. Lu wrote: >> On Wed, Aug 9, 2017 at 11:26 AM, Kees Cook wrote: >>> On Wed, Aug 9, 2017 at 10:16 AM, H.J. Lu wrote: On Wed, Aug 9, 2017 at 10:07 AM, Kees Cook via binutils wrote: > Hi, >

Re: new ELF marking

2017-08-09 Thread Kees Cook
On Wed, Aug 9, 2017 at 11:46 AM, H.J. Lu wrote: > On Wed, Aug 9, 2017 at 11:26 AM, Kees Cook wrote: >> On Wed, Aug 9, 2017 at 10:16 AM, H.J. Lu wrote: >>> On Wed, Aug 9, 2017 at 10:07 AM, Kees Cook via binutils >>>

Re: new ELF marking

2017-08-09 Thread Kees Cook
On Wed, Aug 9, 2017 at 11:46 AM, H.J. Lu wrote: > On Wed, Aug 9, 2017 at 11:26 AM, Kees Cook wrote: >> On Wed, Aug 9, 2017 at 10:16 AM, H.J. Lu wrote: >>> On Wed, Aug 9, 2017 at 10:07 AM, Kees Cook via binutils >>> wrote: Hi, I'd like to be able to mark an ELF binary in such a

Re: new ELF marking

2017-08-09 Thread H.J. Lu
On Wed, Aug 9, 2017 at 11:26 AM, Kees Cook wrote: > On Wed, Aug 9, 2017 at 10:16 AM, H.J. Lu wrote: >> On Wed, Aug 9, 2017 at 10:07 AM, Kees Cook via binutils >> wrote: >>> Hi, >>> >>> I'd like to be able to mark an ELF binary

Re: new ELF marking

2017-08-09 Thread H.J. Lu
On Wed, Aug 9, 2017 at 11:26 AM, Kees Cook wrote: > On Wed, Aug 9, 2017 at 10:16 AM, H.J. Lu wrote: >> On Wed, Aug 9, 2017 at 10:07 AM, Kees Cook via binutils >> wrote: >>> Hi, >>> >>> I'd like to be able to mark an ELF binary in such a way that Linux's >>> binfmt_elf.c will collapse a PIE text

Re: new ELF marking

2017-08-09 Thread Kees Cook
On Wed, Aug 9, 2017 at 10:16 AM, H.J. Lu wrote: > On Wed, Aug 9, 2017 at 10:07 AM, Kees Cook via binutils > wrote: >> Hi, >> >> I'd like to be able to mark an ELF binary in such a way that Linux's >> binfmt_elf.c will collapse a PIE text area into

Re: new ELF marking

2017-08-09 Thread Kees Cook
On Wed, Aug 9, 2017 at 10:16 AM, H.J. Lu wrote: > On Wed, Aug 9, 2017 at 10:07 AM, Kees Cook via binutils > wrote: >> Hi, >> >> I'd like to be able to mark an ELF binary in such a way that Linux's >> binfmt_elf.c will collapse a PIE text area into the mmap region >> (currently they are

Re: new ELF marking

2017-08-09 Thread H.J. Lu
On Wed, Aug 9, 2017 at 10:07 AM, Kees Cook via binutils wrote: > Hi, > > I'd like to be able to mark an ELF binary in such a way that Linux's > binfmt_elf.c will collapse a PIE text area into the mmap region > (currently they are separately randomized in memory). This is

Re: new ELF marking

2017-08-09 Thread H.J. Lu
On Wed, Aug 9, 2017 at 10:07 AM, Kees Cook via binutils wrote: > Hi, > > I'd like to be able to mark an ELF binary in such a way that Linux's > binfmt_elf.c will collapse a PIE text area into the mmap region > (currently they are separately randomized in memory). This is desired > by