Skip to content

Commit bbcd167

Browse files
ILyoanbrson
authored andcommitted
---
yaml --- r: 56055 b: refs/heads/auto c: 344628f h: refs/heads/master i: 56053: 909269a 56051: 6bbf3e4 56047: e22dc1a v: v3
1 parent 435ce75 commit bbcd167

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1414
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1515
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1616
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
17-
refs/heads/auto: 3d0d144283959bf62368f6965aae14ce95ee286b
17+
refs/heads/auto: 344628fe91ffa0fad32bc5b3eee3e6b4b48c9990
1818
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1919
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c

branches/auto/src/librustc/metadata/loader.rs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,8 @@ fn get_metadata_section(os: os,
206206
while llvm::LLVMIsSectionIteratorAtEnd(of.llof, si.llsi) == False {
207207
let name_buf = llvm::LLVMGetSectionName(si.llsi);
208208
let name = unsafe { str::raw::from_c_str(name_buf) };
209-
if name == meta_section_name(os) {
209+
debug!("get_matadata_section: name %s", name);
210+
if name == read_meta_section_name(os) {
210211
let cbuf = llvm::LLVMGetSectionContents(si.llsi);
211212
let csz = llvm::LLVMGetSectionSize(si.llsi) as uint;
212213
let mut found = None;
@@ -251,6 +252,16 @@ pub fn meta_section_name(os: os) -> ~str {
251252
}
252253
}
253254
255+
pub fn read_meta_section_name(os: os) -> ~str {
256+
match os {
257+
os_macos => ~"__note.rustc",
258+
os_win32 => ~".note.rustc",
259+
os_linux => ~".note.rustc",
260+
os_android => ~".note.rustc",
261+
os_freebsd => ~".note.rustc"
262+
}
263+
}
264+
254265
// A diagnostic function for dumping crate metadata to an output stream
255266
pub fn list_file_metadata(intr: @ident_interner,
256267
os: os,

0 commit comments

Comments
 (0)