bugTiny C Compiler - Bugs: bug #56920, [PATCH] Add support for Apple ABIs

 
 

bug #56920: [PATCH] Add support for Apple ABIs

Submitted by:  None
Submitted on:  Thu 19 Sep 2019 03:45:23 PM UTC
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment (Rich Markup)
   

Comment Type & Canned Response:
       No canned response available

 

Thu 19 Sep 2019 03:45:23 PM UTC, original submission:  

Apple's AArch64 ABI deviates from the standard in a few places:
https://developer.apple.com/library/archive/documentation/Xcode/Conceptual/iPhoneOSABIReference/Articles/ARM64FunctionCallingConventions.html
This is covered by the two first patches.

Also, macOS/x86 (32-bit) requires the first argument to be aligned on a 16 byte boundary, which is covered by the third patch. I didn't put this behind an ifdef as I figured it wouldn't hurt to do it on the other OSes; but no strong opinion either way.

Background: I just integrated TinyCC in Frida:
https://frida.re/news/2019/09/18/frida-12-7-released/
I also added a few additional APIs that I'm not sure if will be of interest to upstream, but figured it would be best to start with the fixes.

Thank you so much for this awesome software!

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #47548:  0001-Port-to-iOS.patch added by None (22KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

 

 

 

Follow 3 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2019-09-19 None Attached File- => Added 0001-Port-to-iOS.patch, #47548
    Attached File- => Added 0003-i386-Align-first-argument-on-a-16-byte-boundary.patch, #47549
    Attached File- => Added 0002-arm64-Zero-extend-variadic-arguments-smaller-than-32.patch, #47550

Back to the top


Powered by Savane 3.9