search for: __ctors_start

Displaying 20 results from an estimated 25 matches for "__ctors_start".

2014 Jun 09
3
How to use --once? Does it work?
> On 06/08/2014 02:58 PM, Ady wrote: > >> > >> To be clear, I am not saying there is no bug - there might be. > >> > > > > I performed the following test with several versions of Syslinux: > > > > 1_ Execute: > > 'extlinux --once=non_default_label --install /mnt/sda1' ; > > 2_ In first reboot, the
2014 Jun 09
4
How to use --once? Does it work?
...gt; Info: Symbol dev_null_r is defined more than once > Info: Symbol __ashldi3 is defined more than once > Info: Symbol __udivdi3 is defined more than once > Info: Symbol __syslinux_adv_size is defined more than once > Info: Symbol __ctors_end is defined more than once > Info: Symbol __ctors_start is defined more than once > And, indeed, so it was. Someone wants to help chase down the reasons for the additional duplicate symbols? -hpa
2015 Sep 29
0
[PATCH 2/2] bios: Don't try to guess the sections alignment
...) { + .rodata : AT(ADDR(.rodata) + __vma_to_lma) { __rodata_start = .; *(.rodata) *(.rodata.*) __rodata_end = .; } - . = ALIGN(4); - - __ctors_vma = .; - __ctors_lma = __ctors_vma + __text_lma - __text_vma; - .ctors : AT(__ctors_lma) { + .ctors : AT(ADDR(.ctors) + __vma_to_lma) { __ctors_start = .; KEEP (*(SORT(.ctors.*))) KEEP (*(.ctors)) __ctors_end = .; } - __dtors_vma = .; - __dtors_lma = __dtors_vma + __text_lma - __text_vma; - .dtors : AT(__dtors_lma) { + .dtors : AT(ADDR(.dtors) + __vma_to_lma) { __dtors_start = .; KEEP (*(SORT(.dtors.*))) KEEP (*(.dtors))...
2015 Oct 05
0
[PATCH 2/4] Remove unused linker scripts
...__text_lma - __text_vma); - .rodata : AT(__rodata_lma) { - HIDDEN(__rodata_start = .); - *(.rodata) - *(.rodata.*) - HIDDEN(__rodata_end = .); - } - - . = ALIGN(4); - - HIDDEN(__ctors_vma = .); - HIDDEN(__ctors_lma = __ctors_vma + __text_lma - __text_vma); - .ctors : AT(__ctors_lma) { - HIDDEN(__ctors_start = .); - KEEP (*(SORT(.preinit_array*))) - KEEP (*(SORT(.init_array*))) - KEEP (*(SORT(.ctors*))) - HIDDEN(__ctors_end = .); - } - - HIDDEN(__dtors_vma = .); - HIDDEN(__dtors_lma = __dtors_vma + __text_lma - __text_vma); - .dtors : AT(__dtors_lma) { - HIDDEN(__dtors_start = .); - KEEP (*(SORT(...
2015 Sep 29
10
[PATCH 0/2] Fixes for gcc 5
From: Sylvain Gault <sylvain.gault at gmail.com> TL;DR: The section aligment in linker scripts messed-up the memory mapping needed for the compression / decompression to work. The bug with gcc 5 is not trivial, I'll do my best to explain it here. Basically, there are two memory mappings of the code. One in "virtual memory", and one in "load memory". The one in
2015 Oct 05
7
[PATCH 0/4] Improve linker scripts
From: Sylvain Gault <sylvain.gault at gmail.com> These patches basically remove unused linker scripts and port a change that was made to an unused script. Those are to be applied on top of the gcc 5 bug fixes as they would conflict otherwise. Sylvain Gault (4): diag/mbr: fix dependency to linker script Remove unused linker scripts core: Make symbols defined in linker script HIDDEN
2017 Oct 12
2
[PATCH v1 15/27] compiler: Option to default to hidden symbols
...xt[], _etext[]; > extern char _data[], _sdata[], _edata[]; > extern char __bss_start[], __bss_stop[]; > @@ -46,6 +49,9 @@ extern char __softirqentry_text_start[], __softirqentry_text_end[]; > > /* Start and end of .ctors section - used for constructor calls. */ > extern char __ctors_start[], __ctors_end[]; > +#ifdef CONFIG_DEFAULT_HIDDEN > +#pragma GCC visibility pop > +#endif > > extern __visible const void __nosave_begin, __nosave_end; > > diff --git a/include/linux/compiler.h b/include/linux/compiler.h > index e95a2631e545..6997716f73bf 100644 > --...
2017 Oct 12
2
[PATCH v1 15/27] compiler: Option to default to hidden symbols
...xt[], _etext[]; > extern char _data[], _sdata[], _edata[]; > extern char __bss_start[], __bss_stop[]; > @@ -46,6 +49,9 @@ extern char __softirqentry_text_start[], __softirqentry_text_end[]; > > /* Start and end of .ctors section - used for constructor calls. */ > extern char __ctors_start[], __ctors_end[]; > +#ifdef CONFIG_DEFAULT_HIDDEN > +#pragma GCC visibility pop > +#endif > > extern __visible const void __nosave_begin, __nosave_end; > > diff --git a/include/linux/compiler.h b/include/linux/compiler.h > index e95a2631e545..6997716f73bf 100644 > --...
2006 May 01
1
Newbie to Com32: libcom32.a not linking
...ecutable. I'm using syslinux-3.11, I copied the libcom32.a library into my directory and here's the output of my attmept: #ld com32io.o dtimenu.o syslnx.o tui.o --library-path=./ -lcom32 .//libcom32.a(entry.o)(.init+0x42): In function `_start': sys/entry.S:68: undefined reference to `__ctors_start' .//libcom32.a(entry.o)(.init+0x48):sys/entry.S:70: undefined reference to `__ctors_end' .//libcom32.a(exit.o)(.text+0x2): In function `_exit': sys/exit.S:14: undefined reference to `__dtors_start' .//libcom32.a(exit.o)(.text+0x8):sys/exit.S:16: undefined reference to `__dtors_end...
2014 Jun 09
0
How to use --once? Does it work?
...rt is defined more than once Info: Symbol dev_null_r is defined more than once Info: Symbol __ashldi3 is defined more than once Info: Symbol __udivdi3 is defined more than once Info: Symbol __syslinux_adv_size is defined more than once Info: Symbol __ctors_end is defined more than once Info: Symbol __ctors_start is defined more than once -hpa
2014 Jun 10
0
How to use --once? Does it work?
..._r is defined more than once > > Info: Symbol __ashldi3 is defined more than once > > Info: Symbol __udivdi3 is defined more than once > > Info: Symbol __syslinux_adv_size is defined more than once > > Info: Symbol __ctors_end is defined more than once > > Info: Symbol __ctors_start is defined more than once > > > > And, indeed, so it was. Someone wants to help chase down the reasons > for the additional duplicate symbols? > > -hpa > Correct me when I wrong, but I think it is meanwhile fixed in http://git.zytor.com/?p=syslinux/syslinux.git;a=com...
2012 Nov 01
1
[PATCH] com32: Include .init_array section in .ctors in linker script
...b/elf32.ld @@ -75,17 +75,6 @@ SECTIONS { KEEP (*(.preinit_array)) } - .init_array : - { - KEEP (*(SORT(.init_array.*))) - KEEP (*(.init_array)) - } - .fini_array : - { - KEEP (*(.fini_array)) - KEEP (*(SORT(.fini_array.*))) - } - .ctors : { __ctors_start = .; @@ -93,6 +82,8 @@ SECTIONS KEEP (*(.ctors)) KEEP (*(.ctors_modinit)) KEEP (*(.ctors_modmain)) + KEEP (*(SORT(.init_array.*))) + KEEP (*(.init_array)) __ctors_end = .; } @@ -102,6 +93,8 @@ SECTIONS KEEP (*(SORT(.dtors.*))) KEEP (*(.dtors)) KEEP (*(...
2017 Oct 18
0
[PATCH v1 15/27] compiler: Option to default to hidden symbols
...t; extern char _data[], _sdata[], _edata[]; >> extern char __bss_start[], __bss_stop[]; >> @@ -46,6 +49,9 @@ extern char __softirqentry_text_start[], __softirqentry_text_end[]; >> >> /* Start and end of .ctors section - used for constructor calls. */ >> extern char __ctors_start[], __ctors_end[]; >> +#ifdef CONFIG_DEFAULT_HIDDEN >> +#pragma GCC visibility pop >> +#endif >> >> extern __visible const void __nosave_begin, __nosave_end; >> >> diff --git a/include/linux/compiler.h b/include/linux/compiler.h >> index e95a2631e545....
2017 Oct 11
0
[PATCH v1 15/27] compiler: Option to default to hidden symbols
...dif extern char _text[], _stext[], _etext[]; extern char _data[], _sdata[], _edata[]; extern char __bss_start[], __bss_stop[]; @@ -46,6 +49,9 @@ extern char __softirqentry_text_start[], __softirqentry_text_end[]; /* Start and end of .ctors section - used for constructor calls. */ extern char __ctors_start[], __ctors_end[]; +#ifdef CONFIG_DEFAULT_HIDDEN +#pragma GCC visibility pop +#endif extern __visible const void __nosave_begin, __nosave_end; diff --git a/include/linux/compiler.h b/include/linux/compiler.h index e95a2631e545..6997716f73bf 100644 --- a/include/linux/compiler.h +++ b/include/li...
2012 Apr 17
2
[GIT PULL] elflink warning fixes and auto extension support
...msg_setbg(char data) diff --git a/core/elflink/load_env32.c b/core/elflink/load_env32.c index 28bc70c..b15cdbb 100644 --- a/core/elflink/load_env32.c +++ b/core/elflink/load_env32.c @@ -24,9 +24,6 @@ #define LDLINUX "ldlinux.c32" -typedef void (*constructor_t) (void); -constructor_t __ctors_start[], __ctors_end[]; - extern char __dynstr_start[]; extern char __dynstr_len[], __dynsym_len[]; extern char __dynsym_start[]; @@ -62,15 +59,6 @@ void init_module_subsystem(struct elf_module *module) list_add(&module->list, &modules_head); } -/* call_constr: initializes sme thing...
2012 Nov 02
10
[PATCH 0/9] elflink fixes
From: Matt Fleming <matt.fleming at intel.com> Here are the patches that I've got queued up based on the very helpful feedback I received from people testing Syslinux 5.00-pre9. Unless anyone has any concerns these will make it into Syslinux 5.00-pre10. Matt Fleming (9): pxe: Don't call open_config() from the pxe core ldlinux: Print a warning if no config file is found
2012 Mar 23
19
[PATCH 00/19][elflink] Improve compatibility with 4.x
From: Matt Fleming <matt.fleming at intel.com> The following patch series is available at, git://git.zytor.com/users/mfleming/syslinux.git elflink All patches are against the 'elflink' branch. This series fixes a few serious bugs and some behavioural incompatibilities with the 4.x series. Matt Fleming (19): ldlinux: Initialise 'p' before using it. ldlinux: Parse
2017 Oct 11
32
[PATCH v1 00/27] x86: PIE support and option to extend KASLR randomization
Changes: - patch v1: - Simplify ftrace implementation. - Use gcc mstack-protector-guard-reg=%gs with PIE when possible. - rfc v3: - Use --emit-relocs instead of -pie to reduce dynamic relocation space on mapped memory. It also simplifies the relocation process. - Move the start the module section next to the kernel. Remove the need for -mcmodel=large on modules. Extends
2017 Oct 11
32
[PATCH v1 00/27] x86: PIE support and option to extend KASLR randomization
Changes: - patch v1: - Simplify ftrace implementation. - Use gcc mstack-protector-guard-reg=%gs with PIE when possible. - rfc v3: - Use --emit-relocs instead of -pie to reduce dynamic relocation space on mapped memory. It also simplifies the relocation process. - Move the start the module section next to the kernel. Remove the need for -mcmodel=large on modules. Extends
2018 Mar 13
32
[PATCH v2 00/27] x86: PIE support and option to extend KASLR randomization
Changes: - patch v2: - Adapt patch to work post KPTI and compiler changes - Redo all performance testing with latest configs and compilers - Simplify mov macro on PIE (MOVABS now) - Reduce GOT footprint - patch v1: - Simplify ftrace implementation. - Use gcc mstack-protector-guard-reg=%gs with PIE when possible. - rfc v3: - Use --emit-relocs instead of -pie to reduce