[Bug target/94236] -mcmodel=large does not work on aarch64

2020-03-23 Thread baratharon at caesar dot elte.hu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94236 --- Comment #7 from Aron --- (In reply to Andrew Pinski from comment #6) > Note for Threos OS, please don't reuse the same target triplet as elf or > linux; use your own triplet. Also adding long calls is not hard and such. As a simple start, I

[Bug target/94236] -mcmodel=large does not work on aarch64

2020-03-23 Thread baratharon at caesar dot elte.hu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94236 --- Comment #5 from Aron --- (In reply to Andrew Pinski from comment #4) > Do you have a source where you run into a relocation overflowing? > Or is there a specific reason why you need long calls here? The current form of Threos OS requires suc

[Bug target/94236] -mcmodel=large does not work on aarch64

2020-03-20 Thread baratharon at caesar dot elte.hu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94236 --- Comment #3 from Aron --- (In reply to Andrew Pinski from comment #1) > -mcmodel=large does not control long calls. Sadly, aarch64 lacks -mlong-calls which I use on armv7, therefore I thought based on the specification -mcmodel=large would ha

[Bug c/94236] New: -mcmodel=large does not work on aarch64

2020-03-20 Thread baratharon at caesar dot elte.hu
Assignee: unassigned at gcc dot gnu.org Reporter: baratharon at caesar dot elte.hu Target Milestone: --- Hello, If I compile an object file with -mcmodel=large, then the compiler produces short jumps to the function. I see R_AARCH64_CALL26 relocation in the object file (via readelf