Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Constructors are not called by CRT #6

Closed
dinuxbg opened this issue Jan 2, 2015 · 1 comment
Closed

Constructors are not called by CRT #6

dinuxbg opened this issue Jan 2, 2015 · 1 comment
Assignees

Comments

@dinuxbg
Copy link
Owner

dinuxbg commented Jan 2, 2015

Static/global constructors (attribute(constructor) in C) are not being called by CRT on start. Basic tests like gcc.dg/constructor-1.c fail.

@dinuxbg dinuxbg self-assigned this Jan 2, 2015
dinuxbg added a commit that referenced this issue Jan 3, 2015
- GCC: Fix sibling indirect calls by appointing all caller-saved
  registers (except R1) as available register for the sibling
  function pointer. Closes issue #4.
- Fix constructors/destructors invocation from CRT. Closes issue #6.
- NEWLIB: Add setjmp/longjmp implementation. Closes issue #5.
- NEWLIB: Add empty gettimeofday to fix linker errors in some
  GCC test cases.
- GCC: Minor updates to the testsuite to filter out test cases that
  are note compatible with the PRU.
- BINUTILS: Switch ELF e_machine to 0x90, to be compatible with TI
  toolchain.  Please be warned that we cannot yet intermix
  intermediate object files between GCC and TI toolchains.
- BINUTILS: Remove the unused IMM5 relocation.

Results from running the GCC C testsuite:
                 === gcc Summary ===
 # of expected passes            81298
 # of unexpected failures        43
 # of unexpected successes       1
 # of expected failures          97
 # of unsupported tests          1964

Signed-off-by: Dimitar Dimitrov <dinuxbg@gmail.com>
@dinuxbg
Copy link
Owner Author

dinuxbg commented Jan 3, 2015

Fixed in c11cca8

@dinuxbg dinuxbg closed this as completed Jan 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant