Re: Buggy /usr/ccs/bin/ld on Solaris 8



"Henrik Goldman" <henrik_goldman@xxxxxxxxxxxx> writes:


The "kernel trap" is very slow and memcpy is faster and will make your
code
portable.


I understand that and it makes sense but right now I'm stuck with alot of
code that could take days to fix. Unfortunatly it's not a 2 minute patch in
my case since the code in question will also affect lots of other platforms
that I support. This requires alot of testing.

__asm__("ta 6");

at the beginning of main will workaround all your issues, albeit slowly.

I have a file which gets read into malloced memory. Then do a trick like:

if (((struct a*) m_ptr)->some_member == MAGIC_VAL)

Ah, you have a file based data structure. This too will explode.

Code like above probably will not work anymore, right? So in this case I
need to have extra temporary variables to extract the values in question. In
this case the value would be a 32 bit integer stored in an endian neutral
way, but it could also be any other primitive datatype or even an array. I
am not really sure how to go through all these cases since it takes quite a
bit of time to *think* about if a specific piece of code could be a problem
or not.

Quite; or you could have functions which extract integers at certain
locations.

Casper
--
Expressed in this posting are my opinions. They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.
.



Relevant Pages

  • Re: How can you limit users to only see their processes ?
    ... And I sent the author a patch that checks the supplementary ... the system call interface is not really supported for "add-ons"; ... Expressed in this posting are my opinions. ... to opinions held by my employer, Sun Microsystems. ...
    (comp.unix.solaris)
  • Re: looking for 113796-02
    ... you either need a patch with 4750863 fixed or one without 4722127 ... Casper ... Expressed in this posting are my opinions. ... to opinions held by my employer, Sun Microsystems. ...
    (comp.unix.solaris)
  • Re: all that stuff in /var/sadm
    ... Deleting the patch database is considered Bad ... You can safely delete the backups from the patched files. ... Expressed in this posting are my opinions. ... to opinions held by my employer, Sun Microsystems. ...
    (comp.sys.sun.admin)
  • Re: FSC FUD about UltraSPARC bugs?
    ... >only true for the patch that fixes the prefetch bug of the Non-Cu versions ... Perhaps he can substantiate by specifying the patch in question? ... Expressed in this posting are my opinions. ... to opinions held by my employer, Sun Microsystems. ...
    (comp.sys.sun.hardware)
  • Re: Can anyone help? :Sparc 5 Solaris 1.1/SunOS 4.1.3
    ... Do you know what Rich Teer means by, ... able proper etiquette I will not bother this newsgroup until I have honed my ... > to opinions held by my employer, Sun Microsystems. ...
    (comp.unix.solaris)