lkml.org 
[lkml]   [2010]   [Aug]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/4] module linker script: coalesce function and data sections
On 29.7.2010 01:47, Denys Vlasenko wrote:
> SECTIONS {
> +
> + /* Coalesce sections produced by gcc -ffunction-sections */
> + .text 0 : AT(0) { *(.text .text.[A-Za-z0-9_$^]*) }
> +
> + /* Coalesce sections produced by gcc -fdata-sections */
> + .rodata 0 : AT(0) { *(.rodata .rodata.[A-Za-z0-9_$^]*) }
> + .data 0 : AT(0) { *(.data .data.[A-Za-z0-9_$^]*) }
> + .bss 0 : AT(0) { *(.bss .bss.[A-Za-z0-9_$^]*) }
> +
> /DISCARD/ : { *(.discard) }
> }

I'm now getting

ld:/home/mmarek/linux-2.6/scripts/module-common.lds:23: ignoring invalid
character `^' in script
ld:/home/mmarek/linux-2.6/scripts/module-common.lds:26: ignoring invalid
character `^' in script
ld:/home/mmarek/linux-2.6/scripts/module-common.lds:27: ignoring invalid
character `^' in script
ld:/home/mmarek/linux-2.6/scripts/module-common.lds:28: ignoring invalid
character `^' in script

when linking modules and a similar warning when linking vmlinux (caused
by the next patch in series). I tried writing the carets as \^, but that
doesn't help at all...

$ ld --version
GNU ld (GNU Binutils; openSUSE Factory) 2.20.0.20100122-7

Michal


\
 
 \ /
  Last update: 2010-08-03 15:51    [W:0.076 / U:0.144 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site