Displaying 6 results from an estimated 6 matches for "_infers_".
2017 Mar 06
4
[BUG Report] -dead_strip, strips prefix data unconditionally on macOS
Hi,
I just came across a rather annoying behavior with llvm 3.9. Assuming the following
samle code in test.ll:
; Lets have some global int x = 4
@x = global i32 10, align 4
; and two strings "p = %d\n" for the prefix data,
; as well as "x = %d\n" to print the (global) x value.
@.str = private unnamed_addr constant [8 x i8] c"x = %d\0A\00", align 1
@.str2 = private
2017 Mar 06
6
[BUG Report] -dead_strip, strips prefix data unconditionally on macOS
...n, Mar 6, 2017 at 11:19 AM, James Y Knight via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
> AFAIK, this cannot actually work on Apple platforms, because its object
> file format (Mach-O) doesn't use sections to determine the ranges of
> code/data to keep together, but instead _infers_ boundaries based on the
> range between global symbols in the symbol table.
>
> So, the symbol pointing to the beginning of @main *necessarily* makes that
> be a section boundary.
>
> I think the best that could be done in LLVM is to not emit the
> ".subsections_via_symbol...
2017 Mar 07
2
[BUG Report] -dead_strip, strips prefix data unconditionally on macOS
...mes Y Knight via llvm-dev <llvm-dev at lists.llvm.org <mailto:llvm-dev at lists.llvm.org>> wrote:
> AFAIK, this cannot actually work on Apple platforms, because its object file format (Mach-O) doesn't use sections to determine the ranges of code/data to keep together, but instead _infers_ boundaries based on the range between global symbols in the symbol table.
>
> So, the symbol pointing to the beginning of @main *necessarily* makes that be a section boundary.
>
> I think the best that could be done in LLVM is to not emit the ".subsections_via_symbols" asm d...
2017 Mar 07
2
[BUG Report] -dead_strip, strips prefix data unconditionally on macOS
...2017 at 11:19 AM, James Y Knight via llvm-dev <
> llvm-dev at lists.llvm.org> wrote:
> > AFAIK, this cannot actually work on Apple platforms, because its object
> file format (Mach-O) doesn't use sections to determine the ranges of
> code/data to keep together, but instead _infers_ boundaries based on the
> range between global symbols in the symbol table.
> >
> > So, the symbol pointing to the beginning of @main *necessarily* makes
> that be a section boundary.
> >
> > I think the best that could be done in LLVM is to not emit the
> ".su...
2017 Mar 07
4
[BUG Report] -dead_strip, strips prefix data unconditionally on macOS
...at 11:19 AM, James Y Knight via llvm-dev <
> llvm-dev at lists.llvm.org> wrote:
> > > AFAIK, this cannot actually work on Apple platforms, because its
> object file format (Mach-O) doesn't use sections to determine the ranges of
> code/data to keep together, but instead _infers_ boundaries based on the
> range between global symbols in the symbol table.
> > >
> > > So, the symbol pointing to the beginning of @main *necessarily* makes
> that be a section boundary.
> > >
> > > I think the best that could be done in LLVM is to not emi...
2017 Mar 07
2
[BUG Report] -dead_strip, strips prefix data unconditionally on macOS
...1:19 AM, James Y Knight via llvm-dev <
> llvm-dev at lists.llvm.org> wrote:
> > > > AFAIK, this cannot actually work on Apple platforms, because its
> object file format (Mach-O) doesn't use sections to determine the ranges of
> code/data to keep together, but instead _infers_ boundaries based on the
> range between global symbols in the symbol table.
> > > >
> > > > So, the symbol pointing to the beginning of @main *necessarily*
> makes that be a section boundary.
> > > >
> > > > I think the best that could be done i...