aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/resolve
diff options
context:
space:
mode:
authorPhilip Herron <philip.herron@embecosm.com>2022-07-15 11:56:19 +0100
committerPhilip Herron <philip.herron@embecosm.com>2022-07-15 17:02:20 +0100
commit2d1378f7310be651e2a538f192d385b136b3d697 (patch)
treea080716bf04ed6180acd115fcfbbb856ab6990b1 /gcc/rust/resolve
parent418aef1b006182e84266dcf4f31ee721ed04301a (diff)
downloadgcc-2d1378f7310be651e2a538f192d385b136b3d697.zip
gcc-2d1378f7310be651e2a538f192d385b136b3d697.tar.gz
gcc-2d1378f7310be651e2a538f192d385b136b3d697.tar.bz2
Add new metadata interface to write directly to file
This interface will allow us to write the metadata directly to a file. MacOs does not support metadata embeded directly into a .section of object files and archives. This allows us to seperate this mechanism so that we can follow rustc and write this directly to a seperate file. This patch adds two new options to control metadata outputs -frust-embed-metadata this toggles to embed the metadata into .rust_export section of the target asm output -frust-metadata-output= specifies the path to directly write the metadata to file We need these options as embeding the metadata does not seem to be supported for all platforms like MacOs so writing directly to file is a platform agnostic solution. There is an implicit naming convetion to metadata export files. They need to be of crate_name.rox. This patch adds some simple validation by checking the basename of the specified path.
Diffstat (limited to 'gcc/rust/resolve')
0 files changed, 0 insertions, 0 deletions