diff options
| author | Patrick Walton <[email protected]> | 2011-03-11 15:35:20 -0800 |
|---|---|---|
| committer | Patrick Walton <[email protected]> | 2011-03-11 15:35:50 -0800 |
| commit | 9b3db0ed445de1b513742770420ba4b60a025219 (patch) | |
| tree | ba749edd60a802d5707b44ccf432ca237c151028 /src/comp/back | |
| parent | reindex the block index. (diff) | |
| download | rust-9b3db0ed445de1b513742770420ba4b60a025219.tar.xz rust-9b3db0ed445de1b513742770420ba4b60a025219.zip | |
rustc: Add some stub metadata to each crate
Diffstat (limited to 'src/comp/back')
| -rw-r--r-- | src/comp/back/x86.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/comp/back/x86.rs b/src/comp/back/x86.rs index b9ba24c6..0ed79db4 100644 --- a/src/comp/back/x86.rs +++ b/src/comp/back/x86.rs @@ -273,6 +273,16 @@ fn get_module_asm() -> str { ret _str.connect(glues, "\n\n"); } +fn get_meta_sect_name() -> str { + if (_str.eq(target_os(), "macos")) { + ret "__DATA,__note.rustc"; + } + if (_str.eq(target_os(), "win32")) { + ret ".note.rustc"; + } + ret ".note.rustc"; +} + fn get_data_layout() -> str { if (_str.eq(target_os(), "macos")) { ret "e-p:32:32-f64:32:64-i64:32:64-f80:128:128-n8:16:32"; |