Displaying 20 results from an estimated 45 matches for "str1.1".
2020 Sep 15
2
[ELF] String literals don't obey -fdata-sections
Hi there,
When I compile my code with -fdata-sections and -ffunction-sections, I
still see some unused string in my shared library (Android). Actually,
the strings appear together inside a .rodata.str1.1 section instead of
getting their own section. It seems that the C-string literal are
considered differently than other constant and the -fdata-sections is
not respected in
2020 Nov 02
2
[llvm-mc] FreeBSD kernel module performance impact when upgrading clang
Hi,
I'm in the process of migrating from clang5 to clang10. Unfortunately clang10 introduced a negative performance impact. The cause is an increase of PLT entries from this patch (first released in clang7):
https://bugs.llvm.org/show_bug.cgi?id=36370
https://reviews.llvm.org/D43383
If I revert that clang patch locally, the additional PLT entries and the performance impact disappear.
This
2020 Apr 18
2
Debug symbols are missing in elf
Hello All,
I was trying to add Microblaze target to LLVM backend. I was able to
generate object file with relocations. and debug symbols.
When I try to link this object file with microblaze GCC linker I am
getting below errors and debug symbols are missing in it.
mb-objdump: DWARF error: found dwarf version '15877', this reader only
handles version 2, 3, 4 and 5 information
2020 Apr 18
2
Debug symbols are missing in elf
On Saturday, April 18, 2020, David Blaikie <dblaikie at gmail.com> wrote:
>
>
> On Sat, Apr 18, 2020 at 3:02 AM Nagaraju Mekala via llvm-dev <
> llvm-dev at lists.llvm.org> wrote:
>
>> Hello All,
>>
>> I was trying to add Microblaze target to LLVM backend. I was able to
>> generate object file with relocations. and debug symbols.
>>
2020 Sep 16
2
[ELF] String literals don't obey -fdata-sections
On 2020-09-16 00:18, Fangrui Song wrote:
> Usually it is because nobody has noticed the problem or nobody is
> motivated enough to fix the problems, not that they intentionally leave
> a problem open:) I took some time to look at the problem and conclude
> that clang should do nothing on this. Actually, with the clang behavior,
> you can discard "Unused" if you use LLD.
2009 Aug 19
2
[LLVMdev] Solaris (sparc) llc bugs
Hello.
I have been trying to check, how llvm works on Solaris recently.
First I have tested lli, whitch seems to execute the bytecode generated
on Linux without any problems. However, llc has failed to generate valid
SPARC assembler code even on the helloworld example. Here is the generated
code:
sakharov at trillian:~$ cat ./test.s
.text
.align 16
.globl main
2020 Apr 20
2
Debug symbols are missing in elf
On Sat, Apr 18, 2020 at 11:11 PM David Blaikie <dblaikie at gmail.com> wrote:
>
> Yeah, not sure - you mention the linker produces errors, but the errors you showed looked like objdump errors? Were those errors from trying to dump the linked executable, and not errors that were produced by the linker itself?
Yes, as mentioned earlier I was able to generate final executable but
it
2018 Feb 06
3
[RFC] Add mergeable and eh_frame section pieces to map files and --print-gc/icf-sections reports
Hi,
We’d like to propose an extension to both the map file and the
print-gc/icf-sections output. This extension would be to report the pieces
of .eh_frame and SHF_MERGE sections in these files somehow. Since all (or
at least the majority) of the contents of these sections in the output come
from inputs, it would be beneficial in trying to associate the output
contents with where they came from,
2020 Nov 05
0
[EXTERNAL] [llvm-mc] FreeBSD kernel module performance impact when upgrading clang
> You used -noinhibit-exec to ignore the diagnostic, which is usually a bad thing.
I certainly agree with that.
The point I was trying to make in my original email is that, specifically for kernel objects, this diagnostic is incorrect. R_X86_64_PC32 can be used safely against the symbol foo in that specific context, and should be possible without ignoring diagnostics. I wondered if there
2013 Sep 24
1
[LLVMdev] possible dwarf regression
In compiling perlbench in SPEC2006 today, I get the following asm code:
.4byte ($debug_loc2280)
.4byte 1
.4byte PerlIO_fd_refcnt
$set1406 = ($.bss_end)-PerlIO_fd_refcnt
.4byte ($set1406)
.4byte PerlIO_perlio
$set1407 = ($.data_end)-PerlIO_perlio
.4byte ($set1407)
.4byte ($func_begin0)
$set1408 = ($.text_end)-($func_begin0)
.4byte
2011 Nov 30
1
[LLVMdev] elf direct object emission
With the MIPS compiler, when we have static constants, in the .s file we
get something like:
.type $.str33, at object # @.str33
.section .rodata.str1.1,"aMS", at progbits,1
$.str33:
.asciz "//"
.size $.str33, 3
Currently when we create direct object code we are referencing the
symbol as an offset in .rodata and not directly using
2011 Mar 10
3
[LLVMdev] Detrimental optimization for reducing relocations.
I was looking into the AsmPrinter and the method EmitSectionOffset which
contains this code:
--------------------------------------------------------------------------------
// If the section in question will end up with an address of 0 anyway, we can
// just emit an absolute reference to save a relocation.
if (Section.isBaseAddressKnownZero()) {
OutStreamer.EmitSymbolValue(Label, 4,
2019 May 18
2
Executing code changed with LLVM
Hi everyone,
*1.* I had a file called server.cpp that i can run using:
g++ -o server server.cpp -lrpc -ldl -lpthread
*2.* Converted the file into LLVM IR, modified it and saved to file using
the WriteBitcodeToFile function. The name of resulting file is "output".
*3.* Used llc command for generation of "output.o" file as:
llc -filetype=obj output
*4.* Used gcc command to
2017 Nov 14
2
[PATCH v2] daemon: Use a configure-time test to find the best OCaml
v1 was here:
https://www.redhat.com/archives/libguestfs/2017-November/msg00068.html
v1 -> v2:
- Use a configure-time test.
Rich.
2018 Feb 06
0
[RFC] Add mergeable and eh_frame section pieces to map files and --print-gc/icf-sections reports
It seems that showing eh_frame section pieces in the map file is useful,
but I wonder what would be a concrete use case of the feature. Do you mind
if you ask you to describe your plan if you have a use case in mind?
On Tue, Feb 6, 2018 at 4:27 AM, James Henderson <
jh7370.2008 at my.bristol.ac.uk> wrote:
> Hi,
>
>
>
> We’d like to propose an extension to both the map file
2012 Nov 11
2
[LLVMdev] Tracing nodes in selectionDAG to final code...
Hello everyone.
I use this command
clang -emit-llvm hello.c -c -o hello.bc
llc hello.bc -march=mipsel -relocation-model=static -o hello.s
to produce this MIPS code:
.section .mdebug.abi32
.previous
.file "hello.bc"
.text
.globl main
.align 2
.type main, at function
.set nomips16 # @main
.ent main
main:
.cfi_startproc
.frame $sp,32,$ra
.mask 0x80000000,-4
.fmask
2020 Apr 21
2
Debug symbols are missing in elf
Hi James,
Thanks for reply.
When I looked in to the generated debug dump from the object file I
found that DW_AT_name is always (indirect string, offset: 0x0): clang
version 8.0.1, instead of variable names.
Below is a sample output of the debug dump.
Compilation Unit @ offset 0x0:
Length: 0x6a (32-bit)
Version: 4
Abbrev Offset: 0x0
Pointer Size: 4
2009 Jun 18
2
[LLVMdev] Unknown pseudo-op with -march=arm
Hello,
Running some examples to see how LLVM work, I found that some pseudo
operations are unknown. Details are shown below.
This is the command sequence that I am using:
> llvm-gcc -O3 -emit-llvm hello.c -c -o hello.bc
> llc -march=arm hello.bc -o hello-arm.s
> arm-linux-gcc hello-arm.s -o hello-arm
************************
hello.s:6: Error: Unknown pseudo-op: `.eabi_attribute'
2017 Nov 14
1
[PATCH] daemon: Link daemon to -lasmrun_pic.
Not totally sure about this. Perhaps we should make ./configure look
for the right asmrun library? Or make it user-configurable?
Rich.
2002 Aug 15
1
EXT3 crash
Hi all. I am running the 2.4.18-3smp kernel and over the poast couple of
days, ext3 has been crashing. Here is the output:
Assertion failure in journal_commit_transaction() at commit.c:535:
"buffer_jdirty(bh)"
------------[ cut here ]------------
kernel BUG at commit.c:535!
invalid operand: 0000
loop autofs nfs lockd sunrpc 3c59x ns83820 ide-scsi ide-cd cdrom usb-uhci usbc
CPU: 0