Discard .ARM.exidx section to make newlib 64bit (long long) printf support work. This may need to be fixed if using C++.

This commit is contained in:
Fergus Noble 2012-01-25 22:05:09 -08:00 committed by Uwe Hermann
parent 31b0466525
commit fae83c43c1
5 changed files with 25 additions and 0 deletions

View File

@ -55,6 +55,11 @@ SECTIONS
* You may need to fix this if you're using C++.
*/
/DISCARD/ : { *(.eh_frame) }
/*
* Another section used by C++ stuff, appears when using newlib with 64bit
* (long long) printf support - discard it for now.
*/
/DISCARD/ : { *(.ARM.exidx) }
end = .;
}

View File

@ -55,6 +55,11 @@ SECTIONS
* You may need to fix this if you're using C++.
*/
/DISCARD/ : { *(.eh_frame) }
/*
* Another section used by C++ stuff, appears when using newlib with 64bit
* (long long) printf support - discard it for now.
*/
/DISCARD/ : { *(.ARM.exidx) }
end = .;
}

View File

@ -59,6 +59,11 @@ SECTIONS
* You may need to fix this if you're using C++.
*/
/DISCARD/ : { *(.eh_frame) }
/*
* Another section used by C++ stuff, appears when using newlib with 64bit
* (long long) printf support - discard it for now.
*/
/DISCARD/ : { *(.ARM.exidx) }
. = ALIGN(4);
end = .;

View File

@ -59,6 +59,11 @@ SECTIONS
* You may need to fix this if you're using C++.
*/
/DISCARD/ : { *(.eh_frame) }
/*
* Another section used by C++ stuff, appears when using newlib with 64bit
* (long long) printf support - discard it for now.
*/
/DISCARD/ : { *(.ARM.exidx) }
. = ALIGN(4);
end = .;

View File

@ -59,6 +59,11 @@ SECTIONS
* You may need to fix this if you're using C++.
*/
/DISCARD/ : { *(.eh_frame) }
/*
* Another section used by C++ stuff, appears when using newlib with 64bit
* (long long) printf support - discard it for now.
*/
/DISCARD/ : { *(.ARM.exidx) }
. = ALIGN(4);
end = .;