This is the mail archive of the ecos-bugs@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug 1001142] User defined linker sections.


Please do not reply to this email. Use the web interface provided at:
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001142

--- Comment #22 from Ilija Kocho <ilijak@siva.com.mk> 2011-02-15 15:00:38 GMT ---
(In reply to comment #16)

> About the attached use/test case:
> 
> Due to prescan we need proxies. In the submitted example I am using John's
> names CYG_USER_SECTION_XXX() for proxies since they are supposed to appear in
> user code. Concatenation macros are named __CYG_USER_SECTION_XXX() respectively
> and they are also used by USER_SECTION() (see NOTE below.)
> 
> The example includes both correct and wrong code (with respect to prescan)
> selectable by TRY_RIGHT switch.
> This example should be combined with cortexm_ld_1.diff, the patch that I am
> posting in following attachment.
> 
> NOTE: __CYG_USER_SECTION_XXX() macros, for this example also appear (as a
> copypaste) in cortexm.ld since I couldn't locate a suitable header.

Sometimes the solution is doing nothing or next to nothing.

Since method for production of section boundaries is fixed, straight-forward
and common (for all sections): __<section_name>_start __<section_name>_end, it
could be documented (possibly within
http://ecos.sourceware.org/docs-latest/ref/hal-linker-scripts.html ) with some
code snippet for zeroing of section.

I guess USER_SECTION() would need a proper documentation anyway.

-- 
Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]