Displaying 16 results from an estimated 16 matches for "n_type".
Did you mean:
d_type
2014 May 28
2
[LLVMdev] MCJIT Mach-O JIT debugging
Hello,
I'm finally getting back to getting JIT debugging work for MCJIT. This has
worked for ELF for a while in LLVM and support in lldb was added in January
(for ELF). I'm now trying to add support for Mach-O and would appreciate
some feedback (though I'm fighting my way through learning the format, I'm
still just a novice).
My current patchset for llvm is here:
2014 Jun 02
2
[LLVMdev] [lldb-dev] MCJIT Mach-O JIT debugging
...Mach-O could look at the above patch and give some feedback. If this
> approach looks sane in general, I'll finish up and post both the LLVM and
> the LLDB patch for formal review.
>
> The one thing you might want to look into is the n_value only needs to be
> updated "if ((N_TYPE & n_type) == N_SECT)" (the symbol is in a section and
> therefore is has a address value). Other symbols have values that usually
> don't need to be modified. You might also need to watch out for absolute
> symbols (if ((N_TYPE & n_type) == N_ABS)) as there are a few that...
2014 Jun 02
2
[LLVMdev] [lldb-dev] MCJIT Mach-O JIT debugging
...xperience with Mach-O could look at the above patch and give some feedback. If this approach looks sane in general, I'll finish up and post both the LLVM and the LLDB patch for formal review.
>
> The one thing you might want to look into is the n_value only needs to be updated "if ((N_TYPE & n_type) == N_SECT)" (the symbol is in a section and therefore is has a address value). Other symbols have values that usually don't need to be modified. You might also need to watch out for absolute symbols (if ((N_TYPE & n_type) == N_ABS)) as there are a few that sometimes don...
2006 Jan 03
1
Summary functions to dataframe
...utput to be converted to
a dataframe with one of the columns as the grouping variable. This seems
simple but my attempts with do.call("cbind") and rbind have not worked
so I have concluded I a missing something obvious. Any help is
appreciated.
Thanks,
Mike
areas <- structure (list(N_Type = structure(c(4, 1, 4, 1, 1, 4, 1, 4, 4,
1, 4, 1, 4, 1, 4, 1, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 4, 1,
4, 1, 4, 1, 4, 1, 4, 1, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1,
4, 1, 4, 4, 1, 4, 1, 2, 1, 2, 1, 4, 1, 4, 1, 4, 1, 4, 1, 1, 4,
1, 4, 1, 4, 1, 4, 4, 1, 4, 1, 2, 1, 2, 1, 1, 4, 1, 4, 4, 1, 4,
1, 4,...
2008 Apr 20
1
kvm_open: kvm_nlist: No such file or directory
...{
pageshift++;
pagesize >>= 1;
}
kvm_data = kvm_open(NULL, NULL, NULL, O_RDONLY, "kvm_open");
if (kvm_data == NULL) {
fprintf(stderr, "can't open kernel virtual memory");
exit(1);
}
kvm_nlist(kvm_data, nlst);
if (nlst[0].n_type == 0 || nlst[1].n_type == 0) {
fprintf(stderr, "error extracting symbols");
exit(1);
}
2006 Oct 17
0
[PATCH] misc compile fixes for tools on Solaris
...tf("%s: unknown data size %#x\n", prefix,
+ (unsigned int)note->n_descsz);
break;
}
}
@@ -301,7 +302,8 @@ int main(int argc, char **argv)
print_string_note("FEATURES", note);
break;
default:
- printf("unknown note type %#x\n", note->n_type);
+ printf("unknown note type %#x\n",
+ (unsigned int)note->n_type);
break;
}
}
diff --git a/tools/xenstat/xentop/Makefile b/tools/xenstat/xentop/Makefile
--- a/tools/xenstat/xentop/Makefile
+++ b/tools/xenstat/xentop/Makefile
@@ -25,7 +25,7 @@ sbindir=$(prefix...
2007 Dec 10
1
[git patch] m-i-t support, ipconfig fix
...AK and accesses it.
Signed-off-by: maximilian attems <max at stro.at>
diff --git a/usr/include/sys/elf32.h b/usr/include/sys/elf32.h
index e4df8ce..6da2ddb 100644
--- a/usr/include/sys/elf32.h
+++ b/usr/include/sys/elf32.h
@@ -110,4 +110,8 @@ typedef struct elf32_note {
Elf32_Word n_type; /* Content type */
} Elf32_Nhdr;
+/* How to extract and insert information held in the st_info field. */
+#define ELF32_ST_BIND(val) (((unsigned char) (val)) >> 4)
+#define ELF32_ST_TYPE(val) ((val) & 0xf)
+
#endif /* _SYS_ELF32_H */
diff --git a/usr/include/sys/elf64.h b/usr/i...
2018 Feb 16
0
ThinLTO and linkonce_odr + unnamed_addr
...ke there should be a way to work around that. Perhaps there's something
> we can change in ld64.
>
As far as I can tell, the "auto hide" property is independent of whether
the symbol is actually hidden (the former is N_WEAK_DEF|N_WEAK_REF in
n_desc, and the latter is N_PEXT in n_type). So perhaps what you can do is
change ld64 to recognize N_WEAK_DEF|N_WEAK_REF together with N_PEXT as
meaning "hidden and mergeable".
Peter
>
> > Steven
> >
> >> On Feb 9, 2018, at 2:00 PM, Steven Wu via llvm-dev <
> llvm-dev at lists.llvm.org> wrote:
&...
2007 Sep 22
3
[git patch] module-init-tools fixes
...AK and accesses it.
Signed-off-by: maximilian attems <max at stro.at>
diff --git a/usr/include/sys/elf32.h b/usr/include/sys/elf32.h
index e4df8ce..6da2ddb 100644
--- a/usr/include/sys/elf32.h
+++ b/usr/include/sys/elf32.h
@@ -110,4 +110,8 @@ typedef struct elf32_note {
Elf32_Word n_type; /* Content type */
} Elf32_Nhdr;
+/* How to extract and insert information held in the st_info field. */
+#define ELF32_ST_BIND(val) (((unsigned char) (val)) >> 4)
+#define ELF32_ST_TYPE(val) ((val) & 0xf)
+
#endif /* _SYS_ELF32_H */
diff --git a/usr/include/sys/elf64.h b/usr/i...
2003 Apr 23
3
top failure
...re on some machine running
4.7. It's so weird so I'd very unlikely notice it at all, but
thanks to top(1): when launched, instead of displaying some
useful figures it exits with an error: "top: nlist failed".
>From quick look it appears that kvm_nlist() returns NULL for
nlst[0].n_type. Strange, ignoring; next exit point is: "top:
kvm_read for _ccpu: Bad address" Something bad happens: kernel
virtual memory symbol table becomes unreadable, so kvm calls
fail... But system runs all right, has completed buildworld
today...
Source of the problem is objcopy(1), i.e. wiping...
2018 Feb 14
2
ThinLTO and linkonce_odr + unnamed_addr
> On Feb 14, 2018, at 09:55, Steven Wu via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>
> I did a bit more digging for the auto hide problem. Here is my finding that prevent us from doing this by default in GlobalOpts
>
> 1. When a symbol is linkonce_odr hidden unnamed_addr, it emits both '.private_extern' and '.weak_def_can_be_hidden' asm directives on
2007 Apr 18
1
[PATCH] Translate asm version of ELFNOTE macro into preprocessor macro
Hi,
I've come across some problems with the assembly version of the ELFNOTE
macro currently in -mm. (in
x86-put-note-sections-into-a-pt_note-segment-in-vmlinux.patch)
The first is that older gas does not support :varargs in .macro
definitions (in my testing 2.17 does while 2.15 does not, I don't know
when it became supported). The Changes file says binutils >= 2.12 so I
think we need
2007 Jun 20
0
Branch 'as' - 5 commits - libswfdec/swfdec_graphic_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_sprite_movie.c test/image
...mode 100644
index 0000000..92c98d7
--- /dev/null
+++ b/test/image/replace.c
@@ -0,0 +1,116 @@
+/* gcc `pkg-config --libs --cflags libming glib-2.0` replace.c -o replace && ./replace
+ */
+
+#include <ming.h>
+#include <glib.h>
+
+typedef enum {
+ SHAPE,
+ MOVIE,
+ BUTTON,
+ N_TYPES
+} Type;
+
+char *types[] = {
+ "shape",
+ "movie",
+ "button",
+};
+
+static SWFDisplayItem
+add_rectangle (SWFMovie movie, Type type, int r, int g, int b)
+{
+ SWFShape shape;
+ SWFFillStyle fill;
+ SWFDisplayItem item;
+
+ shape = newSWFShape ();
+ fill = S...
2018 Aug 23
2
How does LLDB locate the DWARF information stored inside MACH-O .o files produced by LLVM and LLD?
When I make a simple test program and call abort() and use LLDB to debug
it, it has address-to-line mapping. If I then delete the .o file and run
LLDB again, it loses the address-to-line mapping. So there must be DWARF
info, or otherwise address-to-line info in the .o file.
I'm parsing the MACH-O executable, which has a LC_SYMTAB entry, and one of
the entries is the file path of the .o file.
2008 Sep 12
4
Custom build kernel patch fails big time.
....family = pfkey_sadb_addr2xfrm_addr(addr, &x->sel.saddr);
x->sel.prefixlen_s = addr->sadb_address_prefixlen;
- }
+ } else
+ x->sel.family = x->props.family; /* Conservative */
if (ext_hdrs[SADB_X_EXT_NAT_T_TYPE-1]) {
struct sadb_x_nat_t_type* n_type;
@@ -1763,14 +1764,13 @@
if (!t->reqid && !(t->reqid = gen_reqid()))
return -ENOBUFS;
}
-
- /* addresses present only in tunnel mode */
- if (t->mode) {
- switch (xp->family) {
+/* addresses present in any mode */
+ {
+ struct so...
2007 Apr 18
5
[RFC] First (incomplete) cut of Xen paravirt binding
I've updated the patches at
http://ozlabs.org/~rusty/paravirt/?mf=33ba6c4fce13;path=/ to carve out
the basic shape of how I see all this fitting together.
These patches implement an initial set of Xen paravirt ops, as well as
adapting head.S to set up a Xen-specific entrypoint. The head.S code
does absolutely minimal setup, and then calls xen_start_kernel(). This
installs the Xen