move .rodata to .text

Dick Ginther dickg@develcon.com
Thu Nov 18 06:00:00 GMT 1999


Hi,
	I want to move all of my table/string information from
	the .rodata section into the .text section because I
	need to have this information in the FLASH.

	I have tried the following linker script, but it doesn't
	do the job:

	SECTIONS {
		.text : { *(.text) }
		.text : { *(.rodata) }
	}

	Is there any other way to accomplish this (short of editing
	each file and changing .rodata to .txt)?



-- 
Dick Ginther                   E-mail: dick.ginther@develcon.com
Develcon Electronics Ltd.      Web:    http://www.develcon.com
856 - 51st Street East         Phone:  306 931-1339
Saskatoon, SK  Canada S7K 5C7  Fax:    306 931-1352


More information about the Gcc-help mailing list