https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67215
H.J. Lu changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67215
--- Comment #7 from hjl at gcc dot gnu.org ---
Author: hjl
Date: Tue Oct 27 14:29:31 2015
New Revision: 229444
URL: https://gcc.gnu.org/viewcvs?rev=229444&root=gcc&view=rev
Log:
Properly handle -fno-plt in ix86_expand_call
prepare_call_address
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67215
--- Comment #6 from H.J. Lu ---
(In reply to H.J. Lu from comment #5)
> Created attachment 36190 [details]
> A patch
>
> For x86, -fno-plt should be handled by ix86_expand_call to
> generate indirect call via GOT, not by forcing the function
> a
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67215
--- Comment #5 from H.J. Lu ---
Created attachment 36190
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36190&action=edit
A patch
For x86, -fno-plt should be handled by ix86_expand_call to
generate indirect call via GOT, not by forcing the
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67215
H.J. Lu changed:
What|Removed |Added
Status|WAITING |NEW
CC|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67215
--- Comment #4 from Andrew Senkevich ---
-bash-4.2$ cat test.c
extern char* mem(int);
char* arr[32];
void proc(void)
{
int i;
for (i=0;i<32;i++)
arr[i] = mem(128);
}
gcc -pie -fpie -fno-plt -O2 -S test.c -o test_32.S -m32
gcc -pie -fp
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67215
--- Comment #3 from H.J. Lu ---
(In reply to Andrew Senkevich from comment #2)
> -bash-4.2$ cat test.c
> extern int proc2(int);
>
> int proc( void)
> {
> int i = proc2( 3);
>
> return i;
> }
>
> gcc test.c -S -pie -fpie -o test.1.S
> gcc t
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67215
--- Comment #2 from Andrew Senkevich ---
-bash-4.2$ cat test.c
extern int proc2(int);
int proc( void)
{
int i = proc2( 3);
return i;
}
gcc test.c -S -pie -fpie -o test.1.S
gcc test.c -S -pie -fpie -fno-plt -o test.2.S
-bash-4.2$ cat test.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67215
H.J. Lu changed:
What|Removed |Added
Status|UNCONFIRMED |WAITING
Last reconfirmed|