* m68knommu and vmlinux.lds.h RODATA
@ 2007-04-09 20:53 Mathieu Desnoyers
2007-04-10 6:03 ` Greg Ungerer
0 siblings, 1 reply; 2+ messages in thread
From: Mathieu Desnoyers @ 2007-04-09 20:53 UTC (permalink / raw)
To: gerg, uclinux-dev, linux-kernel; +Cc: Andrew Morton
Hi Greg,
Is there any particular reason why m68knommu does not use the RODATA
linker script macro defined in asm-generic/vmlinux.lds.h ? It makes it
rather inconvenient to add new RO sections to the kernel.
Regards,
Mathieu
--
Mathieu Desnoyers
Computer Engineering Ph.D. Student, Ecole Polytechnique de Montreal
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: m68knommu and vmlinux.lds.h RODATA
2007-04-09 20:53 m68knommu and vmlinux.lds.h RODATA Mathieu Desnoyers
@ 2007-04-10 6:03 ` Greg Ungerer
0 siblings, 0 replies; 2+ messages in thread
From: Greg Ungerer @ 2007-04-10 6:03 UTC (permalink / raw)
To: Mathieu Desnoyers; +Cc: uclinux-dev, linux-kernel, Andrew Morton
Hi Mathieu,
Mathieu Desnoyers wrote:
> Is there any particular reason why m68knommu does not use the RODATA
> linker script macro defined in asm-generic/vmlinux.lds.h ? It makes it
> rather inconvenient to add new RO sections to the kernel.
This is going back some way, but this was the original commit message:
# --------------------------------------------
# 03/02/18 gerg@snapgear.com 1.984
# [PATCH] use local RODATA setup for m68knommu linker script
#
# This patch removes the use of the common RODATA define in the m68knommu
# architecture. It cannot be used the same way for the m68knommu target.
# For starters just inserting it here is syntactically wrong. All the read
# only parts are grouped into a single "text" segment, and this is the root
# cause of the problem. So for the m68knommu arch it makes sense to not
# use the generic RODATA setup, but to list them locally.
The problem looks to be the same today.
The current vmlinux.lds.S for m68knommu directs sections out to ROM
or RAM depending on whether we are building to be run from some type
of read only memory (ROM, FLASH, etc) or RAM. The RODATA macro as it
stands doesn't allow that.
Regards
Greg
------------------------------------------------------------------------
Greg Ungerer -- Chief Software Dude EMAIL: gerg@snapgear.com
Secure Computing Corporation PHONE: +61 7 3435 2888
825 Stanley St, FAX: +61 7 3891 3630
Woolloongabba, QLD, 4102, Australia WEB: http://www.SnapGear.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-04-10 6:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-09 20:53 m68knommu and vmlinux.lds.h RODATA Mathieu Desnoyers
2007-04-10 6:03 ` Greg Ungerer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox