Displaying 20 results from an estimated 158 matches for "symtab".
2017 Dec 14
2
Help adding entries to .symtab
Hi everyone,
I am fairly new to LLVM, I'm working on a new backend.
I am trying to add information to a specific instruction using the .symtab
in the ELF format.
I've been searching through the LLVM source code trying to find a way to do
such a thing.
Can anyone help me with some directions or point me to some documents in
the matter.
Thanks, Liad.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <ht...
2017 Dec 14
2
Help adding entries to .symtab
Hey Paul,
first of all thank you for taking the time to answer me,
if I understand you correctly, I need to modify the instruction it self so
one of it's operands is a symbol, and then at MC layer handle that symbol
and add an entry to the symtab for that label?
What kind of symbol should I use doing such thing? external symbol or
MCSymbol?
I was trying to find where in the code during the MC layer I add entries to
the symtab, I'd really appreciate some directions in the area.
Let me give an example so my questions might be a bit more...
2017 Dec 14
0
Help adding entries to .symtab
...rent compilation units, but if they are in the same compilation then it should be pretty straightforward.
--paulr
From: Liad Mordekoviz [mailto:liad.mordekoviz at nextsilicon.com]
Sent: Thursday, December 14, 2017 1:00 PM
To: Robinson, Paul; llvm-dev
Subject: Re: [llvm-dev] Help adding entries to .symtab
Hey Paul,
first of all thank you for taking the time to answer me,
if I understand you correctly, I need to modify the instruction it self so one of it's operands is a symbol, and then at MC layer handle that symbol and add an entry to the symtab for that label?
What kind of symbol should I us...
2020 Nov 11
2
lld :: ELF/invalid/symtab-sh-info.s is flaky on Windows
lld/test/ELF/invalid/symtab-sh-info.s (check-lld-elf) is recently flaky on
Windows, e.g.
https://reviews.llvm.org/harbormaster/unit/view/192869/
http://45.33.8.238/win/27684/step_10.txt
It fails like every 3 or 4 builds. Could someone with a Windows machine
check what is going on? Is that due to output non-determinism (just...
2007 Aug 02
4
[PATCH][ELF] Correct space calculation for symtab when BSD_SYMTAB=yes
Hi!
If there is a string table for section headers, it also gets loaded.
Therefore take it into account in size calculation for kernel symtab.
Also there is no need to call elf_set_verbose() a second time
after elf_init() (First call happens within elf_init()).
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Keir: Can you also apply changeset 15672 and this patch
to Xen 3.1-stable, since these fixes an regression for Xe...
2015 May 15
2
[LLVMdev] RFC: ThinLTO Impementation Plan
On Fri, May 15, 2015 at 5:11 AM, Dave Bozier <seifsta at gmail.com> wrote:
> > Are you sure about the additional I/O? With native symtab, existing
> tools just need to read those, while plugin based approach needs to read
> bit code section to feedback symbols to the tool.
>
> The additional I/O will be quite big if you are going to emit the full
> symbol table. Looking at some of our real world links the symbol table...
2020 Nov 11
0
lld :: ELF/invalid/symtab-sh-info.s is flaky on Windows
...via llvm-dev <llvm-dev at lists.llvm.org>
Reply-To: Fāng-ruì Sòng <maskray at google.com>
Date: Tuesday, November 10, 2020 at 10:13 PM
To: LLVM Developers Mailing List <llvm-dev at lists.llvm.org>
Cc: Nico Weber <thakis at chromium.org>
Subject: [llvm-dev] lld :: ELF/invalid/symtab-sh-info.s is flaky on Windows
lld/test/ELF/invalid/symtab-sh-info.s (check-lld-elf) is recently flaky on Windows, e.g.
https://reviews.llvm.org/harbormaster/unit/view/192869/<https://reviews.llvm.org/harbormaster/unit/view/192869/>
http://45.33.8.238/win/27684/step_10.txt<http://45.33.8....
2003 Jan 07
1
klibc-0.72 released
This adds [f]getc() and fgets() for parsing config files. Probably hard
to avoid. Still trying to decide if I actually want to add system() or not.
-hpa
2005 Jun 04
3
[LLVMdev] "Value in symtab but has no slot number!!"
Hello,
I am receiving this error:
assert(Slot != -1 && "Value in symtab but has no slot number!!");
While trying to generate a module at run time using LLVM classes. Specifically with an instance of
StoreInst class. After I generate all the instructions, I try to save the Module to bytecode, but
I receive that error in the method 'outputSymbolTable'
Does...
2014 Aug 04
3
[LLVMdev] LLVM AllocaInst and StoreInst
Hi,
I am trying to write a simple interpreter.
I am trying to generate LLVM IR for assignment operation. The code for the
generation part looks like this
llvm::Value* codeGenSymTab(llvm::LLVMContext& context) {
> printf("\n CodeGen SymTab \n");
> Value *num = ConstantInt::get(Type::getInt64Ty(context), aTable.value,
> true);
> Value *alloc = new AllocaInst(IntegerType::get(context, 32),
> aTable.variableName,entry);
> StoreInst...
2020 Nov 04
3
Fragmented DWARF
....debug_str
> 12.6% 827Ki 0.0% 0 .debug_line
> 6.5% 428Ki 63.8% 428Ki .text
> 4.8% 317Ki 0.0% 0 .strtab
> 3.4% 223Ki 0.0% 0 .debug_ranges
> 2.0% 133Ki 19.8% 133Ki .eh_frame
> 1.7% 110Ki 0.0% 0 .symtab
> 1.2% 77.6Ki 0.0% 0 .debug_abbrev
>
> b)
>
> FILE SIZE VM SIZE
> -------------- --------------
> 40.2% 2.10Mi 0.0% 0 .debug_info
> 30.7% 1.60Mi 0.0% 0 .debug_str
> 8.0% 428Ki 63.8% 428Ki .text
>...
2005 Jun 04
0
[LLVMdev] "Value in symtab but has no slot number!!"
...the symbol table directly (don't do
that!) :) Maybe you have a labeled basic block that you never inserted
into the function?
Reid.
On Fri, 2005-06-03 at 22:17 -0700, Ricardo wrote:
> Hello,
>
> I am receiving this error:
>
> assert(Slot != -1 && "Value in symtab but has no slot number!!");
>
> While trying to generate a module at run time using LLVM classes. Specifically with an instance of
> StoreInst class. After I generate all the instructions, I try to save the Module to bytecode, but
> I receive that error in the method 'outputSy...
2016 Feb 08
3
[LLD] Is there any reason to add _GLOBAL_OFFSET_TABLE_ to .dynsym?
When LLD builds a shared library for x86_64 it puts
_GLOBAL_OFFSET_TABLE_ to the both .symtab and .dynsym and defines it
as a GLOBAL symbol. If later this shared library participates in
executable file linking and GNU BFD linked is used for that, this
linker shows an error:
/usr/bin/ld: a.out: hidden symbol `_GLOBAL_OFFSET_TABLE_' in
/usr/lib/x86_64-linux-gnu/crt1.o is referenced by DS...
2005 Jun 04
1
[LLVMdev] "Value in symtab but has no slot number!!"
...Maybe you have a labeled basic block that you never inserted
> into the function?
>
> Reid.
>
> On Fri, 2005-06-03 at 22:17 -0700, Ricardo wrote:
> > Hello,
> >
> > I am receiving this error:
> >
> > assert(Slot != -1 && "Value in symtab but has no slot number!!");
> >
> > While trying to generate a module at run time using LLVM classes. Specifically with an
> instance of
> > StoreInst class. After I generate all the instructions, I try to save the Module to bytecode,
> but
> > I receive that err...
2005 Feb 26
1
[LLVMdev] Patch to determine whether an LLVM archive file really is such
...sion 1.38
diff -u -r1.38 ArchiveReader.cpp
--- lib/Bytecode/Archive/ArchiveReader.cpp 29 Dec 2004 01:20:24 -0000
1.38
+++ lib/Bytecode/Archive/ArchiveReader.cpp 26 Feb 2005 20:05:12 -0000
@@ -503,3 +503,32 @@
}
}
}
+
+bool
+Archive::isBytecodeArchive()
+{
+ //Make sure the symTab has been loaded...
+ //in most cases this should have been done
+ //when the archive was constructed, but still,
+ //this is just in case.
+ if ( !symTab.size() )
+ loadSymbolTable();
+
+ //Now that we know it's been loaded, return true
+ //if it has a size
+ if ( symTab.size() ) retu...
2018 May 23
0
[PATCH v3 23/27] x86/modules: Adapt module loading for PIE support
...+/*
+ * Generate GOT entries for GOTPCREL relocations that do not exists in the
+ * kernel GOT. Based on arm64 module-plts implementation.
+ */
+int module_frob_arch_sections(Elf_Ehdr *ehdr, Elf_Shdr *sechdrs,
+ char *secstrings, struct module *mod)
+{
+ unsigned long gots = 0;
+ Elf_Shdr *symtab = NULL;
+ Elf64_Sym *syms = NULL;
+ char *strings, *name;
+ int i;
+
+ /*
+ * Find the empty .got section so we can expand it to store the PLT
+ * entries. Record the symtab address as well.
+ */
+ for (i = 0; i < ehdr->e_shnum; i++) {
+ if (!strcmp(secstrings + sechdrs[i].sh_name, "...
2011 May 13
7
[LLVMdev] [Patch] Let MC/ELF generate Thumb/Thumb-2 are properly
Hi,
We are trying to use clang as a drop-in replacement for the gcc come with
Android NDK. I found that MC/ELF doesn't not handle Thumb functions properly,
e.g., bit 0 of the function name in the .symtab is not set to 1, and some thumb
instructions are not generated correctly, e.g., the addresses for tBL/tBLX are
not calculated right.
With that attached patch, we can compile and run some (not all) Android
NDK samples without problem.
The attached initial patch
1. sets bit 0 of the function addres...
2011 May 13
0
[LLVMdev] [Patch] Let MC/ELF generate Thumb/Thumb-2 are properly
...istory in svn.
-Jim
On May 12, 2011, at 10:42 PM, Koan-Sin Tan wrote:
> Hi,
>
> We are trying to use clang as a drop-in replacement for the gcc come with
> Android NDK. I found that MC/ELF doesn't not handle Thumb functions properly,
> e.g., bit 0 of the function name in the .symtab is not set to 1, and some thumb
> instructions are not generated correctly, e.g., the addresses for tBL/tBLX are
> not calculated right.
>
> With that attached patch, we can compile and run some (not all) Android
> NDK samples without problem.
>
> The attached initial patch
&...
2015 May 28
5
[LLVMdev] Updated RFC: ThinLTO Implementation Plan
...nally, we also want to avoid doing
partial LTO/ThinLTO across files linked with “$LD -r” (i.e. the
resulting object file should still contain native object-wrapped
bitcode to enable ThinLTO at the full link step). I will send a
separate design document for these changes, including the format of
the symtab and function index/summary section, but the following is a
high-level motivation and overview.
Note that support for ThinLTO using bitcode can be added as a
follow-on under an option, so that bitcode-aware tools do not need to
use the wrapper. Under the bitcode-only option, the symbol table will...
2010 Aug 25
0
[LLVMdev] [cfe-dev] Debug information on multiple files
...s correctly in the
end.
I still haven't figured out which type of relocation is needed. All I
know is that GCC generates .rel.debug_info relocations that clang
doesn't:
clang:
** Section #6 '.rel.debug_info' (SHT_REL)
Size : 40 bytes (alignment 4)
Symbol table #22 '.symtab'
5 relocations applied to section #5 '.debug_info'
GCC:
** Section #7 '.rel.debug_info' (SHT_REL)
Size : 184 bytes (alignment 4)
Symbol table #22 '.symtab'
23 relocations applied to section #6 '.debug_info'
I'll dig deeper and see if I ca...