Re: [PATCH 1/4] x86/boot: Add .text.startup to setup.ld

2020-05-24 Thread Fangrui Song
On 2020-05-24, Arvind Sankar wrote: On Sun, May 24, 2020 at 03:13:26PM -0700, Fangrui Song wrote: On 2020-05-24, Arvind Sankar wrote: >gcc puts the main function into .text.startup when compiled with -Os (or >-O2). This results in arch/x86/boot/main.c having a .text.startup >section which is cur

Re: [PATCH 1/4] x86/boot: Add .text.startup to setup.ld

2020-05-24 Thread Arvind Sankar
On Sun, May 24, 2020 at 03:13:26PM -0700, Fangrui Song wrote: > On 2020-05-24, Arvind Sankar wrote: > >gcc puts the main function into .text.startup when compiled with -Os (or > >-O2). This results in arch/x86/boot/main.c having a .text.startup > >section which is currently not included explicitly

Re: [PATCH 1/4] x86/boot: Add .text.startup to setup.ld

2020-05-24 Thread Brian Gerst
On Sun, May 24, 2020 at 5:32 PM Arvind Sankar wrote: > > gcc puts the main function into .text.startup when compiled with -Os (or > -O2). This results in arch/x86/boot/main.c having a .text.startup > section which is currently not included explicitly in the linker script > setup.ld in the same dir

Re: [PATCH 1/4] x86/boot: Add .text.startup to setup.ld

2020-05-24 Thread Fangrui Song
On 2020-05-24, Arvind Sankar wrote: gcc puts the main function into .text.startup when compiled with -Os (or -O2). This results in arch/x86/boot/main.c having a .text.startup section which is currently not included explicitly in the linker script setup.ld in the same directory. The BFD linker pl

[PATCH 1/4] x86/boot: Add .text.startup to setup.ld

2020-05-24 Thread Arvind Sankar
gcc puts the main function into .text.startup when compiled with -Os (or -O2). This results in arch/x86/boot/main.c having a .text.startup section which is currently not included explicitly in the linker script setup.ld in the same directory. The BFD linker places this orphan section immediately a