This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc 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 libc/17601] __start function can not reach __libc_start_main in different region


https://sourceware.org/bugzilla/show_bug.cgi?id=17601

--- Comment #1 from Petar Jovanovic <mips32r2 at gmail dot com> ---
Created attachment 7936
  --> https://sourceware.org/bugzilla/attachment.cgi?id=7936&action=edit
patch for start.S

Potential fix for start.S is attached.

This would likely need to be followed with similar change in
gcc/config/mips/mips.h
for CRT_CALL_STATIC_FUNCTION(SECTION_OP, FUNC) macro

i.e. replace use of 
jal " USER_LABEL_PREFIX #FUNC "\n\

with
la $25, " USER_LABEL_PREFIX #FUNC "\n\
jalr $25\n\

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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