HEITZMANN Frédéric 218168
2012-Nov-28 17:20 UTC
[LLVMdev] MIPs backend generates wrong reloc info for static data
Hi all, I use llvm-clang with a MIPS target, and it seems that the backend generates wrong reloc info. I attach a very simple test case. * Compile test.c with 'clang -internal-as -g' * use mips-elf-objdump -S to get the generate assembly code (see test.lst) * use mips-elf-readelf -a to look for relocation info (see test.readelf) All relocations for static data are 0000 ?! I did not managed to locate the problem in the code, but I would be glad to help if someone can narrow the search area in the code base. Thanks for you help, -- Fred -------------- next part -------------- A non-text attachment was scrubbed... Name: test.c Type: text/x-csrc Size: 175 bytes Desc: test.c URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20121128/64cb0aa7/attachment.c> -------------- next part -------------- A non-text attachment was scrubbed... Name: test.lst Type: application/octet-stream Size: 1134 bytes Desc: test.lst URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20121128/64cb0aa7/attachment.obj> -------------- next part -------------- A non-text attachment was scrubbed... Name: test.readelf Type: application/octet-stream Size: 7284 bytes Desc: test.readelf URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20121128/64cb0aa7/attachment-0001.obj>
Sean Silva
2012-Nov-28 18:24 UTC
[LLVMdev] MIPs backend generates wrong reloc info for static data
Hi Frédéric, I believe there have been some recent patches related to MIPS relocations. If you have the time, could you try to reproduce this problem with top-of-tree LLVM and clang? Thanks, -- Sean Silva
Akira Hatanaka
2012-Nov-28 20:35 UTC
[LLVMdev] MIPs backend generates wrong reloc info for static data
Could you file a PR, with the exact command (including options such as -target, etc.) to reproduce this problem? On Wed, Nov 28, 2012 at 9:20 AM, HEITZMANN Frédéric 218168 < frederic.heitzmann at cea.fr> wrote:> Hi all, > > I use llvm-clang with a MIPS target, and it seems that the backend > generates wrong reloc info. > I attach a very simple test case. > * Compile test.c with 'clang -internal-as -g' > * use mips-elf-objdump -S to get the generate assembly code (see test.lst) > * use mips-elf-readelf -a to look for relocation info (see test.readelf) > > All relocations for static data are 0000 ?! > > I did not managed to locate the problem in the code, but I would be glad > to help if someone can narrow the search area in the code base. > > Thanks for you help, > > -- > Fred > > > > > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20121128/2364c052/attachment.html>