Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Mon, 18 May 2015 20:39:30 +0200
From: Felix Janda <felix.janda@...teo.de>
To: musl@...ts.openwall.com
Subject: Re: ppc soft-float regression

Something seems to be wrong with the powerpc copy relocations.

Attached is a binary for testing (qemu-ppc works fine). It is compiled
from


#include <stdio.h>

extern char **environ;

int main(int argc, char **argv)
{
	printf("%p %p\n", environ, &argv[argc + 1]);
	return 0;
}


Output before dynamic linker overhaul:

0xf6f4f830 0xf6f4f830

and after:

0 0xf6f4f830


It seems to me that the dynamic linker indeed copies environ, which is
0 at that point, but that __init_libc uses the old location of environ.

Felix

Download attachment "a.out" of type "application/octet-stream" (6308 bytes)

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.