[llvm-commits] [llvm] r127540 - in /llvm/trunk: include/llvm/MC/MCSection.h include/llvm/MC/MCSectionELF.h lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp

Jan Sjodin jan_sjodin at yahoo.com
Thu Mar 17 14:59:13 PDT 2011


Test machine: GNU ld (GNU Binutils for Debian) 2.18.0.20080103
My machine: GNU ld (GNU Binutils for Ubuntu) 2.20.51-system.20100908

I actually did a few different things to see if I could possibly reproduce the 
problem on my machine.
1. I downloaded the closest versions of gdb, gcc and binutils that i could find:
   Test machine: gcc (Debian 4.3.2-1.1) 4.3.2,  GNU gdb 6.8-debian and binutils 
(see above)
   Downloaded and compiled: gcc 4.3.2, gdb 6.8 and  binutils 2.18
2. Compiled llvm, llvm-gcc with these and was not able to reproduce the problem.
3. Copied the ld binary and libbfd-2.18.0.20080103.so from the test machine to 
my own machine to see if I could use that linker to reproduce the error, and 
still was not able to reproduce the problem.

There is something weird going on with that specific machine and I have no clue 
what it is. I know that ld is involved somehow. Perhaps it is some other 
supporting library that is at fault.

- Jan




________________________________
From: Rafael Avila de Espindola <rafael.espindola at gmail.com>
To: llvm-commits at cs.uiuc.edu
Sent: Thu, March 17, 2011 4:41:03 PM
Subject: Re: [llvm-commits] [llvm] r127540 - in /llvm/trunk: 
include/llvm/MC/MCSection.h include/llvm/MC/MCSectionELF.h 
lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp

On 11-03-17 03:57 PM, Jan Sjodin wrote:
> I have been investigating this failure for the past couple of days.
> There is something wrong with the linker on the test machine. If i take
> the generated asm file (.s) and assemble and link on my own machine it
> works fine. If i assemble on the test machine and link on my machine it
> works fine, but if I link on the test machine the ELF format becomes
> corrupted somehow. This shows up e.g. with readelf -a, where the object
> file is okay, but the binary does not list the symbol table (it is there
> and can be listed with readelf -s) The patch should be good otherwise,
> the object file is smaller with the patch than without.

What are the liker versions on both cases?

> - Jan

Cheers,
Rafael
_______________________________________________
llvm-commits mailing list
llvm-commits at cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20110317/b817c357/attachment.html>


More information about the llvm-commits mailing list