|
Last change
on this file since 1133 was 596, checked in by bird, 22 years ago |
|
WEAKBSS
|
-
Property cvs2svn:cvs-rev
set to
1.2
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
-
Property svn:keywords
set to
Author Date Id Revision
|
|
File size:
323 bytes
|
| Line | |
|---|
| 1 | #define WEAKBSS
|
|---|
| 2 | /* must be compiled with -fno-common! */
|
|---|
| 3 |
|
|---|
| 4 | #ifdef WEAKBSS
|
|---|
| 5 | #pragma weak weakbss
|
|---|
| 6 | int weakbss;
|
|---|
| 7 | #endif
|
|---|
| 8 |
|
|---|
| 9 | int weakdata = 1;
|
|---|
| 10 | #pragma weak weakdata
|
|---|
| 11 |
|
|---|
| 12 | #pragma weak weaktext
|
|---|
| 13 | int weaktext(void)
|
|---|
| 14 | {
|
|---|
| 15 | return -1;
|
|---|
| 16 | }
|
|---|
| 17 |
|
|---|
| 18 | int main()
|
|---|
| 19 | {
|
|---|
| 20 | return weaktext()
|
|---|
| 21 | #ifdef WEAKBSS
|
|---|
| 22 | + weakbss
|
|---|
| 23 | #endif
|
|---|
| 24 | + weakdata;
|
|---|
| 25 | }
|
|---|
| 26 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.