search for: stb_weak

Displaying 10 results from an estimated 10 matches for "stb_weak".

2020 Nov 09
2
Targeting old glibc
No. A shared object is needed if it is linked in (1)--no-as-needed mode or (2) after --gc-sections, a symbol referenced by a live input section is defined by the shared object. You'll need to check whether a symbol is defined by libmvec.so.1 On Mon, Nov 9, 2020 at 9:57 AM Alexandre Bique <bique.alexandre at gmail.com> wrote: > > On Mon, Nov 9, 2020 at 6:52 PM Fāng-ruì Sòng
2007 Dec 10
1
[git patch] m-i-t support, ipconfig fix
...li %s\n", - filename, ret, moderror(errno)); - exit(1); - } - exit(0); -} commit 3b52c5b3b2ee035c4d72fc5d8fbe436115d3e3e6 Author: maximilian attems <max at stro.at> Date: Sat Sep 22 22:58:25 2007 +0200 [klibc] elf.h add support for st_info field module-init-tools uses STB_WEAK 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_...
2020 Nov 10
2
Targeting old glibc
...-sections, a symbol referenced by a live input > > section is defined by the shared object. > > A shared object is needed if it is linked in (1) --no-as-needed mode > or (2) after --gc-sections, a symbol referenced by a live input > section is defined by the shared object as non-STB_WEAK. > > > You'll need to check whether a symbol is defined by libmvec.so.1 > > > > On Mon, Nov 9, 2020 at 9:57 AM Alexandre Bique > > <bique.alexandre at gmail.com> wrote: > > > > > > On Mon, Nov 9, 2020 at 6:52 PM Fāng-ruì Sòng <maskray at goo...
2007 Sep 22
3
[git patch] module-init-tools fixes
...li %s\n", - filename, ret, moderror(errno)); - exit(1); - } - exit(0); -} commit 3b52c5b3b2ee035c4d72fc5d8fbe436115d3e3e6 Author: maximilian attems <max at stro.at> Date: Sat Sep 22 22:58:25 2007 +0200 [klibc] elf.h add support for st_info field module-init-tools uses STB_WEAK 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_...
2020 Nov 09
0
Targeting old glibc
...; mode or (2) after --gc-sections, a symbol referenced by a live input > section is defined by the shared object. A shared object is needed if it is linked in (1) --no-as-needed mode or (2) after --gc-sections, a symbol referenced by a live input section is defined by the shared object as non-STB_WEAK. > You'll need to check whether a symbol is defined by libmvec.so.1 > > On Mon, Nov 9, 2020 at 9:57 AM Alexandre Bique > <bique.alexandre at gmail.com> wrote: > > > > On Mon, Nov 9, 2020 at 6:52 PM Fāng-ruì Sòng <maskray at google.com> wrote: > > >...
2005 Jan 06
0
[PATCH] ELF headers
...held in the st_info field. */ + +#define ST_BIND(val) (((unsigned char) (val)) >> 4) +#define ST_TYPE(val) ((val) & 0xf) +#define ST_INFO(bind, type) (((bind) << 4) + ((type) & 0xf)) + +#define STB_LOCAL 0 /* local symbol */ +#define STB_GLOBAL 1 /* global symbol */ +#define STB_WEAK 2 /* weak symbol */ +#define STB_NUM 3 /* number of defined types. */ +#define STB_LOOS 10 /* start of OS-specific */ +#define STB_HIOS 12 /* end of OS-specific */ +#define STB_LOPROC 13 /* start of processor-specific */ +#define STB_HIPROC 15 /* end of processor-specific */ + +#define STT_NOTYPE...
2020 Nov 10
0
Targeting old glibc
...enced by a live input > > > section is defined by the shared object. > > > > A shared object is needed if it is linked in (1) --no-as-needed mode > > or (2) after --gc-sections, a symbol referenced by a live input > > section is defined by the shared object as non-STB_WEAK. > > > > > You'll need to check whether a symbol is defined by libmvec.so.1 > > > > > > On Mon, Nov 9, 2020 at 9:57 AM Alexandre Bique > > > <bique.alexandre at gmail.com> wrote: > > > > > > > > On Mon, Nov 9, 2020 at 6:52...
2005 May 23
3
module-init-tools ported to klibc
...license wise) thing? */ +#define ELF32_ST_TYPE(val) ((val) & 0xf) +#define ELF64_ST_TYPE(val) ELF32_ST_TYPE (val) +#define ELF32_ST_BIND(val) (((unsigned char) (val)) >> 4) +#define ELF64_ST_BIND(val) ELF32_ST_BIND (val) +#define STB_WEAK 2 /* Weak symbol */ + #include <sys/elf32.h> #include <sys/elf64.h>
2012 Jul 16
5
[PATCH 0/5] Deleting __intcall() from Syslinux
From: Matt Fleming <matt.fleming at intel.com> Since we can't use __intcall() for EFI, and since we can now have the ELF module code resolve all our symbols at runtime, we should delete as many references to __intcall() as possible and just access the symbols directly. The most interesting patch is the support for weak symbols. We need to be able to reference derivative-specific
2012 Aug 14
1
[GIT PULL] elflink fixes
...har *name) +FILE *findpath(char *name) { char path[FILENAME_MAX]; FILE *f; @@ -321,7 +321,7 @@ int check_symbols(struct elf_module *module) crt_name = module->str_table + crt_sym->st_name; strong_count = 0; - weak_count = 0; + weak_count = (ELF32_ST_BIND(crt_sym->st_info) == STB_WEAK); for_each_module(crt_module) { @@ -345,6 +345,14 @@ int check_symbols(struct elf_module *module) if (crt_sym->st_shndx == SHN_UNDEF) { // We have an undefined symbol + // + // We use the weak_count to differentiate + // between Syslinux-derivative-specific + // functio...