ChangeLog-9697 252 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735
  1. Tue Dec 30 12:45:18 1997 Ian Lance Taylor <ian@cygnus.com>
  2. * elf32-sparc.c (elf32_sparc_check_relocs): If -Bsymbolic, don't
  3. allocate space for a PC relative reloc against a symbol which is
  4. defined in a regular file.
  5. (elf32_sparc_relocate_section): If -Bsymbolic, don't copy a PC
  6. relative reloc against a symbol which is defined in a regular
  7. file.
  8. Mon Dec 29 18:02:28 1997 Ian Lance Taylor <ian@cygnus.com>
  9. From Jonathan Stone <jonathan@DSG.Stanford.EDU>:
  10. * config.bfd (mips-dec-netbsd*): Add ECOFF vectors to
  11. targ_selvecs.
  12. (mips*el-*-netbsd*): Like mips-dec-netbsd*.
  13. (mips*-*-netbsd*): New target.
  14. Mon Dec 29 17:13:28 1997 H.J. Lu (hjl@gnu.org)
  15. * elflink.h (elf_link_assign_sym_version): Change error message
  16. from "undefined version name" to "undefined versioned symbol
  17. name".
  18. Mon Dec 29 11:41:16 1997 Nick Clifton <nickc@cygnus.com>
  19. * coff-arm.c (coff_arm_relocate_section): Fix typo from previous
  20. delta.
  21. Tue Dec 23 17:01:10 1997 Ian Lance Taylor <ian@cygnus.com>
  22. * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Declare.
  23. * libbfd.h: Rebuild.
  24. * peicode.h (coff_swap_scnhdr_out): Set .reloc section to be
  25. shared. Set stab* sections to be shared and read. Set .rsrc
  26. section to be read and shared.
  27. Mon Dec 22 13:20:57 1997 Ian Lance Taylor <ian@cygnus.com>
  28. * Makefile.am: Rebuild dependencies.
  29. (ALL_MACHINES_CFILES): Add dwarf2.lo.
  30. (ALL_MACHINES_CFILES): Add dwarf2.c.
  31. * Makefile.in: Rebuild.
  32. * coff-arm.c: Don't include obstack.h.
  33. Mon Dec 22 13:04:33 1997 Joel Sherrill <joel@oarcorp.com>
  34. * config.bfd (i[3456]86*-go32-rtems*): Fix to be the same as
  35. i[3456]86-go32.
  36. Thu Dec 18 16:01:25 1997 Doug Evans <devans@canuck.cygnus.com>
  37. * configure: Regenerate to get @SHELL@ substituted.
  38. Wed Dec 17 09:45:09 1997 Nick Clifton <nickc@cygnus.com>
  39. * coff-arm.c (coff_arm_relocate_section): Only look at section
  40. owner if there is one.
  41. * elf.c (assign_file_positions_for_segments): Fail if there is not
  42. enough room for the program headers.
  43. Tue Dec 16 08:09:56 1997 Gavin Koch <gavin@cygnus.com>
  44. * elf.c (_bfd_elf_find_nearest_line): Call
  45. _bfd_dwarf2_find_nearest_line first.
  46. * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Same.
  47. * dwarf2.c: New file; implement _bfd_dwarf2_find_nearest_line.
  48. Mon Dec 15 16:08:52 1997 Nick Clifton <nickc@cygnus.com>
  49. * archures.c: Add bfd_mach_m32r.
  50. Mon Dec 15 16:11:22 1997 Fred Fish <fnf@cygnus.com>
  51. * coffcode.h (ALIGN_SECTIONS_IN_FILE): Define if I960 not defined.
  52. (coff_compute_section_file_positions): Use ALIGN_SECTIONS_IN_FILE
  53. to decide when to align the file sections for paging.
  54. * coffcode.h (ALIGN_SECTIONS_IN_FILE): Undefine for TIC80COFF.
  55. Mon Dec 15 15:01:15 1997 Nick Clifton <nickc@cygnus.com>
  56. * elf32-m32r.c (m32r_elf_object_p): New Function.
  57. (m32r_elf_final_write_processing): New Function.
  58. (m32r_elf_set_private_flags): New Function.
  59. (m32r_elf_copy_private_bfd_data): New Function.
  60. (m32r_elf_merge_private_bfd_data): New Function.
  61. (m32r_elf_print_private_bfd_data): New Function.
  62. (elf_backend_object_p): Point to m32r_object_p.
  63. (elf_backend_final_write_processing): Point to
  64. m32r_elf_final_write_processing.
  65. (bfd_elf32_bfd_copy_private_bfd_data): Point to
  66. m32r_elf_copy_private_bfd_data.
  67. (bfd_elf32_bfd_merge_private_bfd_data): Point to
  68. m32r_elf_merge_private_bfd_data.
  69. (bfd_elf32_bfd_set_private_flags): Point to
  70. m32r_elf_set_private_bfd_data.
  71. (bfd_elf32_bfd_print_private_bfd_data): Point to
  72. m32r_elf_print_private_bfd_data.
  73. * bfd-in2.h (bfd_mach_m32r): Add identifier for M32R architecture
  74. machines.
  75. Fri Dec 12 11:30:28 1997 Brendan Kehoe <brendan@canuck.cygnus.com>
  76. * configure: Only build libbfd shared if --enable-shared's value
  77. was `yes', or was set to `*bfd*'.
  78. * aclocal.m4: Likewise.
  79. * NOTE: this really needs to be fixed in libtool/libtool.m4, the
  80. original source of this bit of code. It's not clear what the best fix
  81. would be, though.
  82. Thu Dec 11 17:48:11 1997 Richard Henderson <rth@cygnus.com>
  83. * linker.c (generic_link_add_symbol_list): Always init udata.p so
  84. that the generic relaxation code can function when input and output
  85. file formats are mismatched.
  86. Thu Dec 11 01:02:18 1997 Ian Lance Taylor <ian@cygnus.com>
  87. * coff-sh.c (bfd_coff_small_swap_table): Initialize new fields.
  88. * elf.c (assign_file_positions_for_segments): For a loadable
  89. section, make sure that the load address is correct relative to
  90. the load address of the segment plus the size of the segment so
  91. far.
  92. * coffcode.h (_coff_link_output_has_begun): Make static.
  93. (_coff_final_link_postscript): Likewise.
  94. Wed Dec 10 23:37:11 1997 Ian Lance Taylor <ian@cygnus.com>
  95. * elflink.h (elf_link_input_bfd): Handle a relocateable link in
  96. which a relocation refers to an indirect or warning symbol.
  97. Wed Dec 10 11:15:55 1997 Nick Clifton <nickc@cygnus.com>
  98. * coff-arm.c (bfd_arm_coff_final_link): Function deleted.
  99. (coff_arm_final_link_postscript): New function.
  100. (coff_arm_link_output_has_begun): New function.
  101. * libcoff.h (struct bfd_coff_backend_data): Add new fields:
  102. _bfd_coff_link_output_has_begun and
  103. _bfd_coff_final_link_postscript. Add new macros:
  104. bfd_coff_link_output_has_begun() and
  105. bfd_coff_final_link_postscript().
  106. * cofflink.c (_bfd_coff_final_link): Insert calls to
  107. bfd_coff_link_output_has_begun() and
  108. bfd_coff_final_link_postscript().
  109. * coffcode.h: Add two new fields to bfd_coff_backend_data
  110. structure: _bfd_coff_link_output_has_begun and
  111. _bfd_coff_final_link_postscript. Add default initialisers for
  112. these fields. Add overridable aliases for the coff swap functions
  113. in the backend data structure.
  114. * elf32-v850.c: Update with patches from the branch to fix
  115. HI16_S/LO16 reloc pairs.
  116. Wed Dec 10 14:06:48 1997 Michael Meissner <meissner@cygnus.com>
  117. * elf32-d30v.c (d30v_info_to_howto_rela): New function to support
  118. RELA relocations.
  119. (USE_REL): Don't define any more, switch to using RELA
  120. relocations.
  121. (elf_info_to_howto): Define as d30v_info_to_howto_rela.
  122. Tue Dec 9 11:37:53 1997 Andrew Cagney <cagney@b1.cygnus.com>
  123. * archures.c (bfd_mach_mips*): Define.
  124. (bfd_default_scan): For 3000 and 4000 replace magic constant with
  125. macro.
  126. * cpu-mips.c (N): Define.
  127. (bfd_mips_arch, arch_info_struct): Re-write using macro N, replace
  128. numbers with bfd_mach_mips* macros.
  129. Fri Dec 5 11:13:46 1997 Nick Clifton <nickc@cygnus.com>
  130. * elf32-v850.c (v850_elf_reloc, v850_elf_store_addend_in_insn,
  131. v850_elf_relocate_section): Fix reloc addend handling.
  132. (v850_elf_section_from_bfd_section, v850_elf_symbol_processing,
  133. v850_elf_add_symbol_hook, v850_elf_link_output_symbol_hook,
  134. v850_elf_section_from_shdr, v850_elf_fake_sections): New functions
  135. to create and handle special common sections.
  136. (v850_elf_final_link_relocate): Fix HI16 and HI16_S relocations
  137. which have data stored in the instructions.
  138. Tue Dec 2 10:26:16 1997 Nick Clifton <nickc@cygnus.com>
  139. * coff-arm.c (TARGET_UNDERSCORE): Revert back to '_'
  140. (USER_LABEL_PREFIX): Revert back to '_'
  141. * config.bfd (targ_cpu): Add support for Thumb target.
  142. Mon Dec 1 20:24:18 1997 J"orn Rennecke <amylaar@cygnus.co.uk>
  143. * coff-sh.c (sh_coff_howtos): Add R_SH_SWITCH8 entry.
  144. (get_symbol_value): Handle R_SH_SWITCH8.
  145. (sh_relax_delete_bytes): Likewise.
  146. Wed Nov 26 14:13:34 1997 Nick Clifton <nickc@cygnus.com>
  147. * coff-arm.c (TARGET_UNDERSCORE): Changed to match definition in
  148. gcc/config/arm/semi.h
  149. * coffcode.h (coff_slurp_symbol_table): Add ARM and Thumb symbol
  150. classes.
  151. Sun Nov 23 16:02:58 1997 Andrew Cagney <cagney@b1.cygnus.com>
  152. * freebsd.h (SWAP_MAGIC): Read magic number little and not big
  153. endian.
  154. Wed Nov 26 09:30:37 1997 Nick Clifton <nickc@cygnus.com>
  155. * coffcode.h (coff_mkobject_hook): Only set private flags for non
  156. PE ARM ports.
  157. Tue Nov 25 15:33:23 1997 Richard Henderson <rth@cygnus.com>
  158. * binary.c (binary_set_section_contents): Also ignore NEVER_LOAD
  159. sections.
  160. Tue Nov 25 10:55:36 1997 Nick Clifton <nickc@cygnus.com>
  161. * coff-arm.c (coff_arm_bfd_merge_private_bfd_data): Do not
  162. complain if inout and output formats differ.
  163. Tue Nov 25 11:26:27 1997 Ian Lance Taylor <ian@cygnus.com>
  164. * Makefile.am (BFD32_BACKENDS): Remove tekhex.lo.
  165. (BFD32_BACKENDS_CFILES): Remove tekhex.c.
  166. * Makefile.in: Rebuild.
  167. * aclocal.m4, configure, Makefile.in: Rebuild with current
  168. automake and autoconf.
  169. * coff-arm.c (arm_allocate_interworking_sections): Fix typo
  170. (COFF_WITH_PR to COFF_WITH_PE).
  171. Mon Nov 24 15:47:49 1997 Nick Clifton <nickc@cygnus.com>
  172. * coff-arm.c: Make variables and some functions static, so that
  173. this file can be included in multiple object files.
  174. (coff_arm_bfd_final_link): Fix minor bug.
  175. Sat Nov 22 15:16:00 1997 Nick Clifton <nickc@cygnus.com>
  176. * coff-arm.c: Add support for PIC and APCS-FLOAT type binaries.
  177. * coffcode.h: Add support for PIC and APCS-FLOAT type binaries.
  178. Sat Nov 22 16:06:56 1997 Klaus Kaempf <kkaempf@progis.de>
  179. * evax-emh.c (_bfd_evax_write_emh): Use alloca instead of strdup.
  180. Sat Nov 22 12:29:30 1997 Ian Lance Taylor <ian@cygnus.com>
  181. * sunos.c (sunos_add_one_symbol): When overriding a defined
  182. symbol, set it to undefined, not new.
  183. * elf32-sh.c (sh_elf_relax_delete_bytes): Don't kill LABEL
  184. relocs.
  185. Fri Nov 21 14:14:22 1997 Richard Henderson <rth@cygnus.com>
  186. * coff-sh.c (sh_relax_section): Force sign extention of USES r_offset.
  187. (sh_relax_delete_bytes): Don't kill LABEL relocs.
  188. Mon Nov 17 15:08:38 1997 Jeffrey A Law (law@cygnus.com)
  189. * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Fix typo.
  190. (mn10300_elf_relax_section): Likewise.
  191. Sat Nov 15 15:36:07 1997 Fred Fish <fnf@cygnus.com>
  192. * peicode.h (coff_swap_aouthdr_in): Cast second arg of
  193. bfd_h_get_* calls to "bfd_byte *".
  194. Tue Nov 11 10:37:23 1997 Jeffrey A Law (law@cygnus.com)
  195. * elf-m10300.c (elf32_mn10300_link_hash_entry): Add new field
  196. "movm_stack_size".
  197. (mn10300_elf_relax_section): Include stack space for register saves
  198. in the imm8 field of a "call" instruction.
  199. (compute_function_info): Determine how much stack is allocated by
  200. the movm instruction. Fix typo.
  201. (elf32_mn10300_link_hash_newfunc): Initialize movm_stack_size.
  202. Mon Nov 10 14:32:40 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
  203. * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't crash if
  204. a version dependency could not be found.
  205. Tue Nov 4 12:05:56 1997 Klaus K"ampf <kkaempf@progis.de>
  206. * configure.com: Get version info from configure.in
  207. Fri Oct 24 11:15:58 1997 Jakub Jelinek <jj@sunsite.mff.cuni.cz>
  208. * elf64-sparc.c (sparc64_elf_merge_private_bfd_data):
  209. New function. Avoid mixing US1 and HAL R1 code.
  210. Set resulting memory ordering to the strongest one used.
  211. (sparc64_elf_object_p): Set bfd_mach correctly.
  212. Thu Oct 23 14:09:33 1997 Richard Henderson <rth@cygnus.com>
  213. * elf64-sparc.c (sparc64_elf_howto_table): Add UA64 & UA16.
  214. (sparc64_elf_check_relocs): Handle them.
  215. (sparc64_elf_relocate_section): Likewise. Before emitting a dyn reloc,
  216. check alignment and transmute R_SPARC_x<->R_SPARC_UAx.
  217. Thu Oct 23 00:53:14 1997 Richard Henderson <rth@dot.cygnus.com>
  218. * configure.in (sparc*-*-linux*): Use trad-core and ...
  219. * hosts/sparclinux.h: New file.
  220. Thu Oct 23 00:25:29 1997 Richard Henderson <rth@dot.cygnus.com>
  221. * config.bfd (sparc64-*-linux*): New target.
  222. * elf-bfd.h (struct elf_backend_data): Add plt_alignment member.
  223. * elflink.c (_bfd_elf_create_got_section): Set .got alignment based
  224. on arch_size.
  225. (_bfd_elf_create_dynamic_sections): Likewise for .rel* sections.
  226. Set .plt alignment from new plt_alignment.
  227. * elflink.h (elf_link_create_dynamic_sections): Set version section
  228. alignment to LOG_FILE_ALIGN.
  229. * elfxx-target.h (elf_backend_plt_alignment): Provide default.
  230. (elfXX_bed): Init plt_alignment.
  231. * elf64-sparc.c (sparc64_elf_check_relocs,
  232. sparc64_elf_adjust_dynamic_symbol, sparc64_elf_size_dynamic_sections,
  233. sparc64_elf_adjust_dynindx, sparc64_elf_finish_dynamic_symbol,
  234. sparc64_elf_finish_dynamic_sections): New functions.
  235. (sparc64_elf_howto_table): Fix a few name strings.
  236. (ELF_DYNAMIC_INTERPRETER): New definition.
  237. (sparc64_elf_relocate_section): Handle shared libraries.
  238. * elf64-sparc.c (struct plt_template, plt_*_header, plt_*_entry,
  239. sparc64_elf_build_plt_entry, sparc64_elf_finish_dynamic_symbol):
  240. PLT definitions sparc64-linux originally choose. These will go
  241. away soon in favour of the official abi definitions.
  242. Wed Oct 22 16:08:45 1997 Ian Lance Taylor <ian@cygnus.com>
  243. * coff-sh.c (coff_small_object_p): New static function.
  244. (coff_small_new_section_hook): New static function.
  245. (bfd_coff_small_swap_table): New static const structure.
  246. (coff_small_close_and_cleanup): Define.
  247. (coff_small_bfd_free_cached_info): Define.
  248. (coff_small_get_section_contents): Define.
  249. (coff_small_get_section_contents_in_window): Define.
  250. (shcoff_small_vec): New static structure.
  251. (shlcoff_small_vec): New static structure.
  252. * targets.c (bfd_target_vector): Add shcoff_small_vec and
  253. shlcoff_small_vec.
  254. * config.bfd (sh-*-elf*): Add shcoff_small_vec and
  255. shlcoff_small_vec to targ_selvecs.
  256. (sh-*-*): Likewise.
  257. * configure.in: Add shcoff_small_vec and shlcoff_small_vec cases.
  258. * configure: Rebuild.
  259. Mon Oct 20 15:01:27 1997 Klaus K"ampf <kkaempf@progis.de>
  260. * evax-egsd.c: Weak symbols are global.
  261. * evax-emh.c: Use proper casts.
  262. * evax-egsd.c (_bfd_evax_write_egsd): Remove unneeded uname.
  263. * evax-egsd.c: Section names and symbols have different
  264. length restrictions. Add length parameter to
  265. _bfd_evax_length_hash_symbol.
  266. * evax-etir.c: Likewise.
  267. * evax-misc.c (_bfd_evax_length_hash_symbol): Add length
  268. parameter.
  269. * evax.h (EOBJ_S_C_SECSIZ): Define.
  270. * evax-alpha.c: Remove duplicate test.
  271. * evax-emh.c: SYS$ functions are upper-case.
  272. * evax-egsd.c: Create separate sections for common symbols.
  273. * evax-etir.c: Don't output common section.
  274. * evax.h: Bump up section count.
  275. * configure.com: Use 64bit integers with DEC C.
  276. * evax-egsd.c: Make section flags dec c compatible.
  277. Mon Oct 20 09:38:31 1997 Jeffrey A Law (law@cygnus.com)
  278. * som.c (normalize): Delete function.
  279. (som_bfd_ar_write_symbol_stuff): New parameter elength. All callers
  280. changed. Use passed in elength to determine size of the extended
  281. name table instead of computing it again.
  282. Sun Oct 19 23:36:21 1997 Jim Wilson <wilson@cygnus.com>
  283. * peicode.h (coff_swap_scnhdr_out): Use |= not = to set
  284. IMAGE_SCN_MEM_READ for an unrecognized section.
  285. Sun Oct 19 21:04:56 1997 Jeffrey A Law (law@cygnus.com)
  286. * som.c (som_bfd_ar_write_symbol_stuff): Account for trailing
  287. '/' in the extended name table.
  288. Fri Oct 17 00:04:13 1997 Richard Henderson <rth@cygnus.com>
  289. * elflink.h (elf_link_assign_sym_version): For explicitly versioned
  290. symbols, check globals list before matching on locals.
  291. Thu Oct 16 08:17:06 1997 Michael Meissner <meissner@cygnus.com>
  292. * peicode.h (coff_swap_scnhdr_out,pe_print_idata): Fix mangled
  293. patch.
  294. Wed Oct 15 13:45:10 1997 Ian Lance Taylor <ian@cygnus.com>
  295. * peicode.h (pe_mkobject_hook): Set DLL flag.
  296. (pe_bfd_copy_private_bfd_data): Copy DLL flag.
  297. * peicode.h (coff_swap_scnhdr_out): Set IMAGE_SCN_MEM_DISCARDABLE
  298. for .stab* sections. Replace strlen of constant strings with
  299. number.
  300. Tue Oct 14 15:42:45 1997 Richard Henderson <rth@cygnus.com>
  301. * elf64-alpha.c (elf64_alpha_merge_ind_symbols): New function to
  302. merge got and reloc entries from ind syms to their target.
  303. (elf64_alpha_always_size_sections): Call it.
  304. (elf64_alpha_check_relocs): Operate on the target of indirect symbols.
  305. (elf64_alpha_can_merge_gots): Likewise.
  306. (elf64_alpha_merge_gots): Likewise.
  307. * elf64-alpha.c (elf64_alpha_relocate_section): Back out HJ's change,
  308. as it is insufficient to handle the relocation changes as well.
  309. Mon Oct 13 23:10:08 1997 Richard Henderson <rth@cygnus.com>
  310. * elf64-alpha.c (elf64_alpha_calc_dynrel_sizes): Allow for RELATIVE
  311. relocs for symbols in shlibs that have been forced local.
  312. (elf64_alpha_relocate_section): Output RELATIVEs in .got for same.
  313. Mon Oct 13 21:24:04 1997 Richard Henderson <rth@cygnus.com>
  314. * elf64-alpha.c (elf64_alpha_relocate_section): Use the
  315. got_enties of the default symbol for the default versioned
  316. symbol. Patch from hjl@gnu.ai.mit.edu, modified not to use
  317. alloca in the loop.
  318. Mon Oct 13 17:37:37 1997 Nick Clifton <nickc@cygnus.com>
  319. * elf32-v850.c (v850_elf_final_link_relocate): Only use the bottom
  320. 24 bits of the PC when computing a PC relative relocation.
  321. Fri Oct 10 16:01:30 1997 Nick Clifton <nickc@cygnus.com>
  322. * elf32-v850.c (v850_elf_reloc, v850_elf_final_link_relocate):
  323. Correct value for maximum positive 22 bit PC relative relocation.
  324. (v850_elf_final_link_relocate): Prevent overflow from HI16_S and
  325. HI_16 relocations. Correct bit adjustment in TDA offsets.
  326. Thu Oct 9 16:43:39 1997 Doug Evans <dje@canuck.cygnus.com>
  327. * elf64-sparc.c (sparc_elf_{hix22,lox10}_reloc): New functions.
  328. (sparc64_elf_howto_table): Use them for HIX22,LOX10 relocs.
  329. Wed Oct 8 11:38:45 1997 Richard Henderson <rth@cygnus.com>
  330. * elfcore.h (bfd_prstatus): Pedanticly, alignment_power should
  331. be LOG_FILE_ALIGN.
  332. Wed Oct 8 11:36:00 1997 Richard Henderson <rth@cygnus.com>
  333. * config.bfd: Missed one alpha* change.
  334. Tue Oct 7 13:00:17 1997 Doug Evans <dje@canuck.cygnus.com>
  335. * elf32-sparc.c (_bfd_sparc_elf_howto_table): Remove BFD64 support.
  336. * elf64-sparc.c (SPARC64_OLD_RELOCS): Undef.
  337. (MINUS_ONE): New macro.
  338. (sparc_elf_notsup_reloc): New function.
  339. (sparc64_elf_howto_table): Add entries for DISP64,PLT64,HIX22,LOX10,
  340. H44,M44,L44,REGISTER.
  341. (sparc_reloc_map): Likewise. Map BFD_RELOC_CTOR to R_SPARC_64.
  342. (init_insn_reloc): New function.
  343. (sparc_elf_wdisp16_reloc): Use it.
  344. (sparc64_elf_relocate_section): Add entries for OLO10,HIX22,LOX10.
  345. Tue Oct 7 11:40:37 1997 Ian Lance Taylor <ian@cygnus.com>
  346. * som.c (som_construct_extended_name_table): Remove static
  347. function, and define as macro instead.
  348. Fri Oct 3 14:02:17 1997 Richard Henderson <rth@cygnus.com>
  349. * config.bfd: Change alpha-*-* to alpha*-*-*; config.guess now
  350. recognizes alphaev5 etc.
  351. * configure.host: Likewise.
  352. Fri Oct 3 11:23:47 1997 Ian Lance Taylor <ian@cygnus.com>
  353. Make ld -s work on AIX:
  354. * xcofflink.c (xcoff_link_add_symbols): Don't create the .debug
  355. section if we are stripping.
  356. (bfd_xcoff_size_dynamic_sections): Don't set the .debug section
  357. size if we are stripping.
  358. (_bfd_xcoff_bfd_final_link): Don't set SEC_RELOC or rel_filepos,
  359. and don't write out relocs, if we are stripping.
  360. (xcoff_link_input_bfd): Don't set up reloc if we are stripping.
  361. (xcoff_write_global_symbol): Don't write out symbol or reloc if we
  362. are stripping.
  363. * configure.in: Don't include elf.lo again for ELF targets; it's
  364. always in the library anyhow.
  365. * configure: Rebuild.
  366. * bfd-in2.h: Rebuild.
  367. * elf32-sparc.c (sparc_elf_wdisp16_reloc): Cast to bfd_byte *, not
  368. char *, when calling bfd_get_32 and bfd_put_32.
  369. * sunos.c (sunos_scan_dynamic_symbol): Cast contents to char *
  370. when calling strcpy.
  371. Thu Oct 2 16:15:50 1997 Doug Evans <dje@canuck.cygnus.com>
  372. * reloc.c (bfd_check_overflow): New function.
  373. (bfd_perform_relocation, bfd_install_relocation): Use it.
  374. (BFD_RELOC_SPARC_{DISP64,PLT64}): New relocs.
  375. (BFD_RELOC_SPARC_{HIX22,LOX10,H44,M44,L44,REGISTER}): New relocs.
  376. * bfd-in2.h: Regenerate.
  377. * libbfd.h: Regenerate.
  378. Thu Oct 2 13:17:18 1997 Ian Lance Taylor <ian@cygnus.com>
  379. * peicode.h (coff_swap_scnhdr_out): Set IMAGE_SCN_MEM_READ for an
  380. unrecognized section. From Jon Thackray <jont@harlequin.co.uk>.
  381. Wed Oct 1 14:03:44 1997 Ian Lance Taylor <ian@cygnus.com>
  382. * Makefile.am ($(BFD_H)): Change stmp-bfd.h to stmp-bfd-h.
  383. (stmp-bfd-h): Rename from stmp-bfd.h.
  384. (BFD_H_FILES, LIBBFD_H_FILES, LIBCOFF_H_FILES): New variables.
  385. ($(srcdir)/bfd-in2.h): Just depend upon stmp-bin2-h.
  386. (stmp-bin2-h): New target.
  387. ($(srcdir)/libbfd.h): Just depend upon stmp-lbfd-h.
  388. (stmp-lbfd-h): New target.
  389. ($(srcdir)/libcoff.h): Just depend upon stmp-lcoff-h.
  390. (stmp-lcoff-h): New target.
  391. (CLEANFILES): Change stmp-bfd.h to stmp-bfd-h. Add stmp-bin2.h,
  392. stmp-lbfd-h, and stmp-lcoff-h.
  393. * Makefile.in: Rebuild.
  394. * configure.in: Use a diversion to set enable_shared before the
  395. arguments are parsed.
  396. * configure: Rebuild.
  397. Tue Sep 30 14:18:32 1997 Doug Evans <dje@canuck.cygnus.com>
  398. * elf32-sparc.c (_bfd_sparc_elf_howto_table): R_SPARC_GLOB_JMP
  399. renamed to R_SPARC_UNUSED_42.
  400. (sparc_reloc_map): Delete R_SPARC_GLOB_JMP entry.
  401. * elf64-sparc.c (_bfd_sparc_elf_howto_table): R_SPARC_GLOB_JMP
  402. renamed to R_SPARC_UNUSED_42.
  403. (sparc_reloc_map): Delete R_SPARC_GLOB_JMP entry.
  404. * reloc.c (BFD_RELOC_SPARC_GLOB_JMP): Delete.
  405. * bfd-in2.h: Regenerated.
  406. * libbfd.h: Regenerated.
  407. Thu Sep 25 12:15:02 1997 Ian Lance Taylor <ian@cygnus.com>
  408. * elflink.h (elf_merge_symbol): Don't check the hash creator until
  409. after we have set *sym_hash.
  410. Wed Sep 24 16:52:28 1997 Joel Sherrill <joel@oarcorp.com>
  411. * config.bfd (sh*-*-rtems*): New target, like sh-*-*elf*.
  412. Wed Sep 24 11:27:23 1997 Ian Lance Taylor <ian@cygnus.com>
  413. * Makefile.am (libbfd_a_SOURCES): Define.
  414. * Makefile.in: Rebuild.
  415. * configure.in: Call AC_CHECK_TOOL before AM_PROG_LIBTOOL.
  416. * aclocal.m4: Rebuild with new libtool.
  417. * configure: Rebuild.
  418. Tue Sep 23 19:03:13 1997 Ian Lance Taylor <ian@cygnus.com>
  419. * elf.c (map_sections_to_segments): Even if we are not demand
  420. paged, don't put a loadable section after a nonloadable section.
  421. (assign_file_positions_for_segments): Increment the file offset
  422. for a section with contents, even if it is not loadable.
  423. Sun Sep 21 11:03:24 1997 Nick Clifton <nickc@cygnus.com>
  424. * elf32-v850.c (v850_elf_final_link_relocate): Add return code
  425. indicating that __ctbp could not be found.
  426. Thu Sep 18 15:04:57 1997 Nick Clifton <nickc@cygnus.com>
  427. * elf32-v850.c (v850_elf_check_relocs): Improve error message.
  428. Wed Sep 17 09:54:51 1997 Nick Clifton <nickc@cygnus.com>
  429. * elf32-v850.c (v850_elf_final_link_relocate, v850_elf_reloc,
  430. v850_elf_check_relocs, v850_elf_reloc_map, v850_elf_howto_table):
  431. Add support for the CALLT relocs.
  432. * reloc.c (COMMENT): Add BFD_RELOC_V850_CALLT_6_7_OFFSET and
  433. BFD_RELOC_V850_CALLT_16_16_OFFSET.
  434. * elf32-v850.c (v850_elf_final_link_relocate): Add checks to catch
  435. relocations against non-existant symbols.
  436. Tue Sep 16 14:20:27 1997 Nick Clifton <nickc@cygnus.com>
  437. * reloc.c: Add BFR_RELOC_V850_TDA_16_16_OFFSET.
  438. * elf32-v850.c (v850_elf_reloc, v850_elf_final_link_relocate,
  439. v850_elf_howto_table, v850_elf_reloc_map): Add support for a 16
  440. bit reloc in the tiny data area.
  441. Mon Sep 15 11:27:36 1997 Ken Raeburn <raeburn@cygnus.com>
  442. Merged changes from Martin Hunt:
  443. * elf32-d30v.c (bfd_elf_d30v_reloc): Change pc-relative relocs
  444. over 2^32 bytes to be absolute. Needed because D30V PC doesn't
  445. necessarily wrap.
  446. * reloc.c, elf32-d30v.c (BFD_RELOC_D30V_9_PCREL,
  447. BFD_RELOC_D30V_9_PCREL_R): New relocs.
  448. * elf32-d30v.c (bfd_elf_d30v_reloc_21): New function.
  449. Do 15 and 21 bit pc-relative relocations.
  450. * reloc.c (BFD_RELOC_D30V_15_PCREL_R, BFD_RELOC_D30V_21_PCREL_R):
  451. New relocations.
  452. * elf32-d30v.c (bfd_elf_d30v_reloc): Addend needs to be
  453. added to the relocation, not or'd.
  454. Wed Sep 10 15:17:25 1997 Nick Clifton <nickc@cygnus.com>
  455. * elf32-v850.c (v850_elf_reloc): Remove spurious error message.
  456. Wed Sep 10 11:17:50 1997 Andrew Cagney <cagney@b1.cygnus.com>
  457. * archures.c (bfd_default_scan): Use strcasecmp.
  458. (bfd_default_scan): Test for match with arch_name + ":" +
  459. printable_name.
  460. (bfd_default_scan): Test for match with printable_name - ":".
  461. (bfd_default_scan): Delete w65, h8300, h8500, z8k, i960 special
  462. cases. Each implements their own scan function.
  463. (bfd_default_scan): Delete 386, 2900, 860, mips 2000, mips 4400
  464. special cases. Since info->mach == 0. The test mach == number
  465. fails.
  466. (bfd_arch_list): New function, return name of all the supported
  467. architectures.
  468. Tue Sep 9 10:21:56 1997 Nick Clifton <nickc@cygnus.com>
  469. * elf32-v850.c (v850_elf_print_private_bfd_data): Break after
  470. decoding architecture.
  471. (v850_elf_reloc): Do not complain if a R_V850_LO16 reloc has bit
  472. 15 set.
  473. Sun Sep 7 12:25:22 1997 H.J. Lu (hjl@gnu.ai.mit.edu)
  474. * elf64-alpha.c (reloc_howto_type): Fix the howto table.
  475. Thu Sep 4 09:44:10 1997 Ian Lance Taylor <ian@cygnus.com>
  476. * Makefile.am: Rebuild dependencies.
  477. (ALL_MACHINES_CFILES): Add cpu-v850.c.
  478. (ALL_MACHINES_CFILES): Add elf32-v850.c.
  479. * Makefile.in: Rebuild.
  480. * reloc.c: Remove extraneous commas from relocation entries.
  481. Remove BFD_RELOC_V850_16_PCREL.
  482. * bfd-in2.h: Rebuild.
  483. * xcofflink.c (xcoff_link_add_symbols): Put XTY_CM/XMC_TD symbols
  484. in sections named .tocbss rather than .bss.
  485. Wed Sep 3 11:23:23 1997 Nick Clifton <nickc@cygnus.com>
  486. * libbfd.h, bfd-in2.h, elf32-v850.c: Removed
  487. BFD_RELOC_V850_16_PCREL.
  488. Tue Sep 2 20:44:10 1997 Fred Fish <fnf@cygnus.com>
  489. * cofflink.c (coff_link_check_ar_symbols): Handle C_SYSTEM syms
  490. the same as C_EXT syms.
  491. (coff_link_add_symbols): Ditto.
  492. (_bfd_coff_link_input_bfd): Ditto.
  493. (_bfd_coff_write_task_globals): Add save_global_to_static. Use
  494. it to preserve and restore state of global_to_static flag.
  495. Tue Sep 2 17:45:22 1997 Nick Clifton <nickc@cygnus.com>
  496. * elf32-v850.c (v850_elf_object_p): Set machine number based on
  497. bits in e_flags field rather than magic numbers.
  498. (v850_elf_final_write_processing, v850_elf_set_private_flags,
  499. v850_elf_copy_private_bfd_data, v850_elf_merge_private_bfd_data,
  500. v850_elf_print_private_bfd_data): New functions.
  501. Tue Sep 2 17:43:49 1997 Nick Clifton <nickc@cygnus.com>
  502. * elf.c (prep_headers): Remove V850E magic number.
  503. * elf.c (prep_headers): Remove V850EA magic number.
  504. Tue Sep 2 17:35:05 1997 Doug Evans <dje@canuck.cygnus.com>
  505. * cpu-arc.c (arc_get_mach): Properly scan defined mach entries.
  506. Tue Sep 2 18:29:37 1997 Jeffrey A Law (law@cygnus.com)
  507. * elf-m10200.c (mn10200_elf_final_link_relocate): PC relative
  508. instructions are relative to the next instruction, not the
  509. current instruction.
  510. (mn10200_elf_relax_section): Similarly.
  511. Tue Sep 2 15:45:45 1997 Nick Clifton <nickc@cygnus.com>
  512. * cpu-v850.c: Use a macro to construct bfd_arch_info_type
  513. entries.
  514. * reloc.c, libbfd.h, bfd-in2.h, elf32-v850.c: Replace
  515. BFD_RELOC_V850_{SDA/TDA/ZDA}_OFFSET relocs with new bit pattern
  516. specific versions: BFD_RELOC_V850_{area}_{bits}_OFFSET.
  517. Thu Aug 28 17:01:09 1997 Andrew Cagney <cagney@b1.cygnus.com>
  518. * cpu-v850.c: Remove "plain" from v850 printable name.
  519. (scan): Use strcasecmp.
  520. * archures.c (bfd_mach_v850): Define.
  521. * cpu-sh.c (scan_mach): Compare with table instead of hardwired to
  522. just sh/SH, use strcasecmp.
  523. (arch_info_struct): Add entries for sh3 et.al.
  524. * archures.c (bfd_mach_sh, ...): Define.
  525. Wed Aug 27 17:33:07 1997 Andrew Cagney <cagney@b1.cygnus.com>
  526. * archures.c (bfd_archures_list): Always NULL terminate the list.
  527. Tue Aug 26 17:26:51 1997 Ian Lance Taylor <ian@cygnus.com>
  528. * Makefile.am: Rebuild dependencies.
  529. (ALL_MACHINES_CFILES): Add cpu-arc.c.
  530. (ALL_MACHINES_CFILES): Add elf32-arc.c.
  531. (elf32-arc.lo): Remove explicit dependency.
  532. * Makefile.in: Rebuild.
  533. * acinclude.m4 (BFD_CC_FOR_BUILD): Set EXEEXT_FOR_BUILD.
  534. * doc/Makefile.am (MKDOC): Use EXEEXT_FOR_BUILD, not EXEEXT.
  535. * aclocal.m4: Rebuild.
  536. * configure: Rebuild.
  537. * Makefile.in: Rebuild.
  538. * doc/Makefile.in: Rebuild.
  539. Mon Aug 25 16:14:34 1997 Christopher Provenzano <proven@cygnus.com>
  540. * configure: Rebuild with latest devo autoconf for NT support
  541. Mon Aug 25 16:11:04 1997 Nick Clifton <nickc@cygnus.com>
  542. * cpu-arm.c (compatible): If B is a default type, return A.
  543. Mon Aug 25 15:35:46 1997 Nick Clifton <nickc@cygnus.com>
  544. * cpu-v850.c (scan): New function.
  545. (arch_info_struct): New structure.
  546. (bfd_v850_arch): Add link into arch_info_structure.
  547. * config.bfd (targ_cpu): All v850 variants use the bfd_arch_v850
  548. architecture.
  549. * elf32-v850.c (v850_elf_object_p): New function.
  550. * archures.c (bfd_mach_v850e): Machine value for v850e.
  551. * bfd-in2.h (bfd_mach_v850e): Machine value for v850e.
  552. * elf32-v850.c (ELF_MACHINE_CODE): Default to v850e machine
  553. number.
  554. * elf.c (prep_headers): Add support for v850e machine number.
  555. * archures.c (bfd_mach_v850ea): Machine value for v850ea.
  556. * bfd-in2.h (bfd_mach_v850ea): Machine value for v850ea.
  557. * elf32-v850.c (ELF_MACHINE_CODE): Default to v850ea machine
  558. number.
  559. * elf.c (prep_headers): Add support for v850ea machine number.
  560. Mon Aug 25 14:07:33 1997 Ian Lance Taylor <ian@cygnus.com>
  561. * syms.c (_bfd_stab_section_find_nearest_line): Clear the
  562. cached_stab field if the offset prevents us from using the cache.
  563. Mon Aug 25 12:08:13 1997 Ian Lance Taylor <ian@cygnus.com>
  564. * aout-target.h (MY(vec)): Add SEC_CODE and SEC_DATA to section
  565. flags.
  566. * aout-arm.c (aout_arm_little_vec): Likewise.
  567. (aout_arm_big_vec): Likewise.
  568. * bout.c (b_out_vec_big_host): Likewise.
  569. (b_out_vec_little_host): Likewise.
  570. * mipsbsd.c (aout_mips_little_vec): Likewise.
  571. (aout_mips_big_vec): Likewise.
  572. Tue Aug 19 10:09:10 1997 Fred Fish <fnf@cygnus.com>
  573. * coff-tic80.c (COFF_ALIGN_IN_SFLAGS): Define to 1.
  574. * coffcode.h (styp_to_sec_flags): Ignore incoming STYP_INFO
  575. bit in s_flags if COFF_ALIGN_IN_S_FLAGS is defined.
  576. Tue Aug 19 08:47:17 1997 Fred Fish <fnf@cygnus.com>
  577. * coff-i960.c (COFF_ALIGN_IN_SECTION_HEADER): Define to 1.
  578. (GET_SCNHDR_ALIGN, PUT_SCNHDR_ALIGN): Define.
  579. * coff-m88k.c (GET_SCNHDR_NRELOC, GET_SCNHDR_NLNNO): Define.
  580. * coffcode.h (coff_set_alignment_hook): Conditionally compile in if
  581. COFF_ALIGN_IN_SECTION_HEADER is defined. Convert alignment to power
  582. of two for I960 only.
  583. * coffswap.h (GET_SCNHDR_NRELOC, PUT_SCNHDR_NRELOC, GET_SCNDHR_NLNNO,
  584. PUT_SCNHDR_NLNNO, GET_SCNHDR_FLAGS, PUT_SCNHDR_FLAGS): Provide
  585. default definitions.
  586. (coff_swap_scnhdr_in): Use GET_SCNHDR_FLAGS, GET_SCNHDR_NRELOC,
  587. GET_SCNHDR_NLNNO, and GET_SCNHDR_ALIGN.
  588. (coff_swap_scnhdr_out): Use PUT_SCNHDR_FLAGS, PUT_SCNHDR_ALIGN.
  589. * Makefile.in (coff-tic80.o): Depends upon coffswap.h.
  590. * coff-tic80.c (COFF_ALIGN_IN_SECTION_HEADER): Define to 1.
  591. (GET_SCNHDR_FLAGS, PUT_SCNHDR_FLAGS): Define
  592. * coffcode.h (coff_write_object_contents): Set alignment field in
  593. section header for TIC80COFF files.
  594. Mon Aug 18 11:36:19 1997 Nick Clifton <nickc@cygnus.com>
  595. * elf32-v850.c (v850_elf_howto_table, v850_elf_reloc_map,
  596. v850_elf_check_relocs, v850_elf_reloc,
  597. v850_elf_final_link_relocate): Add support for
  598. BFD_RELOC_V850_16_PCREL relocation.
  599. * reloc.c (COMMENT): Add suuport for BFD_RELOC_V850_16_PCREL
  600. relocation.
  601. * libbfd.h: Add support for BFD_RELOC_V850_16_PCREL relocation.
  602. * bfd-in2.h: Add support for BFD_RELOC_V850_16_PCREL relocation.
  603. Mon Aug 18 11:33:56 1997 Nick Clifton <nickc@cygnus.com>
  604. * cpu-v850e: New file.
  605. * elf.c (prep_headers): Add support for v850e target.
  606. * bfd-in2.h (bfd_architecture): Add support for v850e target.
  607. * config.bfd: Add support for v850e target.
  608. * archures.c: Add support for v850e target.
  609. Mon Aug 18 11:33:56 1997 Nick Clifton <nickc@cygnus.com>
  610. * cpu-v850ea: New file.
  611. * elf.c (prep_headers): Add support for v850ea target.
  612. * bfd-in2.h (bfd_architecture): Add support for v850ea target.
  613. * config.bfd: Add support for v850ea target.
  614. * archures.c: Add support for v850ea target.
  615. Fri Aug 15 12:01:28 1997 Ian Lance Taylor <ian@cygnus.com>
  616. * coffgen.c (coff_find_nearest_line): Correctly handle the offset
  617. argument as section relative, rather than an absolute address.
  618. From Jan Hoogenraad <hoogenrd@natlab.research.philips.com>.
  619. Fri Aug 15 04:58:02 1997 Doug Evans <dje@canuck.cygnus.com>
  620. * config.bfd (arc-*-elf*): Add.
  621. * configure.in (bfd_elf32_{little,big}arc_vec): Add.
  622. * configure: Rebuild.
  623. * Makefile.am (ALL_MACHINES): Add cpu-arc.lo.
  624. (BFD32_BACKENDS): Add elf32-arc.lo.
  625. (cpu-arc.lo,elf32-arc.lo): Add rules for.
  626. * Makefile.in: Rebuild.
  627. * archures.c (architecture list): Add bfd_arch_arc.
  628. (bfd_archures_list): Add bfd_arc_arch.
  629. (bfd_mach_arc_base): Define.
  630. * reloc.c (BFD_RELOC_ARC_B22_PCREL,BFD_RELOC_ARC_B26): Add.
  631. * targets.c (bfd_elf32_{little,big}arc_vec): Declare.
  632. (bfd_target_vect): Add them.
  633. * bfd-in2.h, libbfd.h: Rebuild.
  634. * cpu-arc.c, elf32-arc.c: New files.
  635. * elf.c (pre_headers): Recognize bfd_arch_arc.
  636. Tue Aug 12 11:45:18 1997 Ian Lance Taylor <ian@cygnus.com>
  637. * aoutx.h (NAME(aout,final_link)): If no symbols, make sure the
  638. data section is correctly rounded to a page in the file.
  639. Mon Aug 11 12:45:43 1997 Ian Lance Taylor <ian@cygnus.com>
  640. * aoutx.h (NAME(aout,final_link)): Don't emit the string table if
  641. there are no symbols.
  642. Sun Aug 10 14:45:56 1997 Ian Lance Taylor <ian@cygnus.com>
  643. * coff-stgo32.c: Rename from coff-stubgo32.c to avoid old System V
  644. file system 14 character limit.
  645. * Makefile.am: Corresponding changes.
  646. * configure.in: Corresponding changes.
  647. * Makefile.in: Rebuild.
  648. * configure: Rebuild.
  649. Fri Aug 8 18:34:36 1997 Ian Lance Taylor <ian@cygnus.com>
  650. * Makefile.am: (ALL_MACHINES_CFILES): Add elf32-d10v.c.
  651. Rebuild dependencies.
  652. * Makefile.in: Rebuild.
  653. Wed Aug 6 18:56:51 1997 Ian Lance Taylor <ian@cygnus.com>
  654. * Makefile.am (docdir): Define.
  655. * Makefile.in: Rebuild.
  656. Tue Aug 5 23:05:03 1997 Ian Lance Taylor <ian@cygnus.com>
  657. * configure: Rebuild with autoconf 2.12.1.
  658. Mon Aug 4 12:00:35 1997 Ian Lance Taylor <ian@cygnus.com>
  659. * aclocal.m4, configure: Rebuild with new automake patches.
  660. Sun Aug 3 08:15:12 1997 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
  661. * rs6000-core.c (make_bfd_asection): New function to add a section
  662. to the core file bfd.
  663. (rs6000coff_core_p): Use make_bfd_asection to add the core file
  664. sections.
  665. Use BFD routines to seek, read and stat the core file.
  666. Handle .data sections from loaded objects and anonymously mmapped
  667. regions, these are available in AIX 4 core files.
  668. Fri Aug 1 12:58:32 1997 Ian Lance Taylor <ian@cygnus.com>
  669. * configure.in: Set enable_shared before AM_PROG_LIBTOOL.
  670. * acinclude.m4: Move acmacros.m4 in here. Remove AM_PROG_LIBTOOL
  671. copy; use a patches libtool instead.
  672. * acmacros.m4: Remove.
  673. * Makefile.in: Rebuild.
  674. * aclocal.m4: Rebuild.
  675. * configure: Rebuild.
  676. Thu Jul 31 19:55:36 1997 Ian Lance Taylor <ian@cygnus.com>
  677. * Makefile.am: New file, based on old Makefile.in.
  678. * acmacros.m4: New file, copied from old aclocal.m4.
  679. * acinclude.m4: New file.
  680. * configure.in: Call AM_PROG_LIBTOOL. Remove shared library
  681. handling; now handled by libtool. Replace AC_CONFIG_HEADER with
  682. AM_CONFIG_HEADER. Replace AC_PROG_INSTALL with AM_PROG_INSTALL.
  683. Call AM_MAINTAINER_MODE, AM_CYGWIN32, and AM_EXEEXT. Change all
  684. .o files to .lo. Remove stamp-h handling in AC_OUTPUT.
  685. * acconfig.h: Mention PACKAGE and VERSION.
  686. * stamp-h.in: New file.
  687. * dep-in.sed: Change .o to .lo.
  688. * Makefile.in: Now built with automake.
  689. * aclocal.m4: Now built with aclocal.
  690. * config.in, configure: Rebuild.
  691. * VERSION: Remove.
  692. Thu Jul 31 12:09:20 1997 Geoff Keating <geoffk@ozemail.com.au>
  693. * elf32-ppc.c (ppc_elf_size_dynamic_sections): Don't set TEXTREL
  694. if there is only a relocation to a read-only but not allocatable
  695. section (like .stab).
  696. * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
  697. * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
  698. * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
  699. * elf32-mips.c (mips_elf_size_dynamic_sections): Likewise.
  700. * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
  701. * elf32-ppc.c (ppc_elf_howto_raw): Correct various comments.
  702. (ppc_elf_create_linker_section): These sections are not
  703. created by the linker (that is, they are created by the user
  704. putting data in them). In particular, they can be the source
  705. and target of relocations.
  706. (ppc_elf_adjust_dynamic_symbol): Check postcondition of
  707. bfd_elf32_link_record_dynamic_symbol. Align 16-byte common
  708. objects (for instance, 'long double') to 16-byte boundaries.
  709. (ppc_elf_size_dynamic_sections): Make the code that generates
  710. section symbols exactly the same as for sparc, reducing the
  711. number of section symbols output.
  712. (ppc_elf_check_relocs): Check postcondition of
  713. bfd_elf32_link_record_dynamic_symbol. Make default case the
  714. same as corresponding code for sparc, fixing bug involving
  715. .rela.stabs.
  716. (ppc_elf_finish_dynamic_symbol): Fix case involving GOT symbols
  717. forced to be local because of versioning (by replicating
  718. corresponding change in sparc). Treat R_PPC_RELATIVE RELA relocs
  719. as usual in ELF, not as pseudo-REL relocs (as the sparc linker
  720. does).
  721. (ppc_elf_relocate_section): Add handy debugging code for when
  722. assertion fails. Add some more 'symbol made local because of
  723. versioning' cases.
  724. * elf32-ppc.c (ppc_elf_relocate_section): Cope with addend when
  725. processing a GOT relocation as required by ABI.
  726. Wed Jul 30 21:30:35 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
  727. * elflink.h (NAME(bfd_elf,record_link_assignment)): Remove any
  728. version info if this symbol came from a dynamic object.
  729. (elf_link_add_object_symbols): Set the version info of a symbol
  730. only if the object actually contains version definitions and
  731. defines this symbol.
  732. Mon Jul 28 18:07:43 1997 Rob Savoye <rob@chinadoll.cygnus.com>
  733. * aclocal.m4: Add CYGWIN and EXEEXT autoconf macros.
  734. * configure.in: Use CYGWIN and EXEEXT autoconf macro to look for
  735. win32 dependencies.
  736. * configure: Regenerated with autoconf 2.12.
  737. * doc/Makefile.in: Add $(EXEEXT) to chew executable.
  738. Mon Jul 28 02:50:29 1997 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
  739. * rs6000-core.c (rs6000coff_core_p): If CORE_TRUNC is set, print
  740. a warning rather than returning an error.
  741. Sun Jul 27 19:54:14 1997 Felix Lee <flee@cygnus.com>
  742. * coffswap.h (coff_swap_aux_in): add semicolon to make MSVC happy.
  743. Fri Jul 25 14:50:08 1997 Felix Lee <flee@cygnus.com>
  744. * cisco-core.c: define signals for wingdb.
  745. Fri Jul 25 16:27:07 1997 Ian Lance Taylor <ian@cygnus.com>
  746. * ecofflink.c (bfd_ecoff_debug_accumulate): Only merge files with
  747. the same number of aux entries.
  748. Fri Jul 25 08:22:15 1997 Jeffrey A Law (law@cygnus.com)
  749. * som.c (hppa_som_gen_reloc_type): Use R_DATA_EXPR for the
  750. difference of two symbols if the relocation size is 32 bits.
  751. (som_write_fixups): Handle R_DATA_EXPR.
  752. Wed Jul 23 16:08:02 1997 Ian Lance Taylor <ian@cygnus.com>
  753. * coff-i386.c (coff_i386_reloc): Don't offset a common symbol by
  754. its value if COFF_WITH_PE is defined.
  755. Tue Jul 22 17:19:45 1997 Robert Hoehne <robert.hoehne@Mathematik.TU-Chemnitz.DE>
  756. * coff-stubgo32.c: New file.
  757. * go32stub.h: New file.
  758. * coff-i386.c: If COFF_GO32_EXE, include coff/go32exe.h.
  759. * coffswap.h (coff_swap_filehdr_in): Invoke
  760. COFF_ADJUST_FILEHDR_IN_PRE and COFF_ADJUST_FILEHDR_IN_POST if they
  761. are defined.
  762. (coff_swap_filehdr_out): Invoke COFF_ADJUST_FILEHDR_OUT_PRE and
  763. COFF_ADJUST_FILEHDR_OUT_POST if they are defined.
  764. (coff_swap_aux_in): Invoke COFF_ADJUST_AUX_IN_PRE and
  765. COFF_ADJUST_AUX_IN_POST if they are defined.
  766. (coff_swap_aux_out): Invoke COFF_ADJUST_AUX_OUT_PRE and
  767. COFF_ADJUST_AUX_OUT_POST if they are defined.
  768. (coff_swap_scnhdr_in): Invoke COFF_ADJUST_SCNHDR_IN_PRE and
  769. COFF_ADJUST_SCNHDR_IN_POST if they are defined.
  770. (coff_swap_scnhdr_out): Invoke COFF_ADJUST_SCNHDR_OUT_PRE and
  771. COFF_ADJUST_SCNHDR_OUT_POST if they are defined.
  772. * targets.c (go32stubbedcoff_vec): Declare.
  773. (bfd_target_vector): Add go32stubbedcoff_vec.
  774. * configure.in (go32coff_vec): New target vector.
  775. (go32stubbedcoff_vec): Likewise.
  776. * config.bfd (i[3456]86-*-msdosdjgpp*): New target.
  777. (i[3456]86-*-go32*): Change to be like new msdosdjgpp*.
  778. * Makefile.in: Rebuild dependencies.
  779. (BFD32_BACKENDS): Add coff-stubgo32.o.
  780. (BFD32_BACKENDS_CFILES): Add coff-stubgo32.c.
  781. (HFILES): Add go32stub.h.
  782. Tue Jul 22 15:09:12 1997 Ian Lance Taylor <ian@cygnus.com>
  783. * configure.in: Check for fdopen.
  784. * configure, config.in: Rebuild.
  785. * opncls.c (bfd_fdopenr): Check HAVE_FDOPEN rather than VMS or
  786. __GO32__. Reindent a bit.
  787. Sun Jul 20 20:05:20 1997 Ian Lance Taylor <ian@cygnus.com>
  788. * sunos.c (sunos_create_dynamic_sections): Set SEC_LINKER_CREATED
  789. flag for newly created sections.
  790. (sunos_add_dynamic_symbols): Don't discard newly created sections
  791. if shared library is dynobj.
  792. Mon Jul 14 15:33:55 1997 Ian Lance Taylor <ian@cygnus.com>
  793. * elf.c (map_sections_to_segments): When checking whether
  794. including a section in a segment would force us to skip a page,
  795. align the address of the next segment to avoid wraparound
  796. problems.
  797. Tue Jul 8 12:11:29 1997 Fred Fish <fnf@cygnus.com>
  798. * coffcode.h (coff_write_object_contents): Initialize
  799. target id field to TIC80_TARGET_ID.
  800. * coffswap.h (coff_swap_filehdr_out): Swap out target id field
  801. if used.
  802. (coff_swap_filehdr_in): Swap in target id field if used.
  803. Mon Jul 7 16:41:20 1997 Ian Lance Taylor <ian@cygnus.com>
  804. * coff-i386.c (coff_i386_is_local_label_name): New static function
  805. if TARGET_UNDERSCORE.
  806. (coff_bfd_is_local_label_name): Define if TARGET_UNDERSCORE.
  807. (i386coff_vec): Add SEC_CODE and SEC_DATA to section_flags.
  808. Mon Jun 30 14:29:26 1997 Ian Lance Taylor <ian@cygnus.com>
  809. * elf32-m68k.c (howto_table): Use complain_overflow_bitfield, not
  810. complain_overflow_signed, for 32 bit PC relative relocations.
  811. Thu Jun 26 01:26:31 1997 Ian Lance Taylor <ian@cygnus.com>
  812. * elflink.h (elf_link_add_object_symbols): When a version
  813. indirection symbol is overridden, make the original symbol point
  814. at the real overriding symbol.
  815. * elf.c (bfd_elf_string_from_elf_section): Check for an invalid
  816. string index.
  817. * elflink.h (elf_link_output_extsym): Use the right section for a
  818. common symbol.
  819. * elf32-mips.c (mips_elf_link_output_symbol_hook): If a common
  820. symbol was in .scommon, mark it as SHN_MIPS_SCOMMON.
  821. Wed Jun 25 12:43:10 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
  822. * elflink.h (elf_merge_symbols): Resolve indirect and warning
  823. symbols before checking for new symbols.
  824. * elfcore.h (elf_corefile_note): Move out of HAVE_SYS_PROCFS_H.
  825. Tue Jun 24 11:20:43 1997 Ian Lance Taylor <ian@cygnus.com>
  826. * coffgen.c (coff_object_p): Read the f_opthdr bytes from the
  827. file, not aoutsz bytes (they are different in XCOFF .o files).
  828. * xcofflink.c (xcoff_link_add_symbols): Permit symbols to be
  829. redefined by objects included from archives.
  830. Mon Jun 23 18:03:27 1997 Ian Lance Taylor <ian@cygnus.com>
  831. * elflink.h (elf_merge_symbol): In the case of a new defined
  832. symbol overriding an old defined symbol, return the hash table
  833. entry which we modify, even if it is the target of an
  834. indirection.
  835. (elf_link_add_object_symbols): If the real name of the symbol gets
  836. overridden, convert the versioned symbol into an indirect symbol
  837. to the real symbol.
  838. * elflink.h (elf_merge_symbol): New static function, broken out of
  839. elf_link_add_object_symbols.
  840. (elf_link_add_object_symbols): Call it.
  841. Sun Jun 22 19:40:57 1997 Ian Lance Taylor <ian@cygnus.com>
  842. * coff-i386.c (i3coff_object_p): If COFF_IMAGE_WITH_PE, hack to
  843. handle case where COFF filehdr does not immediately follow PE
  844. header.
  845. * coffgen.c (coff_object_p): Remove useless seek to current
  846. location.
  847. Wed Jun 18 19:03:38 1997 Ian Lance Taylor <ian@cygnus.com>
  848. * linker.c (link_action): Change COMMON_ROW/indr to from CREF to
  849. REFC.
  850. Tue Jun 17 11:55:02 1997 Ian Lance Taylor <ian@cygnus.com>
  851. * cofflink.c (_bfd_coff_link_input_bfd): If stripping debugging
  852. symbols, skip N_ABS symbols with debugging storage classes.
  853. Mon Jun 16 18:56:27 1997 Geoff Keating <geoffk@ozemail.com.au>
  854. * elf32-ppc.c (ppc_elf_relocate_section): Don't emit R_PPC_REL*
  855. relocs in shared libraries which refer to local symbols. Cope
  856. with addend when processing a GOT relocation.
  857. * elf32-ppc.c (ppc_elf_size_dynamic_sections): Only create symbols
  858. for sections that the linker didn't create.
  859. (ppc_elf_finish_dynamic_sections): Only try to write out a section
  860. symbol if it was created in ppc_elf_size_dynamic_sections.
  861. (ppc_elf_relocate_section): Complain if we have to generate a reloc
  862. relative to a section for which we didn't output a symbol.
  863. * elf32-ppc.c (ppc_elf_size_dynamic_sections): Clean up. PLT
  864. relocs are 'rela' relocs, like everything else. .rela.plt is not
  865. a read-only section, so we don't have to special-case it.
  866. * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Entries in the
  867. .rela.bss section are (of course) 'rela' relocs not 'rel' relocs.
  868. * elf32-ppc.c (ppc_elf_check_relocs): Initialise srelgot.
  869. (ppc_elf_relocate_section): @got offsets are 4 from start of the
  870. actual .got section.
  871. * elflink.c (_bfd_elf_create_got_section): The three reserved
  872. words start from the symbol '_GLOBAL_OFFSET_TABLE_'.
  873. * elf32-ppc.c (ppc_elf_size_dynamic_sections): '.rela' is 5
  874. characters, not 4.
  875. * elf32-ppc.c (ppc_elf_check_relocs): Use
  876. _bfd_elf_create_got_section to create the GOT rather than
  877. ppc_elf_create_linker_section. Create the '.rela.got' section
  878. ourselves.
  879. (ppc_elf_finish_dynamic_symbol): Set up GOT relocations when a
  880. symbol has a GOT entry.
  881. (ppc_elf_relocate_section): Record when a symbol is used through
  882. the GOT, and allocate space in the GOT for each such symbol.
  883. (ppc_elf_adjust_dynamic_symbol): Delete unused .got.plt stuff.
  884. (ppc_elf_create_linker_section): Delete unused LINKER_SECTION_GOT
  885. stuff.
  886. * elf32-ppc.c (ppc_elf_howto_raw): GOT16_HA relocs should be
  887. treated in a similar way to ADDR16_HA relocs.
  888. (ppc_elf_relocate_section): PLTREL24 relocs do not get copied into
  889. shared objects; the linker must deal with them.
  890. (ppc_elf_create_linker_section): Stop setting
  891. _GLOBAL_OFFSET_TABLE_ to the wrong value; delete unused
  892. LINKER_SECTION_PLT stuff.
  893. (ppc_elf_check_relocs): Delete unused LINKER_SECTION_PLT stuff.
  894. (ppc_elf_finish_dynamic_sections): Use BFD calls to get GOT
  895. section, not ELF-specific calls.
  896. (elf_backend_plt_not_loaded): Set to 1.
  897. (elf_backend_got_symbol_offset): Set to 4.
  898. * elf-bfd.h (elf_backend_data): Add 'plt_not_loaded' member
  899. for when ld.so fills in the PLT; and 'got_symbol_offset' member.
  900. * elflink.c (_bfd_elf_create_dynamic_sections): Apply
  901. plt_not_loaded member.
  902. (_bfd_elf_create_got_section): Apply got_symbol_offset.
  903. * elfxx-target.h (elf_backend_plt_not_loaded): Set default to
  904. 'loaded'.
  905. (elf_backend_G_O_T_offset): Set default to 0.
  906. (elfNN_bed): Set added fields.
  907. * elf32-ppc.c (ppc_elf_size_dynamic_sections): Was setting
  908. DT_RELENT in shared objects; should be DT_RELAENT.
  909. * elf32-ppc.c (ppc_elf_relocate_section): Propagate
  910. R_PPC_ADDR16_HA relocs to shared objects. Cope with case where
  911. such a reloc (in a non-shared object) refers to a symbol that's
  912. not defined.
  913. Mon Jun 16 14:42:14 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
  914. * elfcode.h (put_signed_word): Define.
  915. (get_signed_word): Define.
  916. (elf_swap_reloca_in): Use get_signed_word for the r_addend field.
  917. (elf_swap_reloca_out): Use put_signed_word for the r_addend
  918. field.
  919. * elf32-m68k.c (elf_m68k_finish_dynamic_symbol): Use
  920. bfd_get_signed_32 to set the r_addend field.
  921. * elf64-mips.c (mips_elf64_swap_reloca_in): Use
  922. bfd_h_get_signed_64 to set the r_addend field.
  923. Mon Jun 16 12:31:29 1997 Ian Lance Taylor <ian@cygnus.com>
  924. * elf32-i386.c (elf_i386_relocate_section): When generating a
  925. shared library, do the relocation if the input section is not
  926. allocated in memory.
  927. * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Call
  928. elf_link_assign_sym_version before elf_adjust_dynamic_symbol.
  929. (elf_fix_symbol_flags): New static function, broken out of
  930. elf_adjust_dynamic_symbol.
  931. (elf_adjust_dynamic_symbol): Call elf_fix_symbol_flags.
  932. (elf_link_assign_sym_version): Likewise. Permit a symbol to be
  933. forced local even if NEEDS_PLT is set. When forcing a symbol to
  934. be local, clear NEEDS_PLT.
  935. (elf_link_output_extsym): Remove unused local bed.
  936. Wed Jun 11 22:44:20 1997 Jeffrey A Law (law@cygnus.com)
  937. * elf32-mn10300.c (elf32_mn10300_link_hash_entry): New structure
  938. for derived elf linker hash table entries. References to
  939. elf_link_hash_entry changed appropriately.
  940. (elf32_mn10300_link_hash_table): New structure for derived elf
  941. linker hash table.
  942. (elf32_mn10300_hash_table): Define.
  943. (elf32_mn10300_link_hash_traverse): Likewise.
  944. (elf32_mn10300_link_hash_newfunc): New function.
  945. (elf32_mn10300_link_hash_table_create): Likewise.
  946. (elf32_mn10300_finish_hash_table_entry): Likewise.
  947. (mn10300_elf_relax_section): Handle "call" -> "calls", removal
  948. of prologue code, and call:32->call:16 relaxing.
  949. (compute_function_info: New function.
  950. (bfd_elf32_bfd_ilink_hash_table_create): Define.
  951. Wed Jun 11 00:00:07 1997 Ian Lance Taylor <ian@cygnus.com>
  952. * elflink.h (elf_link_output_extsym): Call finish_dynamic_symbol
  953. for a symbol which is being forced to be local.
  954. * elf32-i386.c (elf_i386_relocate_section): Write out the
  955. relocation value for a GOT reloc for a symbol which is turning
  956. into a local symbol.
  957. (elf_i386_finish_dynamic_symbol): If a symbol is turning into a
  958. local symbol, write out a RELATIVE reloc rather than a GLOB_DAT
  959. reloc.
  960. * elf32-m68k.c, elf32-sparc.c: Corresponding changes.
  961. * elf32-i386.c (elf_i386_relocate_section): Get the relocation
  962. value if the symbol is turning into a local symbol.
  963. * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
  964. * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
  965. 1997-06-10 22:58 Ulrich Drepper <drepper@cygnus.com>
  966. * elflink.h (elf_link_add_object_symbols): Also read verneed
  967. information by calling `_bfd_elf_slurp_version_tables'.
  968. (elf_link_add_object_symbols): For undefined symbols look for
  969. version information in the verneed records.
  970. (elf_link_add_object_symbols): Use soname of shared object
  971. for verneed record if it is available.
  972. Tue Jun 10 11:13:03 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
  973. * cpu-arm.c: Add prototypes for compatible and scan.
  974. * cofflink.c: Add prototype for mark_relocs.
  975. * archive.c (bfd_special_undocumented_glue): Change filename to
  976. const pointer. Add prototype.
  977. Mon Jun 9 12:34:21 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
  978. * elflink.h (elf_link_add_object_symbols): Ignore relocations of
  979. sections that will be discarded.
  980. 1997-06-06 22:58 Ulrich Drepper <drepper@cygnus.com>
  981. * elflink.h (elf_link_find_version_dependencies): When searching
  982. for known version symbol skip non-matching verdef records, not
  983. matching records.
  984. Thu Jun 5 15:52:45 1997 Ian Lance Taylor <ian@cygnus.com>
  985. * cofflink.c (_bfd_coff_generic_relocate_section): Write a long,
  986. not a bfd_vma, to the base file, to match how dlltool reads it.
  987. Tue Jun 3 16:57:45 1997 Nick Clifton <nickc@cygnus.com>
  988. * reloc.c: Add thumb relocations.
  989. * bfd-in2.h: Add Thumb relocations.
  990. * libbfd.h: Add Thumb relocations.
  991. Mon Jun 2 10:41:52 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
  992. * cpu-m68k.c (arch_info_struct): Fix 68060 cpu name.
  993. Fri May 30 12:46:27 1997 Ian Lance Taylor <ian@cygnus.com>
  994. * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Set dynindx
  995. for a section even if it is not loaded.
  996. * cofflink.c (coff_link_add_symbols): If PE file, don't subtract
  997. section VMA.
  998. (_bfd_coff_link_input_bfd): Separate section VMA handling for
  999. input and output files.
  1000. (_bfd_coff_generic_relocate_section): Check whether input file,
  1001. not output file, is a PE file.
  1002. Wed May 28 15:48:43 1997 Nick Clifton <nickc@cygnus.com>
  1003. * coff-arm.c: (coff_arm_bfd_set_private_flags): Make static.
  1004. Wed May 28 16:16:04 1997 Ian Lance Taylor <ian@cygnus.com>
  1005. * coff-i386.c (coff_i386_reloc): Don't just exit if we see an
  1006. R_IMAGEBASE reloc.
  1007. Wed May 28 09:48:43 1997 Nick Clifton <nickc@cygnus.com>
  1008. * cpu-arm.c (compatible): Add test for supersets of ARM
  1009. architectures.
  1010. Tue May 27 19:42:03 1997 Bob Manson <manson@charmed.cygnus.com>
  1011. * cofflink.c (_bfd_coff_final_link): Initialize global_to_static
  1012. member.
  1013. Tue May 27 14:34:08 1997 Nick Clifton <nickc@cygnus.com>
  1014. * coff-arm.c (coff_arm_bfd_set_private_flags): Make global. It is
  1015. called directly by gas/config/tc-arm.c.
  1016. Tue May 27 15:58:53 1997 Richard Henderson <rth@tamu.edu>
  1017. * elf64-alpha.c (PLT_ENTRY_*): Use a new thread-safe format.
  1018. (elf64_alpha_finish_dynamic_symbol): Fill it in properly.
  1019. Mon May 26 14:05:13 1997 Ian Lance Taylor <ian@cygnus.com>
  1020. * coff-ppc.c (coff_ppc_relocate_section): If PE file, don't add
  1021. section VMA.
  1022. Mon May 26 10:57:48 1997 Fred Fish <fnf@cygnus.com>
  1023. * peicode.h (coff_bfd_print_private_bfd_data): #undef before #define.
  1024. (coff_bfd_copy_private_bfd_data): Ditto.
  1025. * coff-arm.c (coff_arm_bfd_merge_private_bfd_data): Make static.
  1026. (coff_arm_bfd_print_private_bfd_data): Ditto.
  1027. (coff_arm_bfd_set_private_flags): Ditto.
  1028. (coff_arm_bfd_copy_private_bfd_data): Ditto.
  1029. Fri May 23 15:14:58 1997 Fred Fish <fnf@cygnus.com>
  1030. * libcoff-in.h (struct coff_final_link_info): Add boolean
  1031. global_to_static member for support of task linking.
  1032. (_bfd_coff_write_task_globals): Add prototype.
  1033. * libcoff.h: Regenerate.
  1034. * coffcode.h (coff_write_object_contents): Use #ifdef to
  1035. check RS6000COFF_C, to be consistent with all other uses
  1036. in this file.
  1037. * cofflink.c (_bfd_coff_final_link): If doing task linking,
  1038. call _bfd_coff_write_task_globals.
  1039. (_bfd_coff_link_input_bfd): If doing task linking, convert
  1040. global functions to static.
  1041. (_bfd_coff_write_global_sym): If doing task linking, convert
  1042. global variables to static.
  1043. (_bfd_coff_write_task_globals): New function.
  1044. * coff-tic80.c (TIC80COFF): Define this instead of just TIC80.
  1045. (C_AUTOARG): #undef since it clashes with C_UEXT.
  1046. (C_LASTENT): #undef since it clashes with C_STATLAB.
  1047. * coffcode.h (coff_write_object_contents): Use TIC80COFF
  1048. rather than TIC80.
  1049. (coff_slurp_symbol_table): Use C_SYSTEM. Hide C_AUTOARG use
  1050. when TIC80COFF defined (clashes with C_UEXT). Explicitly
  1051. recognize C_UEXT, C_STATLAB, and C_EXTLAB as unsupported.
  1052. Fri May 23 12:38:24 1997 Ian Lance Taylor <ian@cygnus.com>
  1053. * coff-tic80.c (tic80_howto_table): Change overflow check for most
  1054. PP relocations to complain_overflow_dont.
  1055. Thu May 22 20:22:14 1997 Ian Lance Taylor <ian@cygnus.com>
  1056. * coff-tic80.c (tic80_howto_table): Add PP relocations. Change
  1057. name of R_RELLONG to "RELLONG". Set rightshift and complain for
  1058. M_PPCR.
  1059. (ppbase_reloc, glob15_reloc): New static functions.
  1060. (glob16_reloc, local16_reloc): New static functions.
  1061. (rtype2howto): Handle all relocation types.
  1062. (coff_tic80_relocate_section): New static function.
  1063. (coff_relocate_section): Define to coff_tic80_relocate_section.
  1064. * Makefile.in (coff-tic80.o): Depends upon include/coff/tic80.h.
  1065. Wed May 21 17:15:50 1997 Ian Lance Taylor <ian@cygnus.com>
  1066. * coffcode.h (coff_slurp_symbol_table): If COFF_WITH_PE or
  1067. COFF_IMAGE_WITH_PE, don't subtract the section VMA from the symbol
  1068. value.
  1069. * coffgen.c (fixup_symbol_value): Add abfd parameter. Change all
  1070. callers. If PE file, don't add section VMA.
  1071. (coff_write_alien_symbol): If PE file, don't add section VMA.
  1072. * cofflink.c (_bfd_coff_link_input_bfd): Likewise.
  1073. (_bfd_coff_write_global_sym): Likewise.
  1074. (_bfd_coff_generic_relocate_section): Likewise.
  1075. * peicode.h: Add & 0xffffffff when using ImageBase in case bfd_vma
  1076. is 64 bits.
  1077. Wed May 21 09:58:10 1997 Nick Clifton <nickc@cygnus.com>
  1078. * cofflink.c (mark_relocs): Add new function to mark symbols which
  1079. are used by relocations.
  1080. (_bfd_coff_link_input_bfd): Add call to mark_relocs() and code to
  1081. suppress the skipping of symbols that have thus been marked.
  1082. Tue May 20 18:45:26 1997 Ian Lance Taylor <ian@cygnus.com>
  1083. * coff-sh.c (sh_merge_private_data): New static function.
  1084. (coff_bfd_merge_private_bfd_data): Define.
  1085. Mon May 19 14:46:00 1997 Mark Alexander <marka@cygnus.com>
  1086. * coff-tic80.c: Remove unnecessary #ifdefs.
  1087. * config.bfd: Set targ_underscore to yes for tic80.
  1088. Mon May 19 14:26:36 1997 Mark Alexander <marka@cygnus.com>
  1089. * coff-tic80.c (NAMES_HAVE_UNDERSCORE): Define (fixes problem
  1090. with unresolved external symbols in GDB).
  1091. Fri May 16 10:23:03 1997 Jeffrey A Law (law@cygnus.com)
  1092. * elf-m10300.c (elf32_mn10300_relax_section): Read in all
  1093. the symbols associated with each BFD.
  1094. (mn10300_elf_relax_delete_bytes): Don't adjust the same symbol
  1095. more than once.
  1096. * elf-m10200.c: Likewise.
  1097. * elf32-m32r.c: Likewise.
  1098. * elf32-sh.c: Likewise.
  1099. Fri May 16 12:10:52 1997 Ian Lance Taylor <ian@cygnus.com>
  1100. * elflink.h (elf_link_add_object_symbols): Don't decrease the
  1101. alignment of a common symbol. If two symbols that look like
  1102. common symbols are found in two shared libraries, and the size is
  1103. different, use the larger size, and warn if --warn-common. If a
  1104. common symbol overrides a definition in a shared library, set the
  1105. size to the larger size, and warn if --warn-common.
  1106. Thu May 15 14:31:28 1997 Nick Clifton <nickc@cygnus.com>
  1107. * cpu-arm.c (compatible): Allow default machine to be polymorphed
  1108. into any other machine type.
  1109. * coffcode.h (coff_set_flags): Initialise flags variable to 0.
  1110. * coff-arm.c (coff_arm_bfd_merge_private_bfd_data): When merging
  1111. data into an unitialised destination set its machine type as well.
  1112. Thu May 15 16:40:20 1997 Ian Lance Taylor <ian@cygnus.com>
  1113. * elflink.h (elf_link_add_object_symbols): Force ELF symbol size
  1114. to common symbol size. Consistently treat uninitialized symbols
  1115. in shared objects as common symbols.
  1116. Fri May 9 10:15:27 1997 Nick Clifton <nickc@cygnus.com>
  1117. * archures.c (constants): Added new constants to identify the
  1118. type of the ARM architecture: bfd_mach_arm_2, bfd_mach_arm_2a,
  1119. bfd_mach_arm_3, bfd_mach_arm_3M, bfd_mach_arm_4 and bfd_mach_arm_4T.
  1120. * bfd-in2.h (constants): Added new constants to identify
  1121. the type of the ARM architecture: bfd_mach_arm_2, bfd_mach_arm_2a,
  1122. bfd_mach_arm_3, bfd_mach_arm_3M, bfd_mach_arm_4 and
  1123. bfd_mach_arm_4T. This file is auto-magically generated from the
  1124. archures.c file. This update is just to save work.
  1125. * coff-arm.c (coff_arm_bfd_merge_private_bfd_data,
  1126. coff_arm_bfd_print_private_bfd_data,
  1127. coff_arm_bfd_set_private_flags,
  1128. coff_arm_bfd_copy_private_bfd_data): Added these new functions.
  1129. (global): Macro redefinitions set up to use these new functions.
  1130. * coffcode.h (coff_mkobject_hook): Added call to
  1131. coff_arm_bfd_set_private_flags().
  1132. (coff_set_arch_mach_hook): Added code to set machine type based on
  1133. bits stored in internal flags.
  1134. (coff_set_flags): Added code to set the new bits in the flags
  1135. field based on the machine number.
  1136. (function definition macros): Made all function definition macros
  1137. conditional so that they can be overridden by target specific
  1138. files.
  1139. * cpu-arm.c (compatible): Added this function. (arch_info_struct):
  1140. Structure extended to include new types, one each for ARMv2,
  1141. ARMv2a, ARMv3, ARMv3M, ARMv4 and ARMv4T.
  1142. * libcoff-in.h (struct coff_tdata): Added flags field.
  1143. Fri May 9 17:40:02 1997 Ian Lance Taylor <ian@cygnus.com>
  1144. * config.bfd (i[3456]86-*-gnu*): Don't include Mach support.
  1145. * config.bfd: Change #if 0 around uses of host_aout_vec to #if
  1146. HAVE_host_aout_vec.
  1147. Mon May 5 13:57:32 1997 Mike Meissner <meissner@cygnus.com>
  1148. * coffgen.c (coff_find_nearest_line): If there are no syments,
  1149. just return false.
  1150. Mon May 5 18:18:45 1997 Philip Blundell <pjb27@cam.ac.uk>
  1151. * config.bfd: cope with '*-*-linux-gnuaout' targets.
  1152. Thu May 1 11:31:12 1997 Ian Lance Taylor <ian@cygnus.com>
  1153. * targmatch.sed: Add explicit \n characters to work around bug in
  1154. HP/UX 10.20 sed program.
  1155. Wed Apr 30 12:27:03 1997 Ian Lance Taylor <ian@cygnus.com>
  1156. * elf.c (copy_private_bfd_data): Cast csecs to avoid sign
  1157. extension problems.
  1158. Tue Apr 22 12:06:08 1997 Ian Lance Taylor <ian@cygnus.com>
  1159. * Makefile.in (do_maintainer_clean): Don't remove bfd-in2.h.
  1160. Mon Apr 21 11:21:31 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
  1161. * elf32-m68k.c: Follow the last changes in elf32-i386.c:
  1162. (struct elf_m68k_pcrel_relocs_copied, struct
  1163. elf_m68k_link_hash_entry, struct elf_m68k_link_hash_table,
  1164. elf_m68k_link_hash_traverse, elf_m68k_hash_table,
  1165. elf_m68k_link_hash_newfunc, elf_m68k_link_hash_table_create,
  1166. elf_m68k_discard_copies, bfd_elf32_bfd_link_hash_table_create):
  1167. New definitions.
  1168. (elf_m68k_check_relocs): If linking with -Bsymbolic, don't copy
  1169. PC relative relocs for a global symbol defined in a regular
  1170. object, and count the number of PC relative relocs copied for any
  1171. global symbol.
  1172. (elf_m68k_size_dynamic_sections): If linking with -Bsymbolic,
  1173. traverse with elf_m68k_discard_copies.
  1174. Sat Apr 19 22:50:14 1997 Ian Lance Taylor <ian@cygnus.com>
  1175. * elf32-i386.c (elf_i386_check_relocs): Only count PC relative
  1176. relocs. From Jamie Lokier <jamie@rebellion.co.uk>.
  1177. * coffcode.h (coff_compute_section_file_positions): Force the
  1178. potential last byte in the file to be written out when
  1179. COFF_IMAGE_WITH_PE.
  1180. Thu Apr 17 13:46:56 1997 Per Fogelstrom <pefo@openbsd.org>
  1181. * configure.host (mips*-*-openbsd*): New host.
  1182. Thu Apr 17 11:10:54 1997 Ian Lance Taylor <ian@cygnus.com>
  1183. * elflink.h (elf_link_add_object_symbols): Only subtract the
  1184. section VMA from the symbol value if this is a fully linked file.
  1185. * elf32-i386.c (struct elf_i386_pcrel_relocs_copied): Define.
  1186. (struct elf_i386_link_hash_entry): Define.
  1187. (struct elf_i386_link_hash_table): Define.
  1188. (elf_i386_link_hash_traverse): Define.
  1189. (elf_i386_hash_table): Define.
  1190. (elf_i386_link_hash_newfunc): New static function.
  1191. (elf_i386_link_hash_table_create): New static function.
  1192. (elf_i386_check_relocs): If linking with -Bsymbolic, don't copy
  1193. PC relative relocs for a global symbol defined in a regular
  1194. object, and count the number of PC relative relocs copied for any
  1195. global symbol.
  1196. (elf_i386_size_dynamic_sections): If linking with -Bsymbolic,
  1197. traverse with elf_i386_discard_copies.
  1198. (elf_i386_discard_copies): New static function.
  1199. (bfd_elf32_bfd_link_hash_table_create): Define.
  1200. From Gordon W. Ross <gwr@mc.com>:
  1201. * aoutf1.h (MY_entry_is_text_address): Define if not defined.
  1202. (sunos4_aout_backend): Use MY_entry_is_text_address.
  1203. Wed Apr 16 12:43:32 1997 Martin Hunt <hunt@cygnus.com>
  1204. * elf32-d30v.c (elf_d30v_howto_table): Changed size of
  1205. R_D30V_32_NORMAL to 2 (4 bytes).
  1206. Wed Apr 16 14:02:29 1997 Ian Lance Taylor <ian@cygnus.com>
  1207. From Gordon W. Ross <gwr@mc.com>:
  1208. * netbsd.h (N_SHARED_LIB): Define.
  1209. (SEGMENT_SIZE): Don't define.
  1210. * m68knetbsd.c (SEGMENT_SIZE): Don't define (revert change of
  1211. April 11).
  1212. * sparcnetbsd.c (TARGET_PAGE_SIZE): Define as 0x2000.
  1213. (SEGMENT_SIZE): Don't define.
  1214. * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Set .rela.bss size
  1215. to sizeof Rela structure, not sizeof Rel structure. From Gary
  1216. Thomas <g.thomas@opengroup.org>.
  1217. Tue Apr 15 11:50:37 1997 Ian Lance Taylor <ian@cygnus.com>
  1218. * aout-target.h (MY(callback)): If entry_is_text_address, adjust
  1219. whenever entry is larger than text address, but only by whole
  1220. pages. From Gordon W. Ross <gwr@mc.com>.
  1221. * Makefile.in (install): Depend upon installdirs. Use
  1222. mkinstalldirs to build $(oldincludedir).
  1223. (installdirs): New target.
  1224. * elflink.h (elf_link_add_object_symbols): Don't call check_relocs
  1225. if this is a debugging section which we are stripping.
  1226. Mon Apr 14 12:39:30 1997 Richard Henderson <rth@tamu.edu>
  1227. * elf64-alpha.c (elf64_alpha_object_p): Allocate the
  1228. alpha-specific target data struct.
  1229. Mon Apr 14 11:45:46 1997 Ian Lance Taylor <ian@cygnus.com>
  1230. From Thomas Graichen <graichen@rzpd.de>:
  1231. * Makefile.in: Always use $(SHELL) when running move-if-change.
  1232. * configure.in: Use ${CONFIG_SHELL} when running $ac_config_sub.
  1233. * configure: Rebuild.
  1234. Fri Apr 11 15:43:24 1997 Ian Lance Taylor <ian@cygnus.com>
  1235. * elfcode.h (elf_slurp_symbol_table): Only subtract the section
  1236. VMA if this is an executable file or a shared object.
  1237. * targets.c (netbsd_core_vec): Declare. From Gordon W. Ross
  1238. <gwr@mc.com>.
  1239. * libaout.h (struct aout_backend_data): Add entry_is_text_address
  1240. field.
  1241. * aout-target.h (SEGMENT_SIZE): Define to TARGET_PAGE_SIZE at the
  1242. start of the file. Remove uses later on which switch using
  1243. ifdef.
  1244. (MY(callback)): Handle entry_is_text_address.
  1245. (MY_entry_is_text_address): Define if not defined.
  1246. (MY(backend_data)): Initialize new field.
  1247. * aoutf1.h (sunos4_aout_backend): Likewise.
  1248. * i386aout.c (MY(backend_data)): Likewise.
  1249. * i386mach3.c (MY(backend_data)): Likewise.
  1250. * mipsbsd.c (MY(backend_data)): Likewise.
  1251. * sparclynx.c (sparclynx_aout_backend): Likewise.
  1252. * netbsd.h (SEGMENT_SIZE): Define if not defined.
  1253. (MY_entry_is_text_address): Define.
  1254. * m68knetbsd.c (SEGMENT_SIZE): Define as 0x20000.
  1255. * xcofflink.c (bfd_xcoff_import_symbol): Handle importing a symbol
  1256. whose name starts with `.'.
  1257. Fri Apr 11 11:57:15 1997 Niklas Hallqvist <niklas@appli.se>
  1258. * config.bfd: (i[3456]86-*-openbsd*, m68*-*-openbsd*,
  1259. mips*el*-*-openbsd*, mips*-*-openbsd*, ns32k-*-openbsd*,
  1260. powerpc-*-*bsd*, sparc-*-openbsd*): New targets.
  1261. * configure.in (i[3456]86-*-openbsd*, mips*-*-openbsd*,
  1262. m68*-*-openbsd*, ns32k-*-openbsd*, powerpc-*-*bsd*,
  1263. sparc-*-openbsd*): New targets.
  1264. * configure: Rebuild.
  1265. Tue Apr 8 18:09:29 1997 Jamie Lokier <jamie@rebellion.co.uk>
  1266. * stabs.c (struct stab_section_info): New field
  1267. `cumulative_skips'.
  1268. (_bfd_link_section_stabs): Fill the above array.
  1269. (_bfd_stab_section_offset): Use `cumulative_skips' to
  1270. speed up offset calculation.
  1271. Tue Apr 8 00:01:31 1997 Jeffrey A Law (law@cygnus.com)
  1272. * elf-mn10300.c (mn10300_elf_relax_section): Don't forget the
  1273. addend for non pc-relative relocations.
  1274. * elf-m10300.c (bfd_elf32_mn10300_reloc): Remove prototype
  1275. for non-existent function.
  1276. * elf-m10300.c (mn10300_elf_relax_section): New function.
  1277. (mn10300_elf_relax_delete_bytes): Likewise.
  1278. (mn10300_elf_symbol_address_p): Likewise.
  1279. (mn10300_elf_get_relocated_section_contents): Likewise.
  1280. (bfd_elf32_bfd_relax_section): Define.
  1281. (bfd_elf32_bfd_get_relocated_section_contents): Likewise.
  1282. Mon Apr 7 16:47:09 1997 Ian Lance Taylor <ian@cygnus.com>
  1283. * configure.host: Set SHLIB_LIBS.
  1284. * configure.in: Substitute SHLIB_LIBS.
  1285. * configure: Rebuild.
  1286. * Makefile.in (SHLIB_LIBS): New variable.
  1287. ($(SHLIB)): Use $(SHLIB_LIBS).
  1288. Mon Apr 7 10:53:52 1997 Michael Snyder <msnyder@cleaver.cygnus.com>
  1289. * bfd-in.h bfd-in2.h: add bfd_section_lma macro to correspond
  1290. with bfd_section_vma.
  1291. Fri Apr 4 11:37:15 1997 Ian Lance Taylor <ian@cygnus.com>
  1292. * configure.in: Update file names for bfd_elf32_mn10[23]00_vec.
  1293. Correct CPU file names for mn10[23]00.
  1294. * configure: Rebuild.
  1295. * bfd.c (bfd_record_phdr): Cast count to size_t before
  1296. subtraction.
  1297. * coff-ppc.c (dump_toc): Add cast to avoid warning from SunOS cc.
  1298. * coff-rs6000.c (xcoff_read_ar_hdr): Likewise.
  1299. (xcoff_write_archive_contents): LIkewise.
  1300. * elf32-mips.c (_bfd_mips_elf_set_section_contents): Likewise.
  1301. (mips_elf_create_procedure_table): Likewise.
  1302. * peicode.h (pe_print_idata): Likewise.
  1303. (pe_print_edata, pe_print_pdata, pe_print_reloc): Likewise.
  1304. * xcofflink.c (xcoff_get_section_contents): Likewise.
  1305. (_bfd_xcoff_canonicalize_dynamic_symtab): Likewise.
  1306. (xcoff_link_add_symbols): Likewise.
  1307. (xcoff_link_add_symbols): Likewise.
  1308. * ppcboot.c (ppcboot_set_arch_mach): Make static.
  1309. (ppcboot_bfd_print_private_bfd_data): Likewise.
  1310. * elf32-mips.c (elf_mips_ctor64_howto): Set complain_on_overflow
  1311. to complain_overflow_signed.
  1312. Thu Apr 3 11:51:54 1997 Ian Lance Taylor <ian@cygnus.com>
  1313. * VERSION: Set to 2.8.1.
  1314. * Branched binutils 2.8.
  1315. * elf32-ppc.c (ppc_elf_check_relocs): Don't check SEC_ALLOC when
  1316. deciding whether to copy a reloc into a shared object.
  1317. (ppc_elf_relocate_section): Likewise. Relocate R_PPC_RELATIVE
  1318. relocs in unallocated sections.
  1319. * elf32-sparc.c (elf32_sparc_relocate_section): Relocate
  1320. R_SPARC_RELATIVE relocs in unallocated sections.
  1321. Wed Apr 2 16:19:41 1997 Mike Meissner <meissner@cygnus.com>
  1322. * elf32-ppc.c (ppc_elf_check_relocs): Undo March 26 change and
  1323. always create got section so that the _GLOBAL_OFFSET_TABLE_ label
  1324. is always created.
  1325. Wed Apr 2 10:49:07 1997 Ian Lance Taylor <ian@cygnus.com>
  1326. * elflink.h (elf_link_add_object_symbols): Let a common symbol
  1327. override an uninitialized symbol from a shared library with a
  1328. smaller size.
  1329. * elf-m10200.c: Rename from elf32-mn10200.c.
  1330. * elf-m10300.c: Rename from elf32-mn10300.c.
  1331. * cpu-m10200.c: Rename from cpu-mn10200.c
  1332. * cpu-m10300.c: Rename from cpu-mn10300.c
  1333. * Makefile.in: Update accordingly.
  1334. * elf32-mips.c (elf_mips_ctor64_howto): New static variable.
  1335. (elf_mips_isa): Move to earlier in file.
  1336. (mips_reloc_map): Remove BFD_RELOC_CTOR entry.
  1337. (bfd_elf32_bfd_reloc_type_lookup): Handle BFD_RELOC_CTOR
  1338. specially.
  1339. * elf32-mips.c (mips16_jump_reloc): Print a warning rather than
  1340. calling abort.
  1341. Tue Apr 1 16:18:05 1997 Klaus Kaempf <kkaempf@progis.de>
  1342. * configure.com: New file.
  1343. * config.h-vms: Remove file.
  1344. * makefile.vms: Update for new configure scheme.
  1345. Mon Mar 31 23:28:39 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
  1346. * libcoff-in.h (ppc_allocate_toc_section): Declare.
  1347. (ppc_process_before_allocation): Declare.
  1348. * libcoff.h: Rebuild.
  1349. * coffcode.h (coff_mkobject_hook): Declare if not a macro.
  1350. Mon Mar 31 16:29:50 1997 Joel Sherrill <joel@oarcorp.com>
  1351. * config.bfd (hppa*-*-rtems*): New target, like hppa-*-*elf*.
  1352. Mon Mar 31 16:11:35 1997 Ian Lance Taylor <ian@cygnus.com>
  1353. * coff-a29k.c (coff_a29k_relocate_section): Don't use symndx as a
  1354. symbol index for a R_IHCONST reloc.
  1355. Mon Mar 31 15:40:59 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
  1356. * targmatch.sed: Do not use \(\) recursively.
  1357. Fri Mar 28 14:44:08 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
  1358. * m68klinux.c (MACHTYPE_OK): Define.
  1359. * i386linux.c (MACHTYPE_OK): Define.
  1360. Fri Mar 28 11:56:15 1997 Ian Lance Taylor <ian@cygnus.com>
  1361. From David S. Miller <davem@caip.rutgers.edu> and H.J. Lu
  1362. <hjl@gnu.ai.mit.edu>:
  1363. * sparclinux.c: New file.
  1364. * bfd-in.h (bfd_sparclinux_size_dynamic_sections): Declare.
  1365. * bfd-in2.h: Rebuild.
  1366. * config.bfd (sparc-*-linuxaout*, sparc-*-linux*): New targets.
  1367. * configure.in (sparclinux_vec): Add to list of vectors.
  1368. * configure: Rebuild.
  1369. * targets.c (sparclinux_vec): Declare.
  1370. (bfd_target_vector): Add sparclinux_vec.
  1371. * Makefile.in: Rebuild dependencies.
  1372. (BFD32_BACKENDS): Add sparclinux.o.
  1373. (BFD32_BACKENDS_CFILES): Add sparclinux.c.
  1374. * coff-mips.c (mips_ecoff_backend_data): Initialize new
  1375. bfd_coff_backend_data field.
  1376. * coff-alpha.c (alpha_ecoff_backend_data): Likewise.
  1377. * config.bfd: Add bfd_elf64_{big,little}mips_vec to targ_selvecs
  1378. for mips*el*-*-linux* and mips*-*-linux*. From H.J. Lu
  1379. <hjl@lucon.org> and Ralf Baechle <ralf@gnu.ai.mit.edu>.
  1380. * bfd.c: Include "libiberty.h".
  1381. (strerror): Don't declare.
  1382. (bfd_errmsg): Call xstrerror rather than strerror.
  1383. Thu Mar 27 12:55:42 1997 Ian Lance Taylor <ian@cygnus.com>
  1384. * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Generate a COPY
  1385. reloc even if the symbol is in the .bss section.
  1386. * elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Likewise.
  1387. * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Likewise.
  1388. * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Likewise.
  1389. * coffcode.h (bfd_coff_backend_data): Add new field
  1390. _bfd_coff_default_section_alignment_power.
  1391. (bfd_coff_default_section_alignment_power): Define.
  1392. (bfd_coff_std_swap_table): Initialize new field.
  1393. * libcoff.h: Rebuild.
  1394. * cofflink.c (coff_link_add_symbols): Limit alignment of a common
  1395. symbol to the default section alignment.
  1396. * COPYING: Update FSF address.
  1397. Thu Mar 27 00:45:57 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
  1398. * elf32-d30v.c (elf_d30v_howto_table): Fix a typo in the
  1399. 21-bit absolute that made it act as a relative.
  1400. Wed Mar 26 14:50:20 1997 Ian Lance Taylor <ian@cygnus.com>
  1401. * elflink.c (_bfd_elf_create_linker_section): Don't set
  1402. bss_section and rel_section from existing sections.
  1403. * elf32-ppc.c (ppc_elf_check_relocs): Only create the got section
  1404. if it is needed.
  1405. Tue Mar 25 22:26:56 1997 Stu Grossman (grossman@critters.cygnus.com)
  1406. * aoutx.h (some_aout_object_p): Change executable test to fix
  1407. problems with embedded a.out systems.
  1408. Tue Mar 25 14:35:37 1997 Ian Lance Taylor <ian@cygnus.com>
  1409. * stabs.c (_bfd_stab_section_offset): New function.
  1410. * libbfd-in.h (_bfd_stab_section_offset): Declare.
  1411. * libbfd.h: Rebuild.
  1412. * elf32-i386.c (elf_i386_relocate_section): Adjust the offset of a
  1413. stab reloc.
  1414. * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
  1415. * elf32-mips.c (mips_elf_relocate_section): Likewise.
  1416. * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
  1417. * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
  1418. * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
  1419. * stabs.c (_bfd_link_section_stabs): Copy over the first header
  1420. symbol. Check for memory allocation failure of *psinfo.
  1421. (_bfd_write_section_stabs): Add psinfo parameter. Change all
  1422. callers. Set the value of the header symbol.
  1423. * libbfd-in.h (_bfd_write_section_stabs): Update declaration.
  1424. * libbfd.h: Rebuild.
  1425. Mon Mar 24 20:07:29 1997 Fred Fish <fnf@cygnus.com>
  1426. * coff-tic80.c (tic80_howto_table): Add R_ABS entry.
  1427. (rtype2howto): Handle R_ABS reloc type. Also abort on unhandled
  1428. reloc types, rather than silently failing to generate an output file.
  1429. Mon Mar 24 13:41:00 1997 Ian Lance Taylor <ian@cygnus.com>
  1430. * targmatch.sed: Use the hold space to put the #ifdef around the
  1431. the string constant.
  1432. * targets.c (UNSUPPORTED_TARGET): Don't define.
  1433. (find_target): Don't check for UNSUPPORTED_TARGET.
  1434. (bfd_set_default_target): Don't try to optimize by checking for
  1435. default.
  1436. * Makefile.in: Rebuild dependencies.
  1437. (ALL_MACHINES_CFILES): Add cpu-m32r.c.
  1438. (BFD32_BACKENDS_CFILES): Add elf32-m32r.c.
  1439. (elf32-m32r.o): Remove explicit target.
  1440. * config.bfd: Don't set targ_underscore for i[3456]86-*-gnu* or
  1441. i[3456]86-*-linux*.
  1442. * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Don't
  1443. count section symbols for sections that were created by the
  1444. linker, or are not allocatable or not loadable.
  1445. (elf32_sparc_finish_dynamic_sections): Output output section
  1446. symbols for section for which we made space for them.
  1447. Fri Mar 21 13:08:26 1997 Ian Lance Taylor <ian@cygnus.com>
  1448. * elf32-sparc.c (elf32_sparc_size_dynamic_sections): If there is
  1449. no .rela.plt section, don't output a DT_PLTGOT dynamic entry.
  1450. Fri Mar 21 12:36:46 1997 Doug Evans <dje@canuck.cygnus.com>
  1451. * elf32-m32r.c (m32r_elf_howto_table): Use special function for LO16.
  1452. (m32r_hi16_list): New static local.
  1453. (m32r_elf_hi16_reloc): Don't perform reloc, just queue it up.
  1454. (m32r_elf_do_hi16_reloc): Delete.
  1455. (m32r_elf_relocate_hi16): New function.
  1456. (m32r_elf_lo16_reloc): New function.
  1457. (m32r_elf_relocate_section): For HI16 relocs, scan for corresponding
  1458. LO16 reloc.
  1459. Mon Mar 10 16:03:31 1997 Doug Evans <dje@seba.cygnus.com>
  1460. * elf32-m32r.c (m32r_elf_create_linker_section): Delete.
  1461. (m32r_elf_add_symbol_hook): Rewrite _SDA_BASE_ support.
  1462. (m32r_elf_final_sda_base): New function.
  1463. (m32r_elf_relocate_section): Rewrite sdata support.
  1464. (m32r_elf_finish_dynamic_sections): Delete.
  1465. Thu Mar 20 12:39:02 1997 Ian Lance Taylor <ian@cygnus.com>
  1466. Based on patches from Philippe De Muyter <phdm@info.ucl.ac.be>.
  1467. * coff-svm68k.c: New file. Just defines some macros and includes
  1468. coff-m68k.c.
  1469. * coff-m68k.c: Add functions to handle common addends, moved in
  1470. from cf-m68klynx.c. Control them using COFF_COMMON_ADDEND macro.
  1471. Control whether relocs are visible using STATIC_RELOCS.
  1472. * cf-m68klynx.c: Simplify greatly: just define macros to control
  1473. coff-m68k.c.
  1474. * coff-aux.c: Likewise. Just leave add_one_symbol routine.
  1475. * targets.c (m68ksysvcoff_vec): Declare.
  1476. (bfd_target_vector): Add m68ksysvcoff_vec.
  1477. * config.bfd (m68*-motorola-sysv*): New target.
  1478. * configure.in (m68ksysvcoff_vec): New vector.
  1479. * configure: Rebuild.
  1480. * Makefile.in: Rebuild dependencies.
  1481. (BFD32_BACKENDS): Add coff-svm68k.o.
  1482. (BFD32_BACKENDS_CFILES): Add coff-svm68k.c.
  1483. * binary.c (binary_set_section_contents): Don't get misled if the
  1484. first section is not loadable. From Matthew L. Martin
  1485. <mlm@xedia.com>.
  1486. * elflink.h (elf_bfd_final_link): Set the value of a section
  1487. symbol to the section address unless doing a relocateable link.
  1488. Tue Mar 18 23:03:17 1997 Richard Henderson <rth@tamu.edu>
  1489. * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't create
  1490. .plt entry if we've taken the function's address.
  1491. (elf64_alpha_merge_gots): Merge collected flags info as well.
  1492. Tue Mar 18 22:40:09 1997 H.J. Lu <hjl@lucon.org>
  1493. * Many files: Add function prototypes.
  1494. * cpu-m68k.c (bfd_default_scan_num_mach): Don't declare.
  1495. * ecofflink.c: Include "libcoff.h" and "libecoff.h".
  1496. * elf32-ppc.c (ppc_elf_fake_sections): Make static.
  1497. * opncls.c (bfd_openstreamr): Change stream parameter to PTR.
  1498. * peicode.h: Change several void * parameters to PTR.
  1499. * srec.c (srec_get_symbol_info): Make static.
  1500. * syms.c (bfd_symbol_is_absolute): Remove.
  1501. * Makefile.in: Rebuild dependencies.
  1502. Tue Mar 18 12:58:08 1997 Ian Lance Taylor <ian@cygnus.com>
  1503. * elf32-m32r.c (m32r_elf_is_local_label_name): Remove.
  1504. (bfd_elf32_bfd_is_local_label): Don't define.
  1505. * xcofflink.c (_bfd_xcoff_bfd_final_link): Call bfd_malloc rather
  1506. than malloc.
  1507. Mon Mar 17 11:32:53 1997 Ian Lance Taylor <ian@cygnus.com>
  1508. * bfd-in.h: Don't include obstack.h.
  1509. (struct bfd_hash_table): Change memory field to PTR.
  1510. * bfd.c (struct _bfd): Change memory field to PTR.
  1511. * bfd-in2.h: Rebuild.
  1512. * libbfd-in.h (bfd_release): Declare as function, don't define as
  1513. macro.
  1514. * libbfd.h: Rebuild.
  1515. * opncls.c: Include "objalloc.h" rather than "obstack.h". Use
  1516. objalloc routines rather than obstack routines.
  1517. (obstack_chunk_alloc, obstack_chunk_free): Don't define.
  1518. (getpagesize): Don't define.
  1519. (_bfd_new_bfd): Don't set _bfd_chunksize.
  1520. (bfd_openr): Free new bfd and objalloc on failure.
  1521. (bfd_fdopenr, bfd_openstreamr, bfd_openw): Likewise.
  1522. (bfd_alloc_size): Remove.
  1523. (bfd_release): New function.
  1524. * hash.c: Include "objalloc.h" rather than "obstack.h". Use
  1525. objalloc routines rather than obstack routines.
  1526. (obstack_chunk_alloc, obstack_chunk_free): Don't define.
  1527. * ecofflink.c: Include "objalloc.h" rather than "obstack.h". Use
  1528. objalloc routines rather than obstack routines.
  1529. (obstack_chunk_alloc, obstack_chunk_free): Don't define.
  1530. (struct accumulate): Change memory to struct objalloc *.
  1531. * liboasys.h (oasys_data_type): Remove oasys_obstack field.
  1532. * dep-in.sed: Don't remove obstack.h from dependency list.
  1533. * Makefile.in: Rebuild dependencies.
  1534. (BFD_H_DEPS): Remove obstack.h.
  1535. (install): Don't install obstack.h.
  1536. * Many files: Don't include "obstack.h".
  1537. * VERSION: Bump.
  1538. * opncls.c (bfd_alloc_grow, bfd_alloc_finish): Remove.
  1539. * libbfd-in.h (bfd_alloc_grow, bfd_alloc_finish): Don't declare.
  1540. * libbfd.h: Rebuild.
  1541. * ieee.c (ieee_archive_p): Rewrite to not use bfd_alloc_grow.
  1542. * sunos.c (sunos_add_dynamic_symbols): Likewise.
  1543. * srec.c (srec_scan): Rewrite to not use obstack_1grow.
  1544. * opncls.c (bfd_alloc): Rename from bfd_alloc_by_size_t. Remove
  1545. old version of bfd_alloc.
  1546. * libbfd-in.h (bfd_alloc_by_size_t): Don't declare.
  1547. * libbfd.h: Rebuild.
  1548. * Several files: Call bfd_alloc rather than bfd_alloc_by_size_t.
  1549. Sat Mar 15 15:24:18 1997 Ian Lance Taylor <ian@cygnus.com>
  1550. * elf32-mips.c (mips_elf_is_local_label_name): Accept the generic
  1551. ELF local label syntax as well.
  1552. Sat Mar 15 10:16:42 1997 Fred Fish <fnf@cygnus.com>
  1553. * config.bfd (powerpc-*-beos*): New target.
  1554. * configure.in (powerpc-*-beos*): Add case that explicitly
  1555. does not set COREFILE for now. A future BeOS version is
  1556. expected to support core files.
  1557. * configure: Regenerate with autoconf.
  1558. Fri Mar 14 16:43:22 1997 Ian Lance Taylor <ian@cygnus.com>
  1559. * elf32-mips.c (mips_elf_check_relocs): Give an error if CALL16 is
  1560. seen with a local symbol, rather than crashing.
  1561. * elfcode.h (elf_slurp_symbol_table): Don't try to read the
  1562. version symbols if there aren't any.
  1563. Thu Mar 13 16:38:30 1997 Fred Fish <fnf@cygnus.com>
  1564. * coff-tic80.c (coff_rtype_to_howto): Define
  1565. (coff_tic80_rtype_to_howto): Clone generic coff version and
  1566. add code to handle the funky TI "internal relocations".
  1567. Thu Mar 13 14:08:53 1997 Ian Lance Taylor <ian@cygnus.com>
  1568. * elflink.h (elf_link_add_object_symbols): Don't warn about type
  1569. or size changes because of a weak symbol.
  1570. * cisco-core.c (SIGEMT): Define if not defined.
  1571. Wed Mar 12 21:36:05 1997 Ian Lance Taylor <ian@cygnus.com>
  1572. * elflink.h (elf_link_add_object_symbols): Use extsymoff when
  1573. setting ever. Sanity check the version number. Sort out copying
  1574. flags and other information when adding an indirect symbol.
  1575. (NAME(bfd_elf,size_dynamic_sections)): Preserve any dynamic
  1576. symbols added by the backend. Clear the entire contents of the
  1577. versym section.
  1578. (elf_export_symbol): Ignore indirect symbols.
  1579. (elf_link_output_extsym): Accept a section without an owner in an
  1580. assert.
  1581. * elfcode.h (elf_slurp_symbol_table): Add a sanity check on the
  1582. version count. Correct the allocation of x_versymp.
  1583. * elf32-mips.c (mips_elf_add_symbol_hook): Don't set the owner of
  1584. the magic sections used for SHN_MIPS_TEXT and SHN_MIPS_DATA.
  1585. Don't return bfd_und_section_ptr when info->shared.
  1586. (mips_elf_final_link): Set the alignment of .rtproc to 4, not 12.
  1587. (mips_elf_create_dynamic_sections): Correct type: ^= for &=.
  1588. (mips_elf_check_relocs): Resolve an indirect symbol in
  1589. sym_hashes.
  1590. (mips_elf_finish_dynamic_symbol): Don't change SHN_ABS into
  1591. SHN_MIPS_TEXT or SHN_MIPS_DATA.
  1592. * elf.c (bfd_elf_print_symbol): Tweak version output slightly.
  1593. Tue Mar 11 01:38:36 1997 Ian Lance Taylor <ian@cygnus.com>
  1594. From Eric Youngdale <eric@andante.jic.com>:
  1595. * elf-bfd.h (ELF_LINK_FORCED_LOCAL): Define.
  1596. * elf.c (bfd_elf_print_symbol): Correct errors in last change.
  1597. * elflink.h (elf_link_add_object_symbols): Handle cases in which a
  1598. versioned symbol appears in both a regular and a shared object.
  1599. (elf_link_assign_sym_version): Set ELF_LINK_FORCED_LOCAL when
  1600. appropriate. Improve error message.
  1601. (struct elf_outext_info): Rename from elf_finfo_failed. Change
  1602. all uses. Add localsyms field.
  1603. (elf_bfd_final_link): When generating a shared library, call
  1604. elf_link_output_extsym to output all local symbols.
  1605. (elf_link_output_extsym): Handle symbols which were forced to
  1606. become local.
  1607. Sun Mar 9 23:08:49 1997 Ian Lance Taylor <ian@cygnus.com>
  1608. From Eric Youngdale <eric@andante.jic.com>:
  1609. * elf-bfd.h (elf_symbol_type): Add version field.
  1610. * elfcode.h (elf_slurp_symbol_table): Set version field.
  1611. * elflink.h (elf_link_add_object_symbols): When creating an
  1612. indirect symbol for a default version symbol, set DEF_DYNAMIC if
  1613. appropriate. Set up an indirection from the nondefault version of
  1614. the symbol as well.
  1615. (NAME(bfd_elf,size_dynamic_sections)): Call
  1616. elf_link_assign_sym_version before checking whether there are any
  1617. versions. Always record the version name as a dynamic symbol.
  1618. Initialize counters.
  1619. (elf_link_assign_sym_version): After finding a version, see if a
  1620. symbol should be forced to local scope. Create a new version
  1621. definition if appropriate.
  1622. (elf_link_output_extsym): Correct indirect symbol handling.
  1623. * elf.c (bfd_elf_print_symbol): Print version information.
  1624. (bfd_section_from_shdr): Turn version sections into BFD sections.
  1625. (elf_fake_sections): Only copy cverdefs and cverrefs into sh_info
  1626. if sh_info is not already set.
  1627. (_bfd_elf_copy_private_section_data): Copy sh_info for version
  1628. sections.
  1629. * elflink.c (_bfd_elf_link_record_dynamic_symbol): Tell
  1630. _bfd_stringtab_add to copy the name into permanent memory if
  1631. appropriate.
  1632. Fri Mar 7 11:55:31 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
  1633. * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Fully parenthesize.
  1634. Fri Mar 7 10:37:30 1997 Ian Lance Taylor <ian@cygnus.com>
  1635. * coffcode.h (bfd_coff_backend_data): Change
  1636. _bfd_coff_compute_section_file_positions to return a boolean
  1637. value. Change all callers.
  1638. (coff_compute_section_file_positions): Change return type to
  1639. boolean. If the size of the last section changed, then output a
  1640. zero byte at the end of the file.
  1641. * libcoff.h: Rebuild.
  1642. * xcofflink.c (_bfd_xcoff_bfd_final_link): Always allocate space
  1643. for at least 6 output symbols.
  1644. (xcoff_write_global_symbol): When emitting TOC entry relocs, also
  1645. emit a TC csect to represent the space they take up. For an XO
  1646. symbol, just emit a reference, not a csect.
  1647. * Makefile.in ($(SHLINK)): Just use ln -s, not ln -sf, since
  1648. Solaris doesn't like the combined options, and the -f is
  1649. unnecessary.
  1650. (stamp-tshlink, install): Likewise.
  1651. * elf32-mips.c (mips_elf_relocate_section): Correct R_MIPS16_26
  1652. handling when little endian.
  1653. Thu Mar 6 13:51:51 1997 Jeffrey A Law (law@cygnus.com)
  1654. * elf32-mn10300.c (mn10300_elf_final_link_relocate): New function.
  1655. (mn10300_elf_relocate_section): Likewise.
  1656. (elf_backend_relocate_section): Define.
  1657. * elf32-mn10300.c (reloc_type): Remove PCREL{8,16,32}_{1,2}BYTE
  1658. relocs. Replace them with generic PCREL_{8,16,32} relocs.
  1659. (elf32_mn10300_howto_table): Likewise.
  1660. (elf32_mn10300_reloc_map): Likewise.
  1661. (bfd_elf32_mn10300_reloc): Delete unused function.
  1662. Thu Mar 6 12:19:59 1997 Fred Fish <fnf@cygnus.com>
  1663. * coff-tic80.c (rtype2howto): If passed a relocation type we don't
  1664. understand, just set the howto field to NULL, and the caller will
  1665. print an appropriate error message.
  1666. * coffcode.h (coff_slurp_reloc_table): Pull duplicate declarations and
  1667. code fragment out of both legs of #ifdef RELOC_PROCESSING ... #endif
  1668. block. Use NULL for initializations of "ptr" rather than bare 0.
  1669. * coff-h8300.c: Fix typo in comment.
  1670. * coff-h8500.c: Ditto.
  1671. * coff-w65.c: Ditto
  1672. * coff-z8k.c: Ditto.
  1673. Wed Mar 5 13:59:09 1997 Doug Evans <dje@seba.cygnus.com>
  1674. * elf32-m32r.c (m32r_elf_do_10_pcrel_reloc): Fix overflow calc.
  1675. (m32r_elf_relax_section, m32r_elf_relax_delete_bytes,
  1676. m32r_elf_get_relocated_section_contents): First pass at relax support.
  1677. Mon Mar 3 13:27:09 1997 Ulrich Drepper <drepper@rtl.cygnus.com>
  1678. * elflink.h (elf_link_add_object_symbols): Use correct sh_size
  1679. entry for reading verdef records.
  1680. Use correct braces for computing increments of extverdaux and
  1681. exteverdef record pointers.
  1682. Sun Mar 2 22:47:54 1997 Fred Fish <fnf@cygnus.com>
  1683. * coff-tic80.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Set this to 2
  1684. instead of 4.
  1685. Sun Mar 2 16:25:35 1997 Ian Lance Taylor <ian@cygnus.com>
  1686. * elflink.h (elf_link_find_version_dependencies): Check that
  1687. DEF_REGULAR is not set as well as checking that DEF_DYNAMIC is
  1688. set.
  1689. Fri Feb 28 16:52:40 1997 Fred Fish <fnf@cygnus.com>
  1690. * coffcode.h (coff_set_flags): Add case for TIC80_ARCH_MAGIC.
  1691. Fri Feb 28 15:06:45 1997 Ian Lance Taylor <ian@cygnus.com>
  1692. * targets.c (bfd_default_vector): Make non-const.
  1693. (find_target): New static function, broken out of
  1694. bfd_find_target.
  1695. (bfd_set_default_target): New function.
  1696. (bfd_find_target): Call find_target. When defaulting, use
  1697. bfd_default_vector[0] if it is not NULL.
  1698. * libbfd-in.h (bfd_default_vector): Adjust declaration.
  1699. * bfd-in2.h, libbfd.h: Rebuild.
  1700. * syms.c (bfd_is_local_label): Return false if the symbol has no
  1701. name.
  1702. * coff-i960.c (coff_i960_is_local_label_name): New function.
  1703. (coff_bfd_is_local_label_name): Define.
  1704. * coff-m68k.c (m68k_coff_is_local_label_name): New function.
  1705. (coff_bfd_is_local_label_name): Define.
  1706. * coff-rs6000.c (xcoff_is_local_label_name): New function.
  1707. (coff_bfd_is_local_label_name): Define.
  1708. * elf.c (_bfd_elf_is_local_label_name): Treat symbols beginning
  1709. with .. or _.L_ as local.
  1710. * elf32-i386.c (elf_i386_is_local_label_name): New function.
  1711. (bfd_elf32_bfd_is_local_label_name): Define.
  1712. * evax-alpha.c (evax_bfd_is_local_label_name): Treat symbols
  1713. beginning with $ as local.
  1714. Thu Feb 27 18:36:23 1997 Ian Lance Taylor <ian@cygnus.com>
  1715. * aoutx.h (aout_link_write_symbols): Use bfd_is_local_label_name
  1716. rather than comparing against info->lprefix.
  1717. * cofflink.c (_bfd_coff_link_input_bfd): Likewise.
  1718. * elflink.h (elf_link_input_bfd): Likewise.
  1719. * linker.c (_bfd_generic_link_output_symbols): Likewise.
  1720. * xcofflink.c (xcoff_link_input_bfd): Likewise.
  1721. * elfxx-target.h (bfd_elfNN_bfd_is_local_label_name): Define as
  1722. _bfd_elf_is_local_label_name if not already defined.
  1723. * elf.c (_bfd_elf_is_local_label_name): New function.
  1724. * elf-bfd.h (_bfd_elf_is_local_label_name): Declare.
  1725. * coff-m88k.c (coff_bfd_is_local_label_name): Define.
  1726. (m88k_is_local_label_name): New static function.
  1727. * coffcode.h (coff_bfd_is_local_label_name): Define as
  1728. _bfd_coff_is_local_label_name if not already defined.
  1729. * coffgen.c (_bfd_coff_is_local_label_name): New function.
  1730. * libcoff-in.h (_bfd_coff_is_local_label_name): Declare.
  1731. * libcoff.h: Rebuild.
  1732. * targets.c (BFD_JUMP_TABLE_SYMBOLS): Change _bfd_is_local_label
  1733. to _bfd_is_local_label_name.
  1734. (bfd_target): Likewise.
  1735. * syms.c (bfd_is_local_label): Define as function, not macro.
  1736. (bfd_is_local_name): Define.
  1737. * libbfd.c (bfd_generic_is_local_label_name): Rename from
  1738. bfd_generic_is_local_label, and take a string rather than a
  1739. symbol.
  1740. * libbfd-in.h (_bfd_nosymbols_bfd_is_local_label): Don't define.
  1741. (_bfd_nosymbols_bfd_is_local_label_name): Define.
  1742. (bfd_generic_is_local_label): Don't declare.
  1743. (bfd_generic_is_local_label_name): Declare.
  1744. * bfd-in2.h, libbfd.h: Rebuild.
  1745. * All backends: Change local_label to local_label_name.
  1746. * elf32-mips.c (struct mips_got_info): Add assigned_gotno field.
  1747. (mips_elf_relocate_got_local): Change return type to boolean.
  1748. Don't assume that the first zero entry is unassigned; instead, use
  1749. assigned_gotno.
  1750. (mips_elf_relocate_section): Check return value of
  1751. mips_elf_relocate_got_local.
  1752. (mips_elf_create_got_section): Initialize assigned_gotno field.
  1753. Wed Feb 26 15:19:51 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
  1754. * elf32-d30v.c (bfd_elf_d30v_reloc): Add code to do 32-bit
  1755. relocations.
  1756. Wed Feb 26 13:33:03 1997 Ian Lance Taylor <ian@cygnus.com>
  1757. * elflink.h (elf_link_input_bfd): Don't skip symbols from sections
  1758. that have no contents merely because linker_mark is not set.
  1759. Tue Feb 25 18:51:35 1997 Stan Shebs <shebs@andros.cygnus.com>
  1760. * config.bfd (mips*-*-lnews*): New target.
  1761. * coff-mips.c (mips_relocate_section): Make assert compare
  1762. content byteorder instead of header byteorder.
  1763. (ecoff_biglittle_vec): New BFD, big-endian headers, little-endian
  1764. data.
  1765. * targets.c (bfd_target_vector): Add ecoff_biglittle_vec.
  1766. * configure.in (ecoff_biglittle_vec): Add case.
  1767. * configure: Update.
  1768. Tue Feb 25 00:32:49 1997 Ian Lance Taylor <ian@cygnus.com>
  1769. * elf.c (elf_fake_sections): Use SHT_NOTE for any section whose
  1770. name begins with ".note".
  1771. (map_sections_to_segments): Add a PT_NOTE segment for any loadable
  1772. section whose name begins with ".note".
  1773. (get_program_header_size): Corresponding change.
  1774. * elf32-mips.c (mips_elf_relocate_section): Check for misaligned
  1775. jal and for jal overflow.
  1776. Mon Feb 24 17:53:14 1997 Ian Lance Taylor <ian@cygnus.com>
  1777. From Eric Youngdale <eric@andante.jic.com>:
  1778. * elflink.h (elf_link_add_archive_symbols): If a default symbol is
  1779. not found, try looking it up again without the version name.
  1780. (elf_link_add_object_symbols): Always link against the dynamic
  1781. symbol table of a dynamic object. When linking against a dynamic
  1782. object, include version strings in symbol names, and set up
  1783. version information. Add indirect symbols for default versions.
  1784. (elf_link_create_dynamic_sections): Add special version sections.
  1785. (struct elf_assign_sym_version_info): Define.
  1786. (struct elf_find_verdep_info): Define.
  1787. (NAME(bfd_elf,size_dynamic_sections)): Add verdefs parameter. Set
  1788. up version sections.
  1789. (elf_adjust_dynamic_symbol): Ignore indirect symbols.
  1790. (elf_link_find_version_dependencies): New static function.
  1791. (elf_link_assign_sym_version): New static function.
  1792. (elf_link_renumber_dynsyms): New static function.
  1793. (struct elf_final_link_info): Add symver_sec field.
  1794. (elf_bfd_final_link): Initialize finfo.symver_sec. Don't count
  1795. local symbols of a dynamic object. Handle DT_VER* constants.
  1796. (elf_link_output_extsym): Simplify BFD_ASSERT checking for a
  1797. dynamic object. Skip indirect symbols from ELF objects. Remove
  1798. the version name before choosing a hash bucket. Write out the
  1799. version information if appropriate.
  1800. (elf_link_input_bfd): Check for DYNAMIC, not ET_DYN.
  1801. * bfd-in.h (bfd_elf32_size_dynamic_sections): Update declaration.
  1802. (bfd_elf64_size_dynamic_sections): Likewise.
  1803. * bfd-in2.h: Rebuild.
  1804. * elf-bfd.h (struct elf_link_hash_entry): Add verinfo field.
  1805. Change elf_link_hash_flags to unsigned short.
  1806. (ELF_LINK_HIDDEN): Define.
  1807. (struct elf_obj_tdata): Add fields dynversym_hdr, dynverref_hdr,
  1808. dynverdef_hdr, dynversym_section, dynverdef_section,
  1809. dynverref_section, cverdefs, cverrefs, verdef, verref.
  1810. (elf_dynversym, elf_dynverdef, elf_dynverref): Define.
  1811. (_bfd_elf_swap_verdef_in, _bfd_elf_swap_verdef_out): Declare.
  1812. (_bfd_elf_swap_verdaux_in, _bfd_elf_swap_verdaux_out): Declare.
  1813. (_bfd_elf_swap_verneed_in, _bfd_elf_swap_verneed_out): Declare.
  1814. (_bfd_elf_swap_vernaux_in, _bfd_elf_swap_vernaux_out): Declare.
  1815. (_bfd_elf_swap_versym_in, _bfd_elf_swap_versym_out): Declare.
  1816. (_bfd_elf_slurp_version_tables): Declare.
  1817. * elf.c (_bfd_elf_swap_verdef_in): New function.
  1818. (_bfd_elf_swap_verdef_out): Likewise.
  1819. (_bfd_elf_swap_verdaux_in, _bfd_elf_swap_verdaux_out): Likewise.
  1820. (_bfd_elf_swap_verneed_in, _bfd_elf_swap_verneed_out): Likewise.
  1821. (_bfd_elf_swap_vernaux_in, _bfd_elf_swap_vernaux_out): Likewise.
  1822. (_bfd_elf_swap_versym_in, _bfd_elf_swap_versym_out): Likewise.
  1823. (_bfd_elf_print_private_bfd_data): Add DT_VER* constants. Print
  1824. version information if there is any.
  1825. (_bfd_elf_link_hash_newfunc): Initialize verinfo field.
  1826. (bfd_section_from_shdr): Handle SHT_GNU_ver* section types.
  1827. (elf_fake_sections): Handle .gnu.version* section names.
  1828. (assign_section_numbers): Handle SHT_GNU_ver* section types.
  1829. (_bfd_elf_slurp_version_tables): New function.
  1830. * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't include
  1831. version name in string entered in dynamic hash table.
  1832. * elfcode.h: Include fnmatch.h.
  1833. * elf32-i386.c (elf_i386_relocate_section): Handle a dynamic
  1834. symbol which was forced to become local.
  1835. * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
  1836. * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
  1837. * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
  1838. * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
  1839. Fri Feb 21 16:15:18 1997 Jeffrey A Law (law@cygnus.com)
  1840. * elf32-mn10200.c (mn10200_elf_final_link_relocate): Simplify
  1841. somewhat.
  1842. (mn10200_elf_relax_section): Correctly compute a symbol's value
  1843. when the symbol is local, but not in the same section as we are
  1844. relaxing. Implement abs24 -> abs16, imm24 -> imm16 and d24 -> d16
  1845. relaxing.
  1846. Fri Feb 21 13:55:14 1997 Doug Evans <dje@seba.cygnus.com>
  1847. * elf32-m32r.c: Rewrite to use ELF backend linker.
  1848. Store lower 16 bits of addend in R_M32R_HI16_[SU]LO insns.
  1849. Add small data area support (R_M32R_SDA16).
  1850. * reloc.c: Document BFD_RELOC_M32R_SDA16.
  1851. * bfd-in2.h, libbfd.h: Regenerated.
  1852. Thu Feb 20 23:50:31 1997 Jeffrey A Law (law@cygnus.com)
  1853. * elf32-mn10200.c (mn10200_elf_relax_section): New function.
  1854. (mn10200_elf_relax_delete_bytes): Likewise.
  1855. (mn10200_elf_symbol_address_p): Likewise.
  1856. (mn10200_elf_get_relocated_section_contents): Likewise.
  1857. (bfd_elf32_bfd_relax_section): Define.
  1858. (bfd_elf32_bfd_get_relocated_section_contents): Likewise.
  1859. * elf32-mn10200.c (mn10200_elf_final_link_relocate): New function.
  1860. (mn10200_elf_relocate_section): Likewise.
  1861. (elf_backend_relocate_section): Define.
  1862. Tue Feb 18 17:22:59 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
  1863. * Makefile.in: New target, elf-*-D30V.
  1864. * archures.c: New target, elf-*-D30V.
  1865. * config.bfd: New target, elf-*-D30V.
  1866. * configure.in: New target, elf-*-D30V.
  1867. * elf.c: New target, elf-*-D30V.
  1868. * reloc.c: New target, elf-*-D30V.
  1869. * targets.c: New target, elf-*-D30V.
  1870. * bfd-in2.h: Rebuilt.
  1871. * configure: Rebuilt.
  1872. * libbfd.h: Rebuilt.
  1873. * cpu-d30v.c: New files.
  1874. * elf32-d30v.c: New files.
  1875. Tue Feb 18 15:31:48 1997 Fred Fish <fnf@cygnus.com>
  1876. * reloc.c (struct reloc_howto_struct): Fix typo in comment.
  1877. * bfd-in2.h: Regenerated.
  1878. * coff-tic80.c (RTYPE2HOWTO): Replace abort with real function.
  1879. (rtype2howto): Add function.
  1880. (tic80_howto_table): Add.
  1881. Tue Feb 18 11:41:00 1997 Dawn Perchik <dawn@cygnus.com>
  1882. * sysdep.h: Don't define errno in MSVC if error.h is included.
  1883. Tue Feb 18 10:04:13 1997 Jeffrey A Law (law@cygnus.com)
  1884. * elf32-v850.c (v850_elf_relocate_section): Make sure r_symndx
  1885. is initialized before it is used.
  1886. Mon Feb 17 11:28:40 1997 Ian Lance Taylor <ian@cygnus.com>
  1887. * hp300hpux.c (convert_sym_type): Don't convert a secondary common
  1888. symbol into a weak undefined symbol; leave it as a common symbol.
  1889. Fri Feb 14 19:08:03 1997 Ian Lance Taylor <ian@cygnus.com>
  1890. * elflink.h (elf_link_add_object_symbols): Don't issue a warning
  1891. about a symbol defined in a dynamic object if it has already been
  1892. defined in a regular object.
  1893. Thu Feb 13 20:53:22 1997 Klaus Kaempf (kkaempf@progis.de)
  1894. * makefile.vms: Add gcc flags to allow compiling with current gcc
  1895. snapshot
  1896. (targmatch.h): New dependency.
  1897. * reloc.c (BFD_RELOC_ALPHA_CODEADDR): New relocation for
  1898. openVMS/Alpha.
  1899. * evax.h (ALPHA_R_CODEADDR): New relocation.
  1900. * evax-alpha.c (ALPHA_R_CODEADDR): 64 bit procedure relocation for
  1901. openVMS/Alpha.
  1902. * evax-etir.c (ALPHA_R_CODEADDR): Output object code for this
  1903. relocation.
  1904. * bfd-in2.h, libbfd.h: Rebuild.
  1905. Restrict symbol length to 64 bytes, case preserving:
  1906. * evax-emh.c (_bfd_evax_write_emh): Remove case hacking.
  1907. * evax-misc.c (_bfd_evax_case_hack_symbol): Remove.
  1908. (_bfd_evax_length_hash_symbol): Added.
  1909. * evax-etir.c (_bfd_evax_write_etir): Call
  1910. _bfd_evax_length_hash_symbol before output of symbol.
  1911. * evax-egsd.c (_bfd_evax_write_egsd): Likewise.
  1912. * evax.h (flag_hash_long_names, flag_show_after_trunc): Remove.
  1913. * evax-emh.c: Output filename to object file without path.
  1914. * evax-egsd.c: New sections for local and global commons.
  1915. * evax-alpha.c, evax-emh.c, evax-egsd.c, evax-etir.c,
  1916. evax-misc.c, evax.h: Remove 8 bit characters from copyright
  1917. notices. Replace AXP with Alpha.
  1918. Wed Feb 12 18:10:30 1997 Ian Lance Taylor <ian@cygnus.com>
  1919. * sunos.c (sunos_create_dynamic_sections): We need the dynamic
  1920. sections if we are creating a shared library.
  1921. Tue Feb 11 15:45:43 1997 Doug Evans <dje@canuck.cygnus.com>
  1922. * configure.host (i386-windows): Don't set host64=true.
  1923. Tue Feb 11 15:27:32 1997 Ian Lance Taylor <ian@cygnus.com>
  1924. * elf32-mips.c (reloc_type): Add R_MIPS16_GPREL.
  1925. (elf_mips16_gprel_howto): New static variable.
  1926. (mips16_gprel_reloc): New static function.
  1927. (bfd_elf32_bfd_reloc_type_lookup): Handle BFD_RELOC_MIPS16_GPREL.
  1928. (mips_info_to_howto_rel): Handle R_MIPS16_GPREL.
  1929. (mips_elf_relocate_section): Handle R_MIPS16_GPREL.
  1930. * reloc.c (BFD_RELOC_MIPS16_GPREL): Define.
  1931. * bfd-in2.h, libbfd.h: Rebuild.
  1932. Mon Feb 10 23:25:00 1997 Doug Evans <dje@seba.cygnus.com>
  1933. * elf32-m32r.c (elf_m32r_howto_table): Change partial_inplace to true
  1934. for R_M32R_{16,32,24,HI16_ULO,HI16_SLO,LO16}.
  1935. Fri Feb 7 12:39:11 1997 Ian Lance Taylor <ian@cygnus.com>
  1936. * elflink.h (elf_link_input_bfd): If we've discarded a section,
  1937. the output section will be the absolute section; don't print an
  1938. assertion message for that case when doing a relocateable link.
  1939. Thu Feb 6 16:55:43 1997 Ian Lance Taylor <ian@cygnus.com>
  1940. * elf32-mips.c (FN_STUB, CALL_STUB, CALL_FP_STUB): Define.
  1941. (struct mips_elf_link_hash_entry): Add new fields fn_stub,
  1942. need_fn_sub, call_stub, and call_fp_stub.
  1943. (struct mips_elf_link_hash_table): Add field mips16_stubs_seen.
  1944. (mips_elf_link_hash_newfunc): Initialize new fields.
  1945. (mips_elf_link_hash_table_create): Likewise.
  1946. (mips_elf_relocate_section): Redirect relocations to use mips16
  1947. stubs when appropriate.
  1948. (mips_elf_check_relocs): Attach stub sections to the appropriate
  1949. symbol. Set need_fn_stub when appropriate.
  1950. (mips_elf_always_size_sections): New static function.
  1951. (mips_elf_check_mips16_stubs): New static function.
  1952. (elf_backend_always_size_sections): Define.
  1953. * elf-bfd.h (struct elf_obj_tdata): Add local_stubs field.
  1954. * elflink.h (elf_link_input_bfd): Discard local symbols that are
  1955. attached to sections which are not being included in the link.
  1956. Wed Feb 5 13:20:17 1997 Ian Lance Taylor <ian@cygnus.com>
  1957. * cofflink.c (_bfd_coff_generic_relocate_section): Ignore the
  1958. symbol value when computing the addend for a pc_relative
  1959. pcrel_offset reloc.
  1960. Mon Feb 3 11:54:06 1997 Ian Lance Taylor <ian@cygnus.com>
  1961. * cofflink.c (_bfd_coff_generic_relocate_section): If doing a
  1962. relocateable link, just skip pc_relative pcrel_offset relocs.
  1963. * coff-arm.c (coff_arm_rtype_to_howto): Return a different howto
  1964. structure for an ARM26 reloc which can be resolved.
  1965. (coff_arm_adjust_symndx): Only convert ARM26 to ARM26D if the
  1966. reloc can be resolved.
  1967. * coff-h8300.c (h8300_reloc16_extra_cases): Correct off by one
  1968. error in overflow check for R_RELBYTE.
  1969. Fri Jan 31 14:07:27 1997 Ian Lance Taylor <ian@cygnus.com>
  1970. * ieee.c (ieee_slurp_section_data): Pick up the start address.
  1971. From Mark Rasin <mark.rasin@telrad.co.il>.
  1972. * aoutx.h (aout_link_write_symbols): Don't apply discard_l to
  1973. debugging symbols.
  1974. Wed Jan 29 00:00:49 1997 Jeffrey A Law (law@cygnus.com)
  1975. * elf32-mn10200.c (reloc_type): Add 16bit pc-relative reloc.
  1976. (elf_mn10200_howto_table): Likewise.
  1977. (mn10200_reloc_map): Likewise.
  1978. Mon Jan 27 12:07:35 1997 Doug Evans <dje@seba.cygnus.com>
  1979. * reloc.c: Add relocs BFD_RELOC_M32R_{HI16_[US]LO,LO16}.
  1980. * bfd-in2.h, libbfd.h: Regenerated.
  1981. * elf32-m32r.c: Add support for them.
  1982. Mon Jan 27 12:25:02 1997 Ian Lance Taylor <ian@cygnus.com>
  1983. * aout-arm.c (MY_swap_std_reloc_in): Remove unused r_length.
  1984. * elf32-ppc.c (ppc_elf_check_relocs): Remove unused plt.
  1985. * elf32-v850.c (v850_elf_final_link_relocate): Remove used
  1986. r_format and r_pcrel. Always return a value.
  1987. * riscix.c (MY_final_link_callback): Define to dummy value.
  1988. * elf32-i386.c (elf_i386_size_dynamic_sections): When checking for
  1989. relocations against the text segment, look up the output name of
  1990. the reloc section.
  1991. * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
  1992. * elf32-mips.c (mips_elf_size_dynamic_sections): Likewise.
  1993. * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
  1994. * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
  1995. * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
  1996. Wed Jan 22 15:40:28 1997 Fred Fish <fnf@cygnus.com>
  1997. * coff-tic80.c (tic80coff_vec): Use correct data put/get
  1998. routines for little endian data.
  1999. * coffcode.h (coff_write_object_contents): Set magic to
  2000. TIC80_ARCH_MAGIC for TIc80.
  2001. Tue Jan 21 12:32:43 1997 Fred Fish <fnf@cygnus.com>
  2002. * coff-tic80.c (tic80coff_vec): Change to little endian data
  2003. as the default.
  2004. Thu Jan 16 17:45:57 1997 Ian Lance Taylor <ian@cygnus.com>
  2005. * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Change type of
  2006. auxiliary_filters parameter to be const char * const *. Accept a
  2007. NULL terminated array.
  2008. * bfd-in.h (bfd_elf32_size_dynamic_sections): Update declaration.
  2009. (bfd_elf32_size_dynamic_sections): Update declaration.
  2010. * bfd-in2.h: Rebuild.
  2011. Wed Jan 15 11:21:32 1997 Ian Lance Taylor <ian@cygnus.com>
  2012. * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Treat a
  2013. NOTYPE symbol in a text section as a FUNC symbol.
  2014. * coffcode.h (coff_compute_section_file_positions): Force
  2015. relocbase to be aligned to COFF_DEFAULT_SECTION_ALIGNMENT_POWER.
  2016. Tue Jan 14 08:46:33 1997 Doug Evans <dje@canuck.cygnus.com>
  2017. * libaout.h (machine_type): Reserve several values for sparclet.
  2018. Mon Jan 13 22:39:08 1997 Michael Meissner <meissner@tiktok.cygnus.com>
  2019. * config.bfd (tic80-*-*): Don't require 'coff'.
  2020. Mon Jan 13 19:36:25 1997 Michael Meissner <meissner@tiktok.cygnus.com>
  2021. * elf32-v850.c (v850_elf_howto_table): Set the special_function
  2022. table to v850_elf_reloc for all non-standard relocations.
  2023. (v850_elf_check_relocs): Add check for h being non-null.
  2024. (v850_elf_reloc): Add R_V850_ZDA_OFFSET support. Use switch
  2025. statement instead of multiple ifs.
  2026. (v850_elf_relocate_section): Fix up error message, don't just call
  2027. abort.
  2028. Mon Jan 6 13:28:35 1997 Jeffrey A Law (law@cygnus.com)
  2029. * elf32-mn10200.c (elf_mn10200_howto): Don't ever set partial-inplace.
  2030. Use bfd_elf_generic_reloc as special function for all relocs.
  2031. (bfd_elf32_mn10200_reloc): Remove unnecessary function.
  2032. * elf32-mn10200.c (elf_mn10200_howto): Set pcrel_offset for
  2033. 24bit pc-relative reloc.
  2034. Fri Jan 3 16:33:00 1997 Fred Fish <fnf@cygnus.com>
  2035. * Makefile.in (coff-tic80.o): Add coffcode.h to dependency list.
  2036. * coff-tic80.c (tic80coff_vec): Data byte order is big endian and
  2037. header byte order is little endian. Use correct bfd_get and
  2038. bfd_put routines for little endian headers.
  2039. * coffcode.h (coff_set_arch_mach_hook): Set arch to
  2040. bfd_arch_tic80 for TIC80_ARCH_MAGIC number.
  2041. Fri Jan 3 16:54:08 1997 Jeffrey A Law (law@cygnus.com)
  2042. * reloc.c: Add BFD_RELOC_24.
  2043. * elf32-mn10200.c (enum reloc_type): Add 24bit and pcrel relocs.
  2044. (elf_mn10200_howto, mn10200_reloc_map): Corresponding changes.
  2045. * bfd-in2.h, libbfd.h: Rebuilt.
  2046. Fri Jan 3 16:58:31 1997 Richard Henderson <rth@tamu.edu>
  2047. elf64-alpha multiple .got rewrite:
  2048. * elf-bfd.h (struct elf_backend_data): Add always_size_sections entry.
  2049. (bfd_elf*_mkobject): Don't define here ...
  2050. * elfxx-target.h: ... but rather here. Default always_size_sections
  2051. hook to NULL.
  2052. * elf.c (elf_mkobject): Rename to bfd_elf_mkobject, since that was
  2053. what the #defines in elf-bfd.h transmuted it to anyway.
  2054. * section.c: Add SEC_LINKER_CREATED flag.
  2055. * bfd-in2.h: Rebuild.
  2056. * elf32-i386.c (elf_i386_check_relocs): Add SEC_LINKER_CREATED to
  2057. relocation section flags.
  2058. (elf_i386_size_dynamic_sections): Use SEC_LINKER_CREATED instead of
  2059. SEC_IN_MEMORY to recognize generated bits.
  2060. * elf32-m68k.c (elf_m68k_check_relocs, elf_m68k_size_dynamic_sections):
  2061. Likewise.
  2062. * elf32-mips.c (mips_elf_final_link, mips_elf_create_dynamic_sections,
  2063. mips_elf_create_compact_rel_section, mips_elf_create_got_section,
  2064. mips_elf_check_relocs, mips_elf_size_dynamic_sections): Likewise.
  2065. * elf32-ppc.c (ppc_elf_create_linker_section,
  2066. ppc_elf_size_dynamic_sections): Likewise.
  2067. * elf32-sparc.c (elf32_sparc_check_relocs,
  2068. elf32_sparc_size_dynamic_sections): Likewise.
  2069. * elflink.c (_bfd_elf_create_got_section): Add SEC_LINKER_CREATED to
  2070. section flags.
  2071. (_bfd_elf_create_dynamic_sections): Likewise.
  2072. (_bfd_elf_make_linker_section_rela): Likewise.
  2073. * elflink.h (elf_link_create_dynamic_sections): Likewise.
  2074. (bfd_elf,size_dynamic_sections): Call the always_size_sections hook.
  2075. (elf_bfd_final_link): Use SEC_LINKER_CREATED instead of SEC_IN_MEMORY
  2076. to identify generated bits.
  2077. (elf_link_input_bfd): Likewise.
  2078. * elf64-alpha.c: Rewrite everything touching relocations.
  2079. Fri Jan 3 11:42:53 1997 Michael Meissner <meissner@tiktok.cygnus.com>
  2080. * elf32-v850.c (all functions and static variables): Go through
  2081. and regularize names to be of the form v850_elf_<xxx>.
  2082. (toplevel): Include <elf/v850.h>.
  2083. (enum reloc_type): Move to include/elf/v850.h.
  2084. (v850_elf_check_relocs): For common variables, if the variable is
  2085. referenced by a R_V850_{SDA,ZDA,TDA} relocation, put the variable
  2086. into the appropriate section.
  2087. (elf_backend_check_relocs): Define.
  2088. Tue Dec 31 15:15:28 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  2089. * elf32-v850.c (elf_v850_howto_table): Fix some spacing.
  2090. Tue Dec 31 14:44:50 1996 Ian Lance Taylor <ian@cygnus.com>
  2091. * config.bfd (mips*el-*-linux*): New target.
  2092. (mips*-*-linux*): New target.
  2093. * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Clean up.
  2094. Return a useful value.
  2095. * Makefile.in (ALL_CFLAGS): Add -D_GNU_SOURCE.
  2096. * configure.in: Check ac_cv_func_mmap_fixed_mapped, not
  2097. ac_cv_func_mmap.
  2098. * configure: Rebuild.
  2099. * configure.host: Use ac_cv_func_mmap_fixed_mapped instead of
  2100. ac_cv_func_mmap in bfd/configure.host.
  2101. * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Add
  2102. filter_shlib and auxiliary_filter_shlib parameters.
  2103. * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_AUXILIARY and
  2104. DT_FILTER.
  2105. * bfd-in.h (bfd_elf32_size_dynamic_sections): Update declaration.
  2106. (bfd_elf64_size_dynamic_sections): Likewise.
  2107. * bfd-in2.h: Rebuild.
  2108. Mon Dec 30 18:48:52 1996 Ian Lance Taylor <ian@cygnus.com>
  2109. * xcofflink.c (xcoff_build_ldsyms): When exporting all defined
  2110. symbols, don't export a symbol which is defined by an object in an
  2111. archive which contains shared objects.
  2112. Mon Dec 30 16:12:58 1996 Fred Fish <fnf@cygnus.com>
  2113. * archures.c (enum bfd_architecture): Add bfd_arch_tic80
  2114. for TI TMS320c80 (MVP).
  2115. (bfd_archures_list): Add bfd_tic80_arch.
  2116. * bfd-in2.h: Regenerate by running "make headers".
  2117. Sun Dec 29 16:18:52 1996 Fred Fish <fnf@cygnus.com>
  2118. * cpu-tic80.c (bfd_tic80_arch): Add struct.
  2119. * configure.in (case $vec): Correct typo, "tb" not "tp".
  2120. Also add cofflink.o for tic80coff_vec.
  2121. * configure: Regenerate with autoconf.
  2122. Mon Dec 30 11:54:56 1996 Ian Lance Taylor <ian@cygnus.com>
  2123. * libbfd.c: Patch up the mmap code so that it is only built if BFD
  2124. is configured with --with-mmap.
  2125. Sun Dec 29 10:48:57 1996 Fred Fish <fnf@cygnus.com>
  2126. * Makefile.in (BFD32_BACKENDS): Add coff-tic80.o
  2127. (ALL_MACHINES): Add cpu-tic80.o
  2128. (cpu-tic80.o, coff-tic80.o): Add dependencies.
  2129. * coff-tic80.c: Add skeleton, cloned from another coff config.
  2130. * coffcode.h (coff_write_object_contents): Set magic to TIC80MAGIC
  2131. for TIc80.
  2132. Fri Dec 27 20:56:41 1996 Fred Fish <fnf@cygnus.com>
  2133. * TODO: Correct a misspelling.
  2134. * coff-tic80.c: New file for TI TMS320C80 (MVP).
  2135. * cpu-tic80.c: New file for TI TMS320C80 (MVP).
  2136. * configure.in (case $vec): Add tic80coff_vec entry.
  2137. * configure: Regenerate with autoconf.
  2138. * archures.c (bfd_tic80_arch): Declare.
  2139. * bfd-in2.h (enum bfd_architecture): Add bfd_arch_tic80.
  2140. * config.bfd (case ${targ}): Add tic80*-*-coff* target.
  2141. * targets.c (tic80coff_vec): Add decl as extern bfd_target.
  2142. (bfd_target_vector): Add tic80coff_vec entry.
  2143. Fri Dec 27 11:48:12 1996 H.J. Lu <hjl@lucon.org>
  2144. * elflink.h (elf_buckets): Add some more values for larger
  2145. binaries.
  2146. Thu Dec 26 18:36:54 1996 Ian Lance Taylor <ian@cygnus.com>
  2147. * Makefile.in (install): Move subdir_do out of conditional. From
  2148. Fred Fish <fnf@cygnus.com>.
  2149. Wed Dec 18 10:04:30 1996 Jeffrey A Law (law@cygnus.com)
  2150. * elf32-mn10200.c (enum reloc_type): Enable basic 8, 16, and
  2151. 32 bit relocs.
  2152. (elf_mn10200_howto_table): Likewise.
  2153. (mn10200_reloc_map): Likewise.
  2154. Tue Dec 17 11:09:36 1996 Ian Lance Taylor <ian@cygnus.com>
  2155. * elf32-mips.c (mips_elf_add_symbol_hook): Add 1 to the value of a
  2156. mips16 symbol during the link.
  2157. (mips_elf_finish_dynamic_symbol): Subtract 1 from the value of a
  2158. mips16 symbol.
  2159. (mips_elf_link_output_symbol_hook): New static function.
  2160. (elf_backend_link_output_symbol_hook): Define.
  2161. * elf.c (bfd_elf_print_symbol): Print the st_other field if it is
  2162. not zero.
  2163. Mon Dec 16 14:38:39 1996 Ian Lance Taylor <ian@cygnus.com>
  2164. * elf.c (bfd_section_from_shdr): Don't check for reloc sections
  2165. against SEC_DEBUGGING sections here (revert patch of December 5).
  2166. * elfcode.h (elf_object_p): Check for them here, instead.
  2167. Sun Dec 15 14:46:06 1996 Ian Lance Taylor <ian@cygnus.com>
  2168. * elfcode.h (elf_slurp_reloc_table): Add dynamic parameter.
  2169. * elf.c (_bfd_elf_canonicalize_reloc): Pass new argument to
  2170. slurp_reloc_table.
  2171. (_bfd_elf_get_dynamic_reloc_upper_bound): New function.
  2172. (_bfd_elf_canonicalize_dynamic_reloc): New function.
  2173. * elf-bfd.h (struct elf_size_info): Update declaration of
  2174. slurp_reloc_table.
  2175. (_bfd_elf_get_dynamic_reloc_upper_bound): Declare.
  2176. (_bfd_elf_canonicalize_dynamic_reloc): Declare.
  2177. * elfxx-target.h: Use new dynamic reloc routines by default.
  2178. * elf64-mips.c (mips_elf64_slurp_reloc_table): Add dynamic
  2179. parameter.
  2180. Fri Dec 13 13:18:49 1996 Dan Wilder <dan@gasboy.com>
  2181. * coffcode.h (coff_set_flags): Use MC68KBCSMAGIC for bfd_arch_m68k
  2182. if NAMES_HAVE_UNDERSCORE is defined.
  2183. Fri Dec 13 11:13:23 1996 Doug Evans <dje@canuck.cygnus.com>
  2184. * libaout.h (enum machine_type): Change M_SPARCLET from 142 to 131.
  2185. Thu Dec 12 15:07:20 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  2186. * elf32-ppc.c (ppc_elf_check_relocs): Move R_PPC_PLTREL24 into the
  2187. supported relocs.
  2188. Thu Dec 12 14:55:41 1996 Ian Lance Taylor <ian@cygnus.com>
  2189. * elflink.h (elf_link_add_object_symbols): Only add a weak
  2190. symbol if the real definition is in the dynamic symbol table.
  2191. After finding the real definition, then, if it is dynamic, add the
  2192. weak symbol to the dynamic symbol table.
  2193. * coff-aux.c (coff_m68k_aux_link_add_one_symbol): Make static.
  2194. * ppcboot.c (ppcboot_set_arch_mach): Don't define; it's a
  2195. function.
  2196. (ppcboot_bfd_print_private_bfd_data): Don't take the address of an
  2197. array.
  2198. Tue Dec 10 23:23:52 1996 Jeffrey A Law (law@cygnus.com)
  2199. * elf32-mn10300.c (reloc_type): Remove big endian mn10300 reloc
  2200. variants.
  2201. (elf32_mn10300_howto_table, mn10300_reloc_map): Likewise.
  2202. (bfd_elf32_mn10300_reloc): Write data in little endian format.
  2203. * reloc.c: Remove mn10300 big endian relocs.
  2204. * bfd-in2.h, libbfd.h: Rebuilt.
  2205. * elf32-mn10200.c: Update from elf32-mn10300.c.
  2206. Fri Dec 6 15:18:05 1996 Jeffrey A Law (law@cygnus.com)
  2207. * elf32-mn10300.c (elf_symbol_leading_char): Define.
  2208. * elf32-mn10300.c: Add some comments.
  2209. Fri Dec 6 17:16:43 1996 Ian Lance Taylor <ian@cygnus.com>
  2210. * ihex.c (ihex_scan): Always initialize buf before jumping to
  2211. error_return.
  2212. (ihex_read_section): Likewise.
  2213. Thu Dec 5 22:29:18 1996 Jeffrey A Law (law@cygnus.com)
  2214. * elf32-mn10300.c (elf_mn10300_howto_table): Don't set partial-
  2215. inplace for most relocs.
  2216. Thu Dec 5 13:24:46 1996 Ian Lance Taylor <ian@cygnus.com>
  2217. * elflink.h (elf_link_add_object_symbols): Calling check_relocs
  2218. even if SEC_ALLOC is not set.
  2219. * elf32-i386.c (elf_i386_check_relocs): Don't check SEC_ALLOC
  2220. when deciding whether to copy a reloc into a shared object.
  2221. (elf_i386_relocate_section): Likewise.
  2222. * elf32-sparc.c (elf32_sparc_check_relocs): Likewise.
  2223. (elf32_sparc_relocate_section): Likewise.
  2224. * elf32-i386.c (elf_i386_check_relocs): Don't set SEC_ALLOC in a
  2225. reloc section if it is not set in the source section.
  2226. * elf32-sparc.c (elf32_sparc_check_relocs): Likewise.
  2227. * elf.c (bfd_section_from_shdr): Mark a reloc section associated
  2228. with a SEC_DEBUGGING section as SEC_DEBUGGING.
  2229. Wed Dec 4 14:18:13 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  2230. * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): #if 0 code that
  2231. expects a .got.plt until we actually create it.
  2232. Mon Dec 2 12:13:51 1996 Ian Lance Taylor <ian@cygnus.com>
  2233. * cofflink.c (_bfd_coff_generic_relocate_section): Print an error
  2234. message for bfd_reloc_outofrange, rather than aborting. From
  2235. Philippe De Muyter <phdm@info.ucl.ac.be>.
  2236. * cofflink.c (_bfd_coff_final_link): If there aren't any relocs in
  2237. a relocateable link, don't try to process them. From Heinz Wrobel
  2238. <wrobel@lpr.e-technik.tu-muenchen.de>.
  2239. Mon Dec 2 00:39:24 1996 Jeffrey A Law (law@cygnus.com)
  2240. * elf32-mn10300.c (mn10300_info_howto): Renamed from
  2241. mn10300_info_howto_rel. Tweak reloc argument to be an
  2242. Elf32_Internal_Rela.
  2243. (USE_RELA): Define instead of USE_REL.
  2244. (elf_info_to_howto, elf_info_howto_rel): Corresponding changes.
  2245. Sun Dec 1 00:18:59 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
  2246. * configure.in, configure: Handle mips*-sgi-irix6*.
  2247. * irix-core.c (irix_core_core_file_p): Accept CORE_MAGICN32
  2248. core files.
  2249. Wed Nov 27 12:10:25 1996 Ian Lance Taylor <ian@cygnus.com>
  2250. * elf32-i386.c (elf_i386_relocate_section): Warn about a
  2251. relocation against a symbol defined in a section with no output
  2252. section.
  2253. Tue Nov 26 11:07:31 1996 Ian Lance Taylor <ian@cygnus.com>
  2254. * aclocal.m4 (BFD_CC_FOR_BUILD): Don't require AC_C_CROSS.
  2255. * configure, config.in: Rebuild with autoconf 2.12.
  2256. * elf-bfd.h (struct elf_link_hash_entry): Add other field.
  2257. * elf.c (_bfd_elf_link_hash_newfunc): Initialize other field.
  2258. (swap_out_syms): Set st_other from existing st_other field.
  2259. * elflink.h (elf_link_add_object_symbols): Store st_other in hash
  2260. table other field.
  2261. (elf_link_output_extsym): Set the other field from the global hash
  2262. table entry.
  2263. * elf32-mips.c (enum reloc_type): Add R_MIPS16_26.
  2264. (elf_mips16_jump_howto): New static variable.
  2265. (mips16_jump_reloc): New static function.
  2266. (bfd_elf32_bfd_reloc_type_lookup): Handle BFD_RELOC_MIPS16_JMP.
  2267. (mips_info_to_howto_rel): Handle R_MIPS16_26.
  2268. (mips_elf_relocate_section): Handle R_MIPS16_26. Handle R_MIPS_26
  2269. to a mips16 symbol.
  2270. * reloc.c (BFD_RELOC_MIPS16_JMP): Add to list of relocs.
  2271. * bfd-in2.h, libbfd.h: Rebuild.
  2272. * cpu-mips.c (arch_info_struct): Add mips:16 entry.
  2273. Mon Nov 25 11:23:32 1996 Ian Lance Taylor <ian@cygnus.com>
  2274. * configure.host: Use long long for mips-sgi-irix6*.
  2275. * coffswap.h (coff_swap_scnhdr_out): Make line number overflow
  2276. only a warning. From Philippe De Muyter <phdemuyt@ulb.ac.be>.
  2277. Mon Nov 25 08:52:29 1996 Jeffrey A Law (law@cygnus.com)
  2278. * elf32-mn10300.c (bfd_elf32_mn10300_reloc): New function.
  2279. (enum reloc_type): Add more reloc types.
  2280. (elf32_mn10300_howto_table): Update for new reloc types.
  2281. (elf32_mn10300_reloc_map): Update for new reloc types.
  2282. * reloc.c: Add some new relocs for the mn10300 series.
  2283. * bfd-in2.h, libbfd.h: Rebuilt.
  2284. Sat Nov 23 13:26:18 1996 Jeffrey A Law (law@cygnus.com)
  2285. * som.c (setup_sections): Don't lose for a space which has
  2286. no data, but some symbols.
  2287. Fri Nov 22 11:32:13 1996 Ian Lance Taylor <ian@cygnus.com>
  2288. * sunos.c (struct sunos_link_hash_table): Add got_needed field.
  2289. (sunos_link_hash_table_create): Initialize got_needed.
  2290. (sunos_create_dynamic_sections): Only set .got section size if it
  2291. is not already set. Set got_needed.
  2292. (bfd_sunos_size_dynamic_sections): Check got_needed. Only set
  2293. sdynptr, and only handle dynamic sections, if dynamic sections are
  2294. needed.
  2295. (sunos_scan_std_relocs): Pass false to create_dynamic_sections.
  2296. Initialize .got section.
  2297. (sunos_scan_ext_relocs): Likewise.
  2298. (sunos_write_dynamic_symbol): Set up PLT entry even if this is not
  2299. a dynamic symbol.
  2300. (sunos_finish_dynamic_link): Check got_needed. Only set up
  2301. dynamic linking information if needed.
  2302. Thu Nov 21 10:31:31 1996 Rob Savoye (rob@cygnus.com)
  2303. * config.bfd: Added VersaDOS format to the Ericsson configuration.
  2304. Wed Nov 20 16:31:31 1996 Jeffrey A Law (law@cygnus.com)
  2305. * elf32-mn10300.c: Rough cut at relocs for the mn10300.
  2306. Wed Nov 13 08:12:38 1996 Jeffrey A Law (law@cygnus.com)
  2307. * Makefile.in (elf32-d10v.o): Don't depend on elf/d10v.h
  2308. anymore.
  2309. Tue Nov 12 13:30:00 1996 Dawn Perchik <dawn@cygnus.com>
  2310. * filemode.c: Include sysdep.h.
  2311. * ihex.c: Add casts to eliminate compiler warnings.
  2312. * sunos.c: Add casts to eliminate compiler warnings.
  2313. Mon Nov 11 10:37:02 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  2314. * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Create .got.plt
  2315. section.
  2316. (ppc_elf_check_relocs): Add support for R_PPC_LOCAL24PC. Make
  2317. appropriate relocations in the .so file if shared.
  2318. (ppc_elf_relocate_section): Ditto.
  2319. Tue Oct 29 15:03:02 1996 Doug Evans <dje@canuck.cygnus.com>
  2320. * elf32-m32r.c (elf_m32r_howto_table, R_M32R_24): Use
  2321. complain_overflow_unsigned.
  2322. Tue Oct 29 12:53:46 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
  2323. * elf32-d10v.c (elf_d10v_howto_table): Don't complain on
  2324. overflows for R_D10V_16 and R_D10V_18.
  2325. Tue Oct 29 13:23:53 1996 Ian Lance Taylor <ian@cygnus.com>
  2326. * ieee.c (ieee_write_section_part): Use LMA rather than VMA.
  2327. (do_with_relocs): Likewise.
  2328. (do_as_repeat): Likewise.
  2329. (copy_expression): Likewise.
  2330. Fri Oct 25 16:56:40 1996 Ian Lance Taylor <ian@cygnus.com>
  2331. * ieee.c (ieee_write_external_part): Correctly record whether
  2332. there is an external part.
  2333. Thu Oct 24 14:32:52 1996 Jeffrey A Law (law@cygnus.com)
  2334. * elf32-v850.c (elf32_v850_bfd_final_link_relocate): Correctly
  2335. handle tda offsets for sld.w and sst.w instructions.
  2336. Fix alignment check in sld.w and sst.w tda reloc handling.
  2337. Thu Oct 24 09:08:47 1996 Stu Grossman (grossman@critters.cygnus.com)
  2338. * aclocal.m4, configure: Set USE_BINARY_FOPEN for *-*-windows.
  2339. Wed Oct 23 00:53:16 1996 Jeffrey A Law (law@cygnus.com)
  2340. * elf32-v850.c: Add comments about assumptions about
  2341. char, short & long sizes.
  2342. (elf32_v850_bfd_final_link_relocate): Fix sign extension
  2343. problems for several relocs.
  2344. * elf32-v850.c (elf32_v850_howto_table): Fix typo in
  2345. R_V850_SDA_OFFSET entry.
  2346. Wed Oct 23 00:20:34 1996 Ian Lance Taylor <ian@cygnus.com>
  2347. * xcofflink.c (bfd_xcoff_import_symbol): Don't allocate ldsym.
  2348. Store import file index in ldindx.
  2349. (xcoff_build_ldsyms): Assume that ldsym was not previously
  2350. allocated. For an imported symbol, copy ldindx into l_ifile.
  2351. Tue Oct 22 19:20:38 1996 Jeffrey A Law (law@cygnus.com)
  2352. * elf32-v850.c (elf_v850_howto_table): Fix ordering of
  2353. R_V850_ZDA_OFFSET and R_V850_TDA_OFFSET. Fix various
  2354. fields in R_V850_TDA_OFFSET.
  2355. (elf32_v850_bfd_final_link_relocate): Tweak pc-relative
  2356. relocs to work more like other relocs. Handle R_V850_TDA_OFFSET
  2357. relocations.
  2358. * elf32-v850.c: Include bfdlink.h.
  2359. (bfd_elf32_v850_reloc): Return an error if we get a reloc
  2360. we can't handle.
  2361. (elf32_v850_bfd_final_link_relocate): New function.
  2362. (v850_elf_relocation_section): Likewise.
  2363. (elf_backend_relocate_section): Define.
  2364. Tue Oct 22 17:22:43 1996 Ian Lance Taylor <ian@cygnus.com>
  2365. * binary.c (binary_set_section_contents): Ignore sections which
  2366. don't have SEC_LOAD and SEC_ALLOC set.
  2367. Mon Oct 21 12:13:05 1996 Jeffrey A Law (law@cygnus.com)
  2368. * linker.c (_bfd_generic_final_link): Avoid losing static
  2369. symbols in the .bss section.
  2370. Mon Oct 21 10:54:58 1996 Ian Lance Taylor <ian@cygnus.com>
  2371. * elf32-mips.c (elf_mips_howto_table): Describe R_MIPS_64.
  2372. (mips32_64bit_reloc): New static function.
  2373. (mips_reloc_map): Add entry for BFD_RELOC_64.
  2374. (mips_elf_relocate_section): Handle R_MIPS_64.
  2375. * linker.c (default_indirect_link_order): Print an error message
  2376. when attempting to do a relocateable link with different object
  2377. file formats, rather than calling abort.
  2378. Thu Oct 17 10:43:29 1996 Doug Evans <dje@canuck.cygnus.com>
  2379. * reloc.c (m32r relocs): Rename them.
  2380. * bfd-in2.h, libbfd.h: Regenerated.
  2381. * elf32-m32r.c: Update.
  2382. (m32r_elf_10_pcrel_reloc): New function.
  2383. (elf_m32r_howto_table, R_M32R_10_PCREL entry): Use it.
  2384. (elf_m32r_howto_table, R_M32R_24 entry): Fix {src,dst}_masks.
  2385. Wed Oct 16 11:24:35 1996 Jeffrey A Law (law@cygnus.com)
  2386. * linker.c (_bfd_generic_final_link): Set "linker_mark" for
  2387. all sections that will be included in the output file.
  2388. (_bfd_generic_link_output_symbols): Discard symbols in sections
  2389. which are being discarded.
  2390. * elf32-v850.c (enum reloc_type): Add R_V850_SDA_OFFSET,
  2391. R_V850_TDA_OFFSET and R_V850_ZDA_OFFSET.
  2392. (elf_v850_howto_table): Corresponding changes.
  2393. (elf_v850_reloc_map): Corresponding changes.
  2394. * reloc.c: Add additional V850 relocations.
  2395. * bfd-in2.h, libbfd.h: Rebuilt.
  2396. * elf32-v850.c (bfd_elf32_v850_reloc): Mask out bits we
  2397. no longer want in pc-relative relocs.
  2398. Tue Oct 15 22:17:37 1996 Jeffrey A Law (law@cygnus.com)
  2399. * elf32-v850.c (bfd_elf32_v850_reloc): Don't silently
  2400. accept a reloc against an undefined sybmol!
  2401. Tue Oct 15 16:17:28 1996 Stu Grossman (grossman@critters.cygnus.com)
  2402. * elf32-v850.c: Define elf_symbol_leading_char to be '_'.
  2403. Tue Oct 15 12:40:41 1996 Ian Lance Taylor <ian@cygnus.com>
  2404. * VERSION: Bump for new relocation.
  2405. * hosts/i386bsd.h: If NBPG is not defined, define it as
  2406. PAGE_SIZE, for recent versions of FreeBSD.
  2407. Mon Oct 14 12:37:26 1996 Ian Lance Taylor <ian@cygnus.com>
  2408. * configure.host: Use `long long' as the 64 bit type on a Solaris
  2409. host, since both gcc and the SunPRO compilers support it.
  2410. Mon Oct 14 11:17:24 1996 Richard Henderson <rth@tamu.edu>
  2411. * reloc.c: Create a new BFD_RELOC_ALPHA_ELF_LITERAL. It was a
  2412. mistake to have reused the ECOFF LITERAL for ELF since they have
  2413. different semantics.
  2414. * elf64-alpha.c (elf_reloc_map): Map from ELF_LITERAL.
  2415. * bfd-in2.h, libbfd.h: Rebuild.
  2416. * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Trap .got
  2417. section overflow.
  2418. * elf64-alpha.c (elf64_alpha_relocate_section): Do not emit a
  2419. dynamic relocation for an undefweak symbol when we are building
  2420. a static executable.
  2421. Thu Oct 10 11:15:06 1996 Stan Shebs <shebs@andros.cygnus.com>
  2422. * mpw-make.sed (config.bfd, targmatch.sed): Edit references to
  2423. point explicitly to srcdir.
  2424. (targmatch.h): Edit references to point explicitly to objdir.
  2425. Thu Oct 10 14:14:23 1996 Ian Lance Taylor <ian@cygnus.com>
  2426. * config.bfd: When setting targ_cpu, don't get confused by
  2427. linux-gnu.
  2428. Tue Oct 8 08:51:19 1996 Stu Grossman (grossman@critters.cygnus.com)
  2429. * configure.host: Add support for windows host (a build done
  2430. under the Microsoft build environment).
  2431. Tue Oct 8 11:40:16 1996 Ian Lance Taylor <ian@cygnus.com>
  2432. * elflink.h (elf_link_add_object_symbols): If a symbol is a weak
  2433. definition in a dynamic object, add it to the dynamic symbol table
  2434. if any dynamic object mentions it. Reverts part of last patch.
  2435. * sunos.c (struct sunos_link_hash_table): Add got_base field.
  2436. (sunos_link_hash_table_create): Initialize got_base.
  2437. (bfd_sunos_size_dynamic_sections): If the .got section is more
  2438. than 0x1000 bytes, set __GLOBAL_OFFSET_TABLE_ and got_base to
  2439. 0x1000.
  2440. (sunos_check_dynamic_reloc): Subtract got_base from a base
  2441. relative relocation.
  2442. * elf32-mips.c (elf_mips_isa): New static function.
  2443. (_bfd_mips_elf_merge_private_bfd_data): Don't warn about linking
  2444. -mips1 and -mips2 code together, or -mips3 and -mips4 code.
  2445. Mon Oct 7 11:44:17 1996 Ian Lance Taylor <ian@cygnus.com>
  2446. * archive.c (do_slurp_coff_armap): Only treat archive as little
  2447. endian for i960 COFF.
  2448. Fri Oct 4 13:49:01 1996 Ian Lance Taylor <ian@cygnus.com>
  2449. * coffcode.h (coff_compute_section_file_positions): Adjust sofar
  2450. by the change in size of the section when EXEC_P is not set.
  2451. * coff-m68k.c (coff_rtype_to_howto): Define if not defined.
  2452. (m68kcoff_rtype_to_howto): New static function.
  2453. * cf-m68klynx.c (coff_m68k_lynx_rtype_to_howto): Add the section
  2454. VMA to the addend for a PC relative reloc.
  2455. * dep-in.sed: Rework backslash loop a bit to avoid bug in sed on
  2456. HP/UX 10.20.
  2457. * Makefile.in: Rebuild dependencies.
  2458. * dep-in.sed: Remove ../bfd/sysdep.h, since it will appear when
  2459. som.h is included.
  2460. Fri Oct 4 11:41:39 1996 Jeffrey A Law (law@cygnus.com)
  2461. * Makefile.in: Remove explicit dependencies for mn10200 and
  2462. mn10300 files.
  2463. (ALL_MACHINE_CFILES): Add cpu-mn10200.c and cpu-mn10300.c.
  2464. (BFD32_BACKENDS_CFILES): Add elf32-mn10200.c and elf32-mn10300.c
  2465. (dependencies): Rebuilt.
  2466. Thu Oct 3 16:57:51 1996 Ian Lance Taylor <ian@cygnus.com>
  2467. * cofflink.c (coff_link_add_symbols): Set obj_coff_keep_syms
  2468. during this function.
  2469. * elflink.c (_bfd_elf_create_linker_section): Only use an existing
  2470. section if the flags are compatible.
  2471. * configure.in: Add havevecs, and put it in tdefaults.
  2472. * mpw-config.in: Likewise.
  2473. * configure: Rebuild.
  2474. * targmatch.sed: New file; a sed script to build targmatch.h from
  2475. config.bfd.
  2476. * config.bfd: Add #if, #endif, and comments for targmatch.h.
  2477. * targets.c: Include "fnmatch.h".
  2478. (struct targmatch): Define.
  2479. (bfd_target_match): Define by including targmatch.h.
  2480. (bfd_find_target): If the target is not found by name, search for
  2481. it as a configuration triplet.
  2482. * Makefile.in: Rebuild dependencies.
  2483. (BFD32_BACKENDS): Add aout-arm.o, aout-sparcle.o, hp300bsd.o,
  2484. i386dynix.o, m68k4knetbsd.o, and riscix.o.
  2485. (BFD32_BACKENDS_CFILES): Add aout-arm.c, aout-sparcle.c,
  2486. hp300bsd.c, i386dynix.c, m68k4knetbsd.c, and riscix.c.
  2487. (HFILES): Add targmatch.h. Also, alphabetize and reindent.
  2488. (CFILES): Remove i386dynix.c and hp300bsd.c.
  2489. (targmatch.h): New target.
  2490. (do_clean): Remove targmatch.h.
  2491. * configure.in: Add BFD_NEED_DECLARATION(getenv).
  2492. * acconfig.h: Add NEED_DECLARATION_GETENV.
  2493. * configure, config.in: Rebuild.
  2494. * sysdep.h: If NEED_DECLARATION_GETENV, declare getenv.
  2495. * aout-adobe.c (aout_adobe_object_p): Don't declare getenv.
  2496. Thu Oct 3 09:29:09 1996 Jeffrey A Law (law@cygnus.com)
  2497. * cpu-mn10x00.c, elf32-mn10x00: Removed.
  2498. * cpu-mn10200.c, cpu-mn10300.c: New files.
  2499. * elf32-mn10200.c, elf32-mn10300.c: New files.
  2500. * Makefile.in: Break mn10x00 support into two separate
  2501. configurations, mn10200 and mn10300.
  2502. * archures.c, config.bfd, configure.in, elf.c, targets.c: Likewise.
  2503. * bfd-in2.h, configure: Rebuilt.
  2504. Thu Oct 3 15:38:19 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
  2505. * Makefile.in (do_clean): Move config.log to do_distclean.
  2506. Wed Oct 2 21:40:55 1996 Jeffrey A Law (law@cygnus.com)
  2507. * cpu-mn10x00.c, elf32-mn10x00.c: New files.
  2508. * Makefile.in (ALL_MACHINES): Add cpu-mn10x00.o.
  2509. (BFD32_BACKENDS): Similarly for elf32-mn10x00.o.
  2510. (elf32-mn10x00.o): Add dependencies.
  2511. * archures.c (enum bfd_architecture): Add bfd_arch_mn10x00.
  2512. (bfd_mn10x00_arch): Declare.
  2513. (bfd_archures_list): Add bfd_mn10x00_arch.
  2514. * config.bfd: Add mn10x00-*-*.
  2515. * configure.in: Add bfd_elf32_mn10x00_vec.
  2516. * elf.c (prep_headers): Handle bfd_arch_mn10x00.
  2517. * targets.c (bfd_elf32_mn10x00_vec): Declare.
  2518. (bfd_target_vector): Add bfd_elf32_mn10x00_vec.
  2519. * bfd-in2.h, configure: Rebuilt.
  2520. Wed Oct 2 15:46:45 1996 Klaus Kaempf <kkaempf@progis.de>
  2521. openVMS/Alpha: Provide filename and case_hack flags via
  2522. symbol table from gas.
  2523. Add case_hack code for symbol output from vax/vms.
  2524. * evax-alpha.c (evax_initialize): Remove filename handling,
  2525. filename is provided via symbol table.
  2526. (evax_get_symtab): Use local symbol count when setting up table.
  2527. * evax-egsd.c (_bfd_evax_slurp_egsd): Print correct name when
  2528. debugging.
  2529. (_bfd_evax_write_egsd): Skip file name symbol.
  2530. * evax-emh.c (get_vms_time_string): Local function now.
  2531. (_bfd_evax_write_emh): Extract source filename and case_hack flags
  2532. from symbol table.
  2533. (_bfd_evax_write_etir): Pass all symbol names through
  2534. _bfd_evax_case_hack_symbol.
  2535. * evax-misc.c (hash_string, _bfd_evax_case_hack_symbol): New
  2536. functions.
  2537. (_bfd_evax_basename): Removed.
  2538. (_bfd_get_vms_time_string): Moved to evax-emh.c.
  2539. * evax.h (evax_private_data_struct): Remove filename.
  2540. (flag_hash_long_names, flag_show_after_trunc,
  2541. flag_no_hash_mixed_case, vms_name_mapping): New flags for
  2542. vms_case_hack.
  2543. Wed Oct 2 12:02:02 1996 Ian Lance Taylor <ian@cygnus.com>
  2544. * freebsd.h (N_GET_MAGIC_NET): Don't use ntohl.
  2545. (N_GETMID_NET, N_GETFLAG_NET): Likewise.
  2546. (NO_SWAP_MAGIC): Don't define.
  2547. (SWAP_MAGIC): Define.
  2548. * cofflink.c (_bfd_coff_link_input_bfd): Don't crash if there is
  2549. no hash table entry for a global symbol.
  2550. Tue Oct 1 16:14:22 1996 Joel Sherrill <joel@oarcorp.com>
  2551. * config.bfd (mips*-*-rtems*): New target, like mips*-*-elf*.
  2552. Tue Oct 1 12:31:39 1996 Ian Lance Taylor <ian@cygnus.com>
  2553. * cofflink.c (coff_link_add_symbols): Don't override a meaningful
  2554. symbol type with T_NULL. Warn if symbol type changes. Based on
  2555. patch from Philippe De Muyter <phdm@info.ucl.ac.be>.
  2556. * elflink.h (elf_link_add_object_symbols): Only put a symbol from
  2557. a dynamic object in the dynamic symbol table if it is referenced
  2558. or defined by a regular object.
  2559. Fri Sep 27 18:41:07 1996 Stu Grossman (grossman@critters.cygnus.com)
  2560. * elf32-v850.c (bfd_elf32_v850_is_local_label): New function to
  2561. remove dwarf local labels. Shrinks binaries by a factor of 3!
  2562. Mon Sep 23 13:33:00 1996 Ian Lance Taylor <ian@cygnus.com>
  2563. * elf32-ppc.c (ppc_elf_add_symbol_hook): Create the .sbss section
  2564. by hand, rather than by calling bfd_make_section.
  2565. Mon Sep 23 09:23:41 1996 Doug Evans <dje@seba.cygnus.com>
  2566. * reloc.c: Rename m32r relocs.
  2567. * bfd-in2.h, libbfd.h: Rebuilt.
  2568. * elf32-m32r.c: Update.
  2569. Fri Sep 20 11:43:43 1996 Ian Lance Taylor <ian@cygnus.com>
  2570. * aoutx.h (aout_link_input_section_ext): When doing a relocateable
  2571. link, adjust the symbol index of a base relative reloc. Don't
  2572. change the addend of a PC relative reloc if pcrel_offset is set.
  2573. * sunos.c (bfd_sunos_size_dynamic_sections): Don't do anything for
  2574. a relocateable link.
  2575. * reloc.c (bfd_perform_relocation): Apply the relocation even if
  2576. it is zero, in case src_mask matters.
  2577. (bfd_install_relocation): Likewise.
  2578. Thu Sep 19 11:03:06 1996 Ian Lance Taylor <ian@cygnus.com>
  2579. * xcofflink.c (xcoff_link_add_symbols): Always initialize
  2580. keep_syms.
  2581. (_bfd_xcoff_bfd_final_link): Don't set target_index
  2582. to an uninitialized value.
  2583. Tue Sep 17 14:18:31 1996 Ian Lance Taylor <ian@cygnus.com>
  2584. * coffcode.h (coff_slurp_line_table): Warn about illegal symbol
  2585. indices, rather than crashing.
  2586. (coff_slurp_reloc_table): Likewise. Check whether the howto field
  2587. is NULL.
  2588. * coff-sh.c (sh_relocate_section): Check for an illegal symbol
  2589. index.
  2590. Mon Sep 16 12:39:36 1996 Ian Lance Taylor <ian@cygnus.com>
  2591. * coff-arm.c (aoutarm_std_reloc_howto): Change dst_mask for ARM26D
  2592. reloc to 0.
  2593. (coff_arm_adjust_symndx): New static function.
  2594. (coff_adjust_symndx): Define.
  2595. * srec.c (srec_scan): Accept multiple symbols on a single line.
  2596. From Pascal Martin <pmartin@alsys.com>.
  2597. * README: New file.
  2598. Fri Sep 13 14:32:42 1996 Doug Evans <dje@canuck.cygnus.com>
  2599. * aoutf1.h (MY_bfd_merge_private_bfd_data): Define.
  2600. (sunos_merge_private_bfd_data): New function.
  2601. Fri Sep 13 15:50:57 1996 Ian Lance Taylor <ian@cygnus.com>
  2602. * bfd.c (bfd_copy_private_bfd_data): Switch on output BFD rather
  2603. than input BFD.
  2604. (bfd_merge_private_bfd_data): Likewise.
  2605. * section.c (bfd_copy_private_section_data): Likewise.
  2606. * syms.c (bfd_copy_private_symbol_data): Likewise.
  2607. * bfd-in2.h: Rebuild.
  2608. * aout-target.h (MY_bfd_copy_private_section_data): Check that
  2609. both BFD's are the right flavour.
  2610. * ecoff.c (_bfd_ecoff_bfd_copy_private_bfd_data): Likewise.
  2611. * elf.c (_bfd_elf_copy_private_symbol_data): Likewise.
  2612. * elf32-mips.c (_bfd_mips_elf_copy_private_bfd_data): Likewise.
  2613. (_bfd_mips_elf_merge_private_bfd_data): Likewise.
  2614. * elf32-ppc.c (ppc_elf_copy_private_bfd_data): Likewise.
  2615. (ppc_elf_merge_private_bfd_data): Likewise.
  2616. * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Likewise.
  2617. * peicode.h (pe_bfd_copy_private_section_data): Likewise.
  2618. * elf32-hppa.c (elf_hppa_howto_table): Fill in some fields for
  2619. R_PARISC_DIR32, so that _bfd_stab_section_find_nearest_line passes
  2620. its sanity check.
  2621. Thu Sep 12 11:45:57 1996 Doug Evans <dje@seba.cygnus.com>
  2622. * reloc.c: Add m32r relocs.
  2623. * bfd-in2.h, libbfd.h: Rebuilt.
  2624. * cpu-m32r.c, elf32-m32r.c: New files.
  2625. Thu Sep 12 11:10:05 1996 Ian Lance Taylor <ian@cygnus.com>
  2626. * ieee.c (ieee_vec): Set symbol_leading_char field to '_'.
  2627. Wed Sep 11 11:57:56 1996 Ian Lance Taylor <ian@cygnus.com>
  2628. * tekhex.c (first_phase): Change type parameter from char to int.
  2629. (out): Likewise.
  2630. (pass_over): Change func to expect int, not char.
  2631. * elf.c (assign_file_positions_for_segments): Test SEC_ALLOC
  2632. rather than SEC_LOAD when aligning the file offset for the first
  2633. section in a segment.
  2634. Tue Sep 10 16:18:30 1996 Fred Fish <fnf@cygnus.com>
  2635. * syms.c (coff_section_type): Make arg const.
  2636. * irix-core.c (irix_core_core_file_p): Remove extraneous extra arg
  2637. to make_bfd_asection().
  2638. * elf-bfd.h (bfd_section_from_phdr): Add prototype.
  2639. * elfcode.h (bfd_section_from_phdr): Remove prototype.
  2640. (_bfd_elf_stringtab_init): Remove prototype.
  2641. * netbsd-core.c (swap_abort): Add prototype.
  2642. * aix386-core.c (swap_abort): Ditto & make static
  2643. * hpux-core.c (swap_abort): Ditto & make static.
  2644. * irix-core.c (swap_abort): Ditto & make static.
  2645. * ptrace-core.c (swap_abort): Ditto & make static.
  2646. * trad-core.c (swap_abort): Ditto & make static.
  2647. * coffswap.h (coff_swap_reloc_in): Ditto.
  2648. (coff_swap_reloc_out): Ditto.
  2649. (coff_swap_filehdr_in): Ditto.
  2650. (coff_swap_filehdr_out): Ditto.
  2651. (coff_swap_sym_in): Ditto.
  2652. (coff_swap_sym_out): Ditto.
  2653. (coff_swap_aux_in): Ditto.
  2654. (coff_swap_aux_out): Ditto.
  2655. (coff_swap_lineno_in): Ditto.
  2656. (coff_swap_lineno_out): Ditto.
  2657. (coff_swap_aouthdr_in): Ditto.
  2658. (coff_swap_aouthdr_out): Ditto.
  2659. (coff_swap_scnhdr_in): Ditto.
  2660. (coff_swap_scnhdr_out): Ditto.
  2661. * ihex.c (ihex_sizeof_headers): Ditto.
  2662. * tekhex.c (getsym): Ditto.
  2663. (find_chunk): Ditto & make static.
  2664. (insert_byte): Ditto.
  2665. (first_phase): Ditto.
  2666. (pass_over): Ditto.
  2667. (tekhex_get_symtab): Ditto & make static.
  2668. (tekhex_get_symtab_upper_bound): Ditto & make static.
  2669. (tekhex_mkobject): Ditto.
  2670. (tekhex_object_p): Ditto.
  2671. (move_section_contents): Ditto.
  2672. (tekhex_get_section_contents): Ditto.
  2673. (tekhex_set_arch_mach): Ditto & make static.
  2674. (tekhex_set_section_contents): Ditto.
  2675. (writevalue): Ditto.
  2676. (writesym): Ditto.
  2677. (out): Ditto.
  2678. (tekhex_write_object_contents): Ditto.
  2679. (tekhex_sizeof_headers): Ditto.
  2680. (tekhex_make_empty_symbol): Ditto.
  2681. (tekhex_get_symbol_info): Ditto.
  2682. (tekhex_print_symbol): Ditto.
  2683. * irix-core.c (make_bfd_asection): Ditto.
  2684. (irix_core_core_file_p): Ditto.
  2685. (irix_core_core_file_failing_command): Ditto.
  2686. (irix_core_core_file_failing_signal): Ditto.
  2687. (irix_core_core_file_matches_executable_p): Ditto.
  2688. (irix_core_make_empty_symbol): Ditto.
  2689. * coff-mips.c (mips_bfd_reloc_type_lookup): Ditto.
  2690. * srec.c (srec_new_symbol): Ditto.
  2691. (srec_get_section_contents): Ditto.
  2692. (srec_set_arch_mach): Ditto.
  2693. (srec_set_section_contents): Ditto.
  2694. (internal_srec_write_object_contents): Ditto.
  2695. (srec_write_object_contents): Ditto.
  2696. (symbolsrec_write_object_contents): Ditto.
  2697. (srec_sizeof_headers): Ditto.
  2698. (srec_make_empty_symbol): Ditto.
  2699. (srec_get_symtab_upper_bound): Ditto.
  2700. (srec_get_symtab): Ditto.
  2701. (srec_print_symbol): Ditto and make static.
  2702. * elf.c (elf_read): Ditto
  2703. (assign_section_numbers): Ditto.
  2704. (elf_fake_sections): Ditto.
  2705. (sym_is_global): Ditto.
  2706. (elf_map_symbols): Ditto.
  2707. (get_program_header_size): Ditto.
  2708. * coffgen.c (make_a_section_from_file): Ditto.
  2709. (coff_real_object_p): Ditto.
  2710. (fixup_symbol_value): Ditto.
  2711. (build_debug_section): Ditto.
  2712. (copy_name): Ditto.
  2713. * syms.c (coff_section_type): Ditto.
  2714. Mon Sep 9 22:36:01 1996 Jeffrey A Law (law@cygnus.com)
  2715. * bfd-in2.h: Rebuilt after m32r changes.
  2716. Mon Sep 9 12:31:22 1996 Doug Evans <dje@canuck.cygnus.com>
  2717. * config.bfd: Add m32r support.
  2718. * configure.in: Likewise.
  2719. * configure: Likewise.
  2720. * Makefile.in: Likewise.
  2721. * archures.c: Likewise.
  2722. * elf.c: Likewise.
  2723. * targets.c: Likewise.
  2724. * config.bfd: Keep target list alphabetically sorted.
  2725. Mon Sep 9 11:48:41 1996 Jeffrey A Law (law@cygnus.com)
  2726. * elf32-v850.c (bfd_elf32_v850_reloc, case R_V850_HI16): Don't forget
  2727. to add in the constant part found in the instruction itself.
  2728. (case R_V850_HI16_S): Likewise.
  2729. Fri Sep 6 17:04:39 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
  2730. * elf32-d10v.c (elf_d10v_howto_table): Modify the size of R_D10V_16
  2731. and R_D10V_18 to be 1 (word).
  2732. Thu Sep 5 15:23:08 1996 Ian Lance Taylor <ian@cygnus.com>
  2733. * stabs.c (_bfd_link_section_stabs): If the output_section field
  2734. of either section is bfd_abs_section, then the linker is
  2735. discarding the section and we should not optimize it.
  2736. Tue Sep 3 12:16:20 1996 Doug Evans <dje@canuck.cygnus.com>
  2737. * Makefile.in (aout-sparcle.o): New target.
  2738. * aoutf1.h (TARGET_IS_BIG_ENDIAN_P): Don't define if little endian.
  2739. * config.bfd (sparclet-*-aout*): Add case.
  2740. * configure.in (sparcle_aout_vec): Add case.
  2741. * configure: Regenerated.
  2742. * targets.c (sparcle_aout_vec): Declare.
  2743. (bfd_target_vector): Add sparcle_aout_vec.
  2744. * aout-sparcle.c: New file.
  2745. Tue Sep 3 00:57:02 1996 Jeffrey A Law (law@cygnus.com)
  2746. * elf32-v850.c (bfd_elf32_v850_reloc): Fix handling of
  2747. low order sign bit propogation for R_V850_HI16_S.
  2748. * elf32-v850.c (bfd_elf32_v850_reloc): New function for
  2749. handling V850 specific relocs.
  2750. (elf_v850_howto_table): Use the new function for some
  2751. relocations. Twiddle masks & shifts for some relocs.
  2752. Set partial_inplace where needed.
  2753. Mon Sep 2 12:12:34 1996 Ian Lance Taylor <ian@cygnus.com>
  2754. * cpu-mips.c: Add an explicit mips:3000 entry, and change the
  2755. default architecture to a machine number of 0.
  2756. * elf32-mips.c (_bfd_mips_elf_object_p): Set the machine number
  2757. for E_MIPS_ARCH_1.
  2758. (_bfd_mips_elf_merge_private_bfd_data): If the machine number of
  2759. the output BFD is the default, set it from the first input BFD.
  2760. Sun Sep 1 18:38:01 1996 Jeffrey A Law (law@cygnus.com)
  2761. * elf32-v850.c (elf_v850_howto_table): All the 16bit relocs
  2762. insert at bitpos zero. The HI16 relocs are shifted right
  2763. by 16 bits. Fix src_mask for all relocs.
  2764. (TARGET_LITTLE_SYM, TARGET_LITTLE_NAME): Define. The V850 is
  2765. little endian!
  2766. (TARGET_BIG_SYM, TARGET_BIG_NAME): Remove. The V850 is little
  2767. endian!
  2768. Sun Sep 1 15:41:08 1996 Ian Lance Taylor <ian@cygnus.com>
  2769. * rs6000-core.c (rs6000coff_core_file_matches_executable_p):
  2770. Rewrite to use BFD file read routines and to avoid using a fixed
  2771. length for the file name.
  2772. Sat Aug 31 10:22:25 1996 Jeffrey A Law (law@cygnus.com)
  2773. * elf32-v850.c (enum reloc_type): Add R_V850_{32,16,8}.
  2774. (elf_v850_howto_table): Add support for R_V850_{32,16,8}.
  2775. (v850_reloc_map): Add translation from BFD_RELOC_{32,16,8}
  2776. to R_V850_{32,16,8}.
  2777. Fri Aug 30 18:06:04 1996 J.T. Conklin <jtc@hippo.cygnus.com>
  2778. * elf32-v850.c (reloc_type): Add R_V850_HI16_S.
  2779. (elf_v850_howto_table): Add info for HI16_S reloc.
  2780. (v850_reloc_map): Add HI_16_S reloc.
  2781. * reloc.c: Define BFD_RELOC_V850_* relocs.
  2782. Fri Aug 30 11:49:19 1996 Ian Lance Taylor <ian@cygnus.com>
  2783. Add SH ELF support.
  2784. * elf32-sh.c: New file.
  2785. * elf.c (prep_headers): Handle bfd_arch_sh.
  2786. * elfcode.h (write_relocs): Handle absolute symbol.
  2787. * elf-bfd.h (_bfd_elf32_link_read_relocs): Declare.
  2788. (_bfd_elf64_link_read_relocs): Declare.
  2789. * elflink.h (NAME(_bfd_elf,link_read_relocs)): Rename from
  2790. elf_link_read_relocs. Make globally visible. Change all
  2791. callers.
  2792. (elf_link_input_bfd): Get external symbols from cache in
  2793. symtab_hdr->contents. Get contents from cache in
  2794. elf_section_data.
  2795. * elfxx-target.h (bfD_elfNN_bfd_relax_section): Only define if not
  2796. already defined.
  2797. * reloc.c: Define BFD_RELOC_SH_* relocs.
  2798. * libbfd-in.h (_bfd_sh_align_load_span): Declare.
  2799. * coff-sh.c (sh_insns_conflict): Fix a return value.
  2800. (_bfd_sh_align_load_span): New globally visible function, broken
  2801. out of sh_align_load.
  2802. (sh_align_load): Call _bfd_sh_align_load_span.
  2803. (sh_swap_insns): Change relocs parameter to PTR.
  2804. * bfd-in2.h, libbfd.h: Rebuild.
  2805. * targets.c (bfd_elf32_sh_vec): Declare.
  2806. (bfd_elf32_shl_vec): Declare.
  2807. * config.bfd (sh-*-elf*): New target.
  2808. * configure.in (bfd_elf32_sh_vec): New target vector.
  2809. (bfd_elf32_shl_vec): New target vector.
  2810. * configure: Rebuild.
  2811. * Makefile.in: Rebuild dependencies.
  2812. (BFD32_BACKENDS): Add elf32-sh.o.
  2813. (BFD32_BACKENDS_CFILES): Add elf32-sh.c.
  2814. * elf.c (map_sections_to_segments): Check that LMA does not skip a
  2815. page before checking D_PAGED.
  2816. * ihex.c (ihex_scan): Removed unnecessary extbase variable.
  2817. (ihex_write_object_contents): Remove extbase; always use segbase
  2818. instead.
  2819. Thu Aug 29 16:52:17 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  2820. * configure.in (i[345]86-*-*): Recognize i686 for pentium pro.
  2821. * configure.host (i[345]86-*-*): Ditto.
  2822. * config.bfd (i[345]86-*-*): Ditto.
  2823. * configure: Regenerate.
  2824. * config.bfd (i[3456]86-*-dgux*): Recognize as a synonym for x86
  2825. elf.
  2826. Tue Aug 27 09:18:18 1996 Jeffrey A Law (law@cygnus.com)
  2827. * elf32-hppa.c (hppa_elf_gen_reloc_type): Add new argument.
  2828. * elf32-hppa.h (hppa_elf_gen_reloc_type): Update prototype.
  2829. * som.c (hppa_som_gen_reloc_type): Add new argument. If
  2830. we encounter an R_DATA_ONE_SYMBOL reloc against a symbol that
  2831. will have an ST_CODE type, change the symbol's type to ST_DATA.
  2832. * som.c (hppa_som_gen_reloc_type): Update prototype.
  2833. Tue Aug 27 00:12:22 1996 Ian Lance Taylor <ian@cygnus.com>
  2834. * elf32-mips.c (mips_elf_check_relocs): Set dynobj if needed for
  2835. R_MIPS_32 and R_MIPS_REL32. Set sgot and g as soon as possible.
  2836. (mips_elf_size_dynamic_sections): Don't require .got to exist.
  2837. (mips_elf_finish_dynamic_sections): Likewise.
  2838. Thu Aug 22 10:54:38 1996 Ian Lance Taylor <ian@cygnus.com>
  2839. * configure.host (HLDENV): New variable to set. Set it for
  2840. *-*-sysv4*, since those linkers may not support -R but they always
  2841. support LD_RUN_PATH.
  2842. * libieee.h (NSECTIONS): Don't define.
  2843. (ieee_data_struct): Change section_table to asection **. Add
  2844. section_table_size.
  2845. * ieee.c (get_section_entry): If the table isn't big enough, make
  2846. it bigger.
  2847. (ieee_slurp_sections): Remove assertion about number of sections.
  2848. (ieee_object_p): Adjust initialization of ieee to match changes to
  2849. the structure.
  2850. * xcofflink.c (xcoff_mark): Don't copy relocs for undefined
  2851. symbols merely because we are generating a shared library.
  2852. (xcoff_build_ldsyms): Don't set up global linkage code for an
  2853. undefined symbol merely because we are generating a shared
  2854. library.
  2855. Tue Aug 20 15:06:05 1996 J.T. Conklin <jtc@hippo.cygnus.com>
  2856. * Makefile.in (ALL_MACHINES): Add cpu-v850.o.
  2857. (BFD32_BACKENDS) Add elf32-v850.o.
  2858. * archures.c: Add bfd_v850_arch.
  2859. * bfd-in2.h: Add bfd_v850_arch.
  2860. * config.bfd (v850-*-*): New target.
  2861. * configure: (bfd_elf32_v850_vec) New vector.
  2862. * configure.in: (bfd_elf32_v850_vec) New vector.
  2863. * cpu-v850.c: New file.
  2864. * elf.c (prep_headers): Added case bfd_arch_v850.
  2865. * elf32-v850.c: New file.
  2866. * targets.c (bfd_elf32_v850_vec): New vector.
  2867. Fri Aug 16 16:25:35 1996 Ian Lance Taylor <ian@cygnus.com>
  2868. * xcofflink.c (xcoff_link_add_dynamic_symbols): Create and define
  2869. a function code symbol for an XMC_XO symbol.
  2870. Thu Aug 15 12:33:29 1996 Stan Shebs <shebs@andros.cygnus.com>
  2871. * mpw-config.in: Update editing of autoconf vars to reflect
  2872. Jul 18 configure.in change.
  2873. * mpw-make.sed: Update editing of include pathnames to be
  2874. more general, add @DASH_C_FLAG@ to explicit compile rule edit.
  2875. Thu Aug 15 10:35:13 1996 Richard Henderson <rth@tamu.edu>
  2876. * elf64-alpha.c (elf64_alpha_output_extsym): The section from
  2877. which to offset to get the .plt entry address is ".plt".
  2878. Thu Aug 15 16:40:30 1996 James G. Smith <jsmith@cygnus.co.uk>
  2879. * reloc.c: (BFD_RELOC_ARM_THUMB_ADD, BFD_RELOC_ARM_THUMB_IMM,
  2880. BFD_RELOC_ARM_THUMB_SHIFT, BFD_RELOC_ARM_THUMB_OFFSET):
  2881. Added, for internal use by the ARM gas.
  2882. * libbfd.h: Rebuilt
  2883. * bfd-in2.h: Rebuilt
  2884. Wed Aug 14 17:02:09 1996 Richard Henderson <rth@tamu.edu>
  2885. * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Correct typo
  2886. in section dynidx start.
  2887. Tue Aug 13 14:35:38 1996 Ian Lance Taylor <ian@cygnus.com>
  2888. * elf.c (_bfd_elf_make_section_from_shdr): Treat sections whose
  2889. name begins with .gnu.linkonce as SEC_LINK_ONCE. This is an
  2890. optimization for g++.
  2891. Tue Aug 13 17:04:40 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  2892. * elf32-ppc.c (ppc_elf_merge_private_bfd_data): If one module has
  2893. the -mrelocatable-lib bit set and the other doesn't, clear the
  2894. -mrelocatable-lib bit in the header.
  2895. Sat Aug 10 22:59:17 1996 Ian Lance Taylor <ian@cygnus.com>
  2896. * elflink.h (elf_link_add_object_symbols): Do not resolve a common
  2897. symbol against a STT_FUNC symbol in a shared library.
  2898. Fri Aug 9 12:44:57 1996 Ian Lance Taylor <ian@cygnus.com>
  2899. * xcofflink.c (xcoff_link_add_dynamic_symbols): If a descriptor
  2900. symbol is found, automatically define the corresponding function
  2901. code.
  2902. * cofflink.c (coff_link_add_symbols): Only set (*sym_hash)->numaux
  2903. if sym.n_numaux is not zero.
  2904. (_bfd_coff_link_input_bfd): Permit the symbol and the hash table
  2905. entry to disagree about the number of aux entries if the symbol
  2906. has zero.
  2907. * elf32-mips.c (mips_elf_check_relocs): Create the .rel.dyn
  2908. section if it might be needed, not just if info->shared.
  2909. (mips_elf_adjust_dynamic_symbol): Make room for a null element at
  2910. the start of .rel.dyn if we are going to use it.
  2911. (mips_elf_finish_dynamic_sections): Only clear the first element
  2912. of .rel.dyn if the size is greater than zero.
  2913. Thu Aug 8 16:24:55 1996 Ian Lance Taylor <ian@cygnus.com>
  2914. * xcofflink.c (xcoff_link_input_bfd): If we already called the
  2915. undefined_symbol callback for a symbol, then don't issue any more
  2916. warnings about loader relocs.
  2917. (_bfd_ppc_xcoff_relocate_section): Don't do any further processing
  2918. after calling the undefined_symbol callback.
  2919. * xcofflink.c (XCOFF_MULTIPLY_DEFINED): Define.
  2920. (xcoff_link_add_symbols): Permit multiple definitions of a symbol
  2921. as the AIX linker seems to do.
  2922. Thu Aug 8 12:21:56 1996 Klaus Kaempf <kkaempf@progis.de>
  2923. * evax-alpha.c (evax_alpha_vec): Corrected flags, cleanup.
  2924. (evax_initialize): Remove evax_reloc_table.
  2925. (evax_close_and_cleanup): Ditto.
  2926. (reloc_nil): Ditto.
  2927. (alpha_howto_table): Remove ALPHA_R_SWREL32 and ALPHA_R_SWREL64
  2928. entries.
  2929. (evax_bfd_reloc_type_lookup): Ditto.
  2930. * evax-egsd.c (_bfd_evax_slurp_egsd): Add a few casts; set
  2931. cooked_size == raw_size.
  2932. * evax-emh.c (_bfd_evax_register_filename): Remove.
  2933. * evax-etir.c (etir_stc): Allow ETIR_S_C_STC_xx commands.
  2934. * evax-misc.c (add_new_contents): Malloc section at full size.
  2935. (_bfd_save_evax_section): Memcpy section contents directly.
  2936. * evax.h (ALPHA_R_SWREL32, ALPHA_R_SWREL64): Remove.
  2937. (evax_reloc_table): Remove.
  2938. * hosts/alphavms.h (O_ACCMODE): Define if needed.
  2939. * makefile.vms: Add better support for DEC C compilation
  2940. Add evax.h dependencies
  2941. * reloc.c (bfd_get_reloc_size): Add case for 16 byte reloc.
  2942. (BFD_RELOC_SWREL32,BFD_RELOC_SWREL64): Remove.
  2943. (BFD_RELOC_ALPHA_BASEREG): Remove.
  2944. * bfd-in2.h, libbfd.h: Rebuild.
  2945. Thu Aug 8 08:17:32 1996 Stu Grossman (grossman@critters.cygnus.com)
  2946. * archive.c (bsd_write_armap): Ifdef around calls to getuid and
  2947. getgid if _WIN32 is defined.
  2948. * opncls.c (bfd_fdopenr): Remove unnecessary WINGDB ifdef.
  2949. Wed Aug 7 23:19:00 1996 Stu Grossman (grossman@critters.cygnus.com)
  2950. * aoutx.h bfd-in.h bfd-in2.h opncls.c riscix.c som.c targets.c:
  2951. Change NO_FLAGS to BFD_NO_FLAGS to avoid conflict with an HPUX
  2952. include file.
  2953. * libbfd.c: Create dummy getpagesize() macro if HAVE_GETPAGESIZE
  2954. isn't defined.
  2955. Wed Aug 7 14:11:44 1996 Philippe De Muyter <phdm@info.ucl.ac.be>
  2956. * configure.in: Call BFD_NEEDED_DECLARATION on strstr and
  2957. realloc.
  2958. * acconfig.h (NEED_DECLARATION_STRSTR): New macro.
  2959. (NEED_DECLARATION_REALLOC): New macro.
  2960. * configure, config.in: Rebuild.
  2961. * sysdep.h (strstr): Declare if NEED_DECLARATION_STRSTR.
  2962. (realloc): Declare if NEED_DECLARATION_REALLOC.
  2963. * aclocal.m4 (BFD_NEED_DECLARATION): Include <string.h> or
  2964. <strings.h> if they exist.
  2965. * ieee.c (ieee_set_section_contents): Cast bfd_alloc return.
  2966. Wed Aug 7 12:12:03 1996 Ian Lance Taylor <ian@cygnus.com>
  2967. * cpu-i386.c (i8086_arch): Architecture info for the i8086.
  2968. Based on patches from Eric Valette <valette@crf.canon.fr>:
  2969. * elf32-i386.c (enum reloc_type): Add FIRST_INVALID_RELOC,
  2970. LAST_INVALID_RELOC, R_386_16, R_386_PC16, R_386_8, R_386_PC8.
  2971. (elf_howto_table): Add entries for new relocs.
  2972. (elf_i386_reloc_type_lookup): Handle new relocs.
  2973. (elf_i386_info_to_howto): Just call abort.
  2974. (elf_i386_info_to_howto_rel): Check that the reloc type is valid.
  2975. (elf_i386_relocate_section): Likewise.
  2976. Tue Aug 6 12:54:56 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
  2977. * elf32-d10v.c (elf_d10v_howto_table): Added R_D10V_32.
  2978. Mon Aug 5 13:42:41 1996 Ian Lance Taylor <ian@cygnus.com>
  2979. * elf.c (_bfd_elf_make_section_from_shdr): For a loadable section,
  2980. only get the LMA from the phdr if they are in the same part of the
  2981. file.
  2982. * elf.c (map_sections_to_segments): Rewrite tests for starting a
  2983. new segment to make them more comprehensible. If the relationship
  2984. between the LMA and the VMA changed, start a new segment. Don't
  2985. check dynsec when deciding whether to start a new segment for a
  2986. writeable section; -N will now handle this.
  2987. Thu Aug 1 22:43:08 1996 Jeffrey A Law (law@cygnus.com)
  2988. * libhppa.h: Remove "esel" changes. Not the right approach.
  2989. * som.c: Corresponding changes.
  2990. (som_bfd_derive_misc_symbol_info): Use ST_DATA for symbols
  2991. which don't have a SOM symbol type associated with them.
  2992. Reverses a 1994 change.
  2993. Wed Jul 31 15:50:55 1996 Ian Lance Taylor <ian@cygnus.com>
  2994. Make ld -N more reasonable for ELF:
  2995. * elf.c (map_sections_to_segments): If D_PAGED is not set, set
  2996. phdr_in_section to false, and always use a single load segment.
  2997. (elf_sort_sections): Sort sections by LMA after VMA.
  2998. (assign_file_positions_for_segments): If D_PAGED is not set, don't
  2999. align to maxpagesize.
  3000. (assign_file_positions_except_relocs): Likewise.
  3001. * elfcode.h (elf_object_p): If a section is loaded but not page
  3002. aligned, clear D_PAGED.
  3003. Wed Jul 31 15:00:12 1996 James G. Smith <jsmith@cygnus.co.uk>
  3004. * reloc.c: (BFD_RELOC_ARM_OFFSETIMM8, BFD_RELOC_ARM_HWLITERAL):
  3005. Added, for internal use by the ARM gas.
  3006. * libbfd.h: Rebuilt
  3007. * bfd-in2.h: Rebuilt
  3008. Tue Jul 30 14:14:57 1996 Jeffrey A Law (law@cygnus.com)
  3009. * libhppa.h (R_HPPA_ESEL): New field selector.
  3010. (e_esel): Similarly.
  3011. * som.c (hppa_som_gen_reloc_type): If we encounter an e_esel,
  3012. then generate R_COMP2 (PUSH_SYM), R_DATA_EXPR fixup stream.
  3013. (som_write_fixups): Handle R_DATA_EXPR just like R_CODE_EXPR.
  3014. Tue Jul 30 13:31:27 1996 Ian Lance Taylor <ian@cygnus.com>
  3015. * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): Do the regular
  3016. archive search before looking for stripped dynamic objects.
  3017. Fri Jul 26 17:51:39 1996 Ian Lance Taylor <ian@cygnus.com>
  3018. * xcofflink.c (xcoff_build_ldsyms): Make exporting an undefined
  3019. symbol a warning rather than an error.
  3020. Wed Jul 24 12:02:53 1996 Ian Lance Taylor <ian@cygnus.com>
  3021. * elf.c (assign_file_positions_for_segments): Track the virtual
  3022. memory position separately from the file position, and use it to
  3023. compute the alignment adjustment.
  3024. Tue Jul 23 10:43:31 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
  3025. * elf32-d10v.c (elf_d10v_howto_table): Changed all relocs to "long"
  3026. and fixed mask on R_D10V_10_PCREL_L.
  3027. Mon Jul 22 15:30:30 1996 Ian Lance Taylor <ian@cygnus.com>
  3028. * elf64-mips.c: Include "aout/ar.h".
  3029. (mips_elf64_slurp_armap): New static function.
  3030. (mips_elf64_write_armap): New static function.
  3031. (bfd_elf64_archive_*): Define.
  3032. * elfxx-target.h (bfd_elfNN_archive_p): Define if not defined.
  3033. Use instead of bfd_generic_archive_p.
  3034. (bfd_elfNN_write_archive_contents): Define if not defined. Use
  3035. instead of _bfd_write_archive_contents.
  3036. (bfd_elfNN_mkdarchive): Define if not defined. Use instead of
  3037. _bfd_generic_mkarchive.
  3038. (TARGET_BIG_SYM): If bfd_elfNN_archive_functions is defined, use
  3039. bfd_elfNN_archive in BFD_JUMP_TABLE_ARCHIVE rather than
  3040. _bfd_archive_coff.
  3041. (TARGET_LITTLE_SYM): Likewise.
  3042. * archive.c (bfd_slurp_armap): Check for and reject an archive map
  3043. name of /SYM64/.
  3044. * Makefile.in: Rebuild dependencies.
  3045. * elf32-mips.c (_bfd_mips_elf_final_write_processing): Handle
  3046. SHT_MIPS_LIBLIST, SHT_MIPS_CONTENT, SHT_MIPS_SYMBOL_LIB, and
  3047. SHT_MIPS_EVENTS sections.
  3048. (_bfd_mips_elf_section_from_shdr): Handle SHT_MIPS_IFACE,
  3049. SHT_MIPS_CONTENT, SHT_MIPS_SYMBOL_LIB, and SHT_MIPS_EVENTS
  3050. sections.
  3051. (_bfd_mips_elf_fake_sections): Likewise.
  3052. * libecoff.h (ecoff_data_type): Add rdata_in_text field.
  3053. * ecoff.c (ecoff_compute_section_file_positions): Copy
  3054. rdata_in_text from backend info to tdata. Clear it if any data
  3055. section comes before .rdata.
  3056. (_bfd_ecoff_write_object_contents): Use rdata_in_text field in
  3057. tdata rather than backend info.
  3058. Fri Jul 19 18:15:51 1996 Ian Lance Taylor <ian@cygnus.com>
  3059. * configure.in: Fix test for whether a compiler has a 64 bit
  3060. type. From Jim Wilson <wilson@cygnus.com>.
  3061. Thu Jul 18 15:39:10 1996 Ian Lance Taylor <ian@cygnus.com>
  3062. * configure.host (mips-sgi-irix6*): New host.
  3063. * configure.in: Set and substitute VERSION, BFD_HOST_64BIT_LONG
  3064. (replacing HOST_64BITLONG), BFD_HOST_64_BIT_DEFINED,
  3065. BFD_HOST_64_BIT, and BFD_HOST_U_64_BIT. Add bfd-in2.h:bfd-in2.h
  3066. to AC_OUTPUT call.
  3067. * configure: Rebuild.
  3068. * bfd-in.h (BFD_ARCH_SIZE): Define as @wordsize@, not @WORDSIZE@.
  3069. (BFD_HOST_64_BIT): Define conditionally.
  3070. (BFD_HOST_U_64_BIT): Define when BFD_HOST_64_BIT is defined.
  3071. (bfd_vma): Typedef as BFD_HOST_U_64_BIT.
  3072. (symvalue, bfd_size_type): Likewise.
  3073. * bfd-in2.h: Rebuild.
  3074. * Makefile.in (do_clean): Remove bfd-tmp.h.
  3075. (do_distclean): Remove bfd-in3.h.
  3076. (stmp-bfd.h): Just do copy-if-change bfd-in3.h bfd.h.
  3077. (bfd-in3.h): New target.
  3078. * config.bfd (sparc-*-sysv4*): Don't build sunos_big_vec. From
  3079. Andrew Gierth <ANDREWG@microlise.co.uk>.
  3080. * configure.host: Set INSTALL_SHLIB.
  3081. * configure.in: Call AC_SUBST (INSTALL_SHLIB).
  3082. * configure: Rebuild.
  3083. * Makefile.in (install): Use @INSTALL_SHLIB@.
  3084. * config.bfd (mips*-*-irix6*): New target.
  3085. * configure.host: Handle Irix 6 shared library like Irix 5.
  3086. * xcofflink.c (xcoff_link_add_symbols): Don't check an XMC_TD
  3087. symbol for a magic name.
  3088. (xcoff_link_input_bfd): Don't change the reloc symbol for an
  3089. XMC_TD symbol.
  3090. (_bfd_ppc_xcoff_relocate_section): Don't get the TOC offset for an
  3091. XMC_TD symbol.
  3092. Thu Jul 18 11:36:31 1996 Stan Shebs <shebs@andros.cygnus.com>
  3093. * mpw-config.in: Add ELF support to mips config, create the
  3094. elf32-target.h file in the object dir.
  3095. * mpw-make.sed: Edit elfXX-target.h refs at beginnings of lines.
  3096. Wed Jul 17 18:02:32 1996 Kim Knuttila <krk@cygnus.com>
  3097. * coff-ppc.c: Redid debug scheme - numerous fprintf's gone.
  3098. Also removed most abort calls, in favor of using bfd reporting.
  3099. Wed Jul 17 14:51:52 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
  3100. * Makefile.in (ALL_MACHINES): Add cpu-d10v.o.
  3101. (BFD32_BACKENDS) Add elf32-d10v.o.
  3102. * archures.c: Add bfd_d10v_arch.
  3103. * bfd-in2.h: Add bfd_d10v_arch.
  3104. * config.bfd (d10v-*-*): New target.
  3105. * configure: (bfd_elf32_d10v_vec) New vector.
  3106. * configure.in: (bfd_elf32_d10v_vec) New vector.
  3107. * cpu-d10v.c: New file.
  3108. * elf.c (prep_headers): Added case bfd_arch_d10v.
  3109. * elf32-d10v.c: New file.
  3110. * libbfd.h: Rebuild.
  3111. * reloc.c (BFD_RELOC_D10V_10_PCREL_R, BFD_RELOC_D10V_10_PCREL_L,
  3112. BFD_RELOC_D10V_18, BFD_RELOC_D10V_18_PCREL): Define.
  3113. * targets.c (bfd_elf32_d10v_vec): New vector.
  3114. Wed Jul 17 10:58:55 1996 Kim Knuttila <krk@cygnus.com>
  3115. * coff-ppc.c (coff_ppc_relocate_section): Removed bogus fprintf
  3116. Tue Jul 16 23:49:02 1996 Stu Grossman (grossman@critters.cygnus.com)
  3117. * archures.c bfd-in2.h: Add bfd_mach_i386_i386 and
  3118. bfd_mach_i386_i8086 machine types.
  3119. Wed Jul 10 12:42:56 1996 Ian Lance Taylor <ian@cygnus.com>
  3120. * ecoff.c (_bfd_ecoff_new_section_hook): Set SEC_CODE for _INIT
  3121. and _FINI sections.
  3122. Wed Jul 10 11:18:21 1996 Richard Henderson <rth@tamu.edu>
  3123. * coffcode.h (coff_set_section_contents): A/UX does not require
  3124. special handling of the _LIB section.
  3125. Tue Jul 9 15:52:20 1996 Jeffrey A Law (law@cygnus.com)
  3126. * coff-h8300.c (h8300_reloc16_extra_cases): Use the correct
  3127. value for R_RELBYTE.
  3128. * reloc16.c (bfd_coff_reloc16_relax_section): Only "shrinks"
  3129. array if one was allocated.
  3130. Tue Jul 9 12:21:54 1996 Ian Lance Taylor <ian@cygnus.com>
  3131. From Kazumoto Kojima <kkojima@kk.info.kanagawa-u.ac.jp>:
  3132. * elf32-mips.c (struct mips_elf_link_hash_table): Add new fields
  3133. use_rld_obj_head and rld_value.
  3134. (mips_elf_link_hash_table_create): Initialize new fields.
  3135. (mips_elf_add_symbol_hook): Mark __rld_obj_head symbol as
  3136. dynamic.
  3137. (mips_elf_create_dynamic_sections): Create .rld_map section. If
  3138. __rld_obj_head symbol not seen, create an __rld_map symbol.
  3139. (mips_elf_size_dynamic_sections): Make space in .rld_map section.
  3140. Create a DT_MIPS_RLD_MAP entry rather than a DT_DEBUG entry.
  3141. (mips_elf_finish_dynamic_symbol): Save value of __rld_map or
  3142. __rld_obj_head symbol.
  3143. (mips_elf_finish_dynamic_sections): Handle DT_MIPS_RLD_MAP.
  3144. Mon Jul 8 16:18:03 1996 Ian Lance Taylor <ian@cygnus.com>
  3145. * elf32-mips.c (mips_reloc_map): Remove BFD_RELOC_32_PCREL entry.
  3146. * elf32-ppc.c (ppc_elf_howto_raw): For R_PPC_ADDR16_HA, use
  3147. ppc_elf_addr16_ha_reloc.
  3148. (ppc_elf_addr16_ha_reloc): New static function.
  3149. * coff-mips.c (struct mips_hi): Define.
  3150. (mips_refhi_list): New static variable.
  3151. (mips_refhi_addr, mips_refhi_addend): Remove.
  3152. (mips_refhi_reloc): Maintain a list of unmatched REFHI relocs.
  3153. (mips_reflo_reloc): Process mips_refhi_list.
  3154. (mips_relhi_list): New static variable.
  3155. (mips_relhi_addr, mips_relhi_addend): Remove.
  3156. (mips_relhi_reloc): Maintain a list of unmatched RELHI relocs.
  3157. (mips_rello_reloc): Process mips_relhi_list.
  3158. (mips_relocate_section): Permit an arbitrary number of REFHI or
  3159. RELHI relocs before the associated REFLO or RELLO reloc.
  3160. Fri Jul 5 19:27:49 1996 Ian Lance Taylor <ian@cygnus.com>
  3161. * aout-target.h (MY(callback)): Set reloc_count fields.
  3162. Thu Jul 4 12:00:37 1996 Ian Lance Taylor <ian@cygnus.com>
  3163. * sunos.c (sunos_add_dynamic_symbols): Don't create dynamic
  3164. sections unless this is a SunOS link.
  3165. * VERSION: Set to 2.7.1.
  3166. * Released binutils 2.7.
  3167. Wed Jul 3 14:59:47 1996 Ian Lance Taylor <ian@cygnus.com>
  3168. * i386aout.c: Include "aout/aout64.h".
  3169. (i386aout_write_object_contents): New static function.
  3170. (MY_write_object_contents): Define.
  3171. * netbsd.h (MY(write_object_contents)): Make sure that
  3172. adjust_sizes_and_vmas is called before fiddling with the magic
  3173. number.
  3174. Tue Jul 2 23:30:39 1996 Ian Lance Taylor <ian@cygnus.com>
  3175. * stabs.c (_bfd_link_section_stabs): Fix casts of psinfo.
  3176. Sun Jun 30 13:34:33 1996 Ian Lance Taylor <ian@cygnus.com>
  3177. * libbfd-in.h (itos, stoi): Don't define.
  3178. * libbfd.h: Rebuild.
  3179. * i386lynx.c (KEEPIT): Define as udata.i.
  3180. (NAME(lynx,swap_std_reloc_out)): Don't use stoi.
  3181. (NAME(lynx,swap_ext_reloc_out)): Likewise.
  3182. * riscix.c (riscix_swap_std_reloc_out): Use udata.i rather than
  3183. flags. Don't use stoi.
  3184. * elf32-mips.c (ELF_MAGPAGESIZE): Change definition to 0x1000.
  3185. * elf.c (map_sections_to_segments): Don't start a new segment for
  3186. a writable section if it's on the same page as the previous
  3187. segment. Reset the writable variable for a readonly section.
  3188. Sat Jun 29 16:18:51 1996 Kim Knuttila <krk@cygnus.com>
  3189. * peicode.h (coff_swap_aouthdr_in): Missing initializations of
  3190. first_thunk_address, thunk_size, and import_table_size.
  3191. * peicode.h: Improved some diagnostics regarding edata sections.
  3192. * coff-ppc.c (coff_ppc_relocate_section): Earlier error check
  3193. on IMGLUE relocs.
  3194. (coff_ppc_relocate_section): Improved diagnostic for large TOCDEFN's.
  3195. (TARGET_LITTLE_SYM): Added missing D_PAGED.
  3196. Fri Jun 28 13:48:45 1996 Ian Lance Taylor <ian@cygnus.com>
  3197. * xcofflink.c (xcoff_link_check_ar_symbols): An undefined symbol
  3198. with XCOFF_DEF_DYNAMIC set is really defined.
  3199. (xcoff_link_check_dynamic_ar_symbols): Likewise.
  3200. (xcoff_link_add_symbols): Only create special sections if using an
  3201. XCOFF hash table.
  3202. * reloc.c (bfd_perform_relocation): Handle xcoff-powermac like
  3203. aixcoff-rs6000.
  3204. (bfd_install_relocation): Likewise.
  3205. Fri Jun 28 11:17:00 1996 Richard Henderson <rth@tamu.edu>
  3206. * elf64-alpha.c (struct alpha_elf_link_hash_entry): Add flags
  3207. field.
  3208. (ALPHA_ELF_LINK_HASH_LU_ADDR): Define.
  3209. (ALPHA_ELF_LINK_HASH_LU_MEM): Define.
  3210. (ALPHA_ELF_LINK_HASH_LU_FUNC): Define.
  3211. (elf64_alpha_link_hash_newfunc): Initialize flags field.
  3212. (elf64_alpha_check_relocs): Record types of LITUSE entries that
  3213. are found for LITERAL relocs.
  3214. (elf64_alpha_adjust_dynamic_symbol): If a symbol has its address
  3215. taken, we cannot generate a .plt entry for the symbol.
  3216. Thu Jun 27 11:24:29 1996 Ian Lance Taylor <ian@cygnus.com>
  3217. * configure.in: Add AC_ISC_POSIX, and check for setitimer and
  3218. sysconf functions (for gprof).
  3219. * configure, config.in: Rebuild.
  3220. Wed Jun 26 16:29:02 1996 Ian Lance Taylor <ian@cygnus.com>
  3221. * ecoff.c (_bfd_ecoff_archive_p): Check the first object file in
  3222. an archive if it has a map. If the object file has the wrong
  3223. xvec, reject it.
  3224. * coff-alpha.c (alpha_adjust_reloc_in): Set the addend for a
  3225. BRADDR, SREL16, SREL32, or SREL64 reloc against an external
  3226. symbol.
  3227. (alpha_relocate_section): Likewise.
  3228. * coffswap.h (coff_swap_reloc_out): Use RELSZ, not sizeof.
  3229. (coff_swap_filehdr_out): Use FILHSZ, not sizeof.
  3230. (coff_swap_sym_out): Use SYMESZ, not sizeof.
  3231. (coff_swap_aux_out): Use AUXESZ, not sizeof.
  3232. (coff_swap_lineno_out): Use LINESZ, not sizeof.
  3233. (coff_swap_aouthdr_out): Use AOUTSZ, not sizeof.
  3234. (coff_swap_scnhdr_out): Use SCNHSZ, not sizeof.
  3235. * peicode.h: Corresponding changes.
  3236. Tue Jun 25 15:28:34 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  3237. * elflink.h (elf_create_pointer_linker_section): Comment out code
  3238. dealing with making GOT pointers negative of the GOT symbol for
  3239. now.
  3240. Tue Jun 25 11:41:24 1996 Richard Henderson <rth@tamu.edu>
  3241. * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't
  3242. increment the .rela.plt size until after we're done creating the
  3243. .plt entry.
  3244. (elf64_alpha_finish_dynamic_symbol): Change .plt entry to load the
  3245. .rela.plt offset directly rather than calculating it.
  3246. Mon Jun 24 17:15:10 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
  3247. * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir):
  3248. Use autoconf-set values.
  3249. * doc/Makefile.in (bindir, libdir, datadir, mandir, infodir,
  3250. includedir, INSTALL, INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set
  3251. values.
  3252. (docdir): Deleted.
  3253. * configure.in (AC_PREREQ): autoconf v2.5 or higher.
  3254. * configure: Rebuilt.
  3255. Mon Jun 24 22:50:35 1996 Jeffrey A Law (law@cygnus.com)
  3256. * som.c (som_write_fixups): Fix typo in R_END_TRY for exception
  3257. handling code > 1k away.
  3258. Mon Jun 24 18:41:06 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  3259. * elflink.h (elf_create_pointer_linker_section): If DEBUG is
  3260. defined, output whenever the symbol is updated.
  3261. Mon Jun 24 17:58:12 1996 Jouke Numan <jnuman@bazis.nl>
  3262. * elf.c (elf_fake_sections): Don't set sh_addr of a non SEC_ALLOC
  3263. section to 0 if user_set_vma is set.
  3264. * elflink.h (elf_bfd_final_link): Likewise.
  3265. Sun Jun 23 20:42:51 1996 Doug Evans <dje@canuck.cygnus.com>
  3266. Partially undo patch of Jun 20.
  3267. * coffcode.h (coff_set_alignment_hook): Use COFF_IMAGE_WITH_PE.
  3268. (coff_compute_section_file_positions): Likewise.
  3269. (coff_write_object_contents): Likewise. Re-add deleted code, but
  3270. use #ifdef COFF_WITH_PE, not COFF_OBJ_WITH_PE.
  3271. * peicode.h (pe_bfd_copy_private_bfd_data): Re-add #ifdef.
  3272. Fri Jun 21 17:38:15 1996 Joel Sherrill <joel@merlin.gcs.redstone.army.mil>
  3273. * config.bfd: Add support for *-*-rtems* configurations.
  3274. Fri Jun 21 15:19:59 1996 Ian Lance Taylor <ian@cygnus.com>
  3275. * elf.c (prep_headers): Add bfd_arch_alpha case.
  3276. Fri Jun 21 12:35:27 1996 Richard Henderson <rth@tamu.edu>
  3277. * elf64-alpha.c: New file.
  3278. * config.bfd (alpha-*-linuxecoff*): New target.
  3279. (alpha-*-linux*, alpha-*-elf*): New targets.
  3280. * configure.in (bfd_elf64_alpha_vec): New vector.
  3281. * configure: Rebuild.
  3282. * targets.c (bfd_elf64_alpha_vec): Declare.
  3283. (bfd_target_vector): Add bfd_elf64_alpha_vec if BFD64.
  3284. * reloc.c (BFD_RELOC_ALPHA_GPDISP): Define.
  3285. * bfd-in2.h, libbfd.h: Rebuild.
  3286. * Makefile.in: Rebuild dependencies.
  3287. (BFD64_BACKENDS): Add elf64-alpha.o.
  3288. (BFD64_BACKENDS_CFILES): Add elf64-alpha.c.
  3289. Thu Jun 20 18:14:25 1996 Ian Lance Taylor <ian@cygnus.com>
  3290. * ecoff.c (ecoff_armap_hash): If hlog is 0, just return 0, rather
  3291. than relying on a right shift of 32.
  3292. Thu Jun 20 11:00:57 1996 Doug Evans <dje@canuck.cygnus.com>
  3293. * coffcode.h (coff_set_alignment_hook): Change COFF_IMAGE_WITH_PE
  3294. ifdef to COFF_WITH_PE.
  3295. (coff_compute_section_file_positions): Likewise.
  3296. (coff_write_object_contents): Likewise. Delete COFF_OBJ_WITH_PE.
  3297. * pe-{arm,i386,ppc}.c (COFF_OBJ_WITH_PE): Delete.
  3298. * peicode.h (pe_bfd_copy_private_bfd_data): Delete ifdef
  3299. COFF_IMAGE_WITH_PE, always include.
  3300. * peicode.h (coff_swap_scnhdr_out): ".drectve" doesn't have trailing 0.
  3301. Wed Jun 19 11:37:52 1996 Ian Lance Taylor <ian@cygnus.com>
  3302. * elf.c (map_sections_to_segments): Fix up the test for -Ttext to
  3303. approximate the correct answer if SIZEOF_HEADERS was not used.
  3304. * binary.c (binary_set_section_contents): Set section file
  3305. position based on LMA rather than VMA.
  3306. Wed Jun 19 11:19:25 1996 Manfred Hollstein KS/EIC5 60/3/142 #40283 <manfred@lts.sel.alcatel.de>
  3307. * linker.c (_bfd_generic_link_output_symbols): Don't output any
  3308. symbols if info->strip == strip_all.
  3309. Tue Jun 18 15:17:36 1996 Jeffrey A. Law <law@rtl.cygnus.com>
  3310. * coff-h8300.c: Remove #if 0 code.
  3311. (compatable): Don't allow mixing/matching of different architectures.
  3312. * archures.c (bfd_mach_h8300s): Add.
  3313. * bfd-in2.h: Rebuilt.
  3314. * coff-h8300.c (funcvec_hash_newfunc): Handle H8/S too.
  3315. (BADMAG): Likewise.
  3316. (h8300_reloc16_estimate): Likewise.
  3317. (h8300_reloc16_extra_cases): Likewise.
  3318. (h8300_bfd_link_add_symbols): Likewise.
  3319. * coffcode.h (coff_set_arch_mach_hook): Likewise.
  3320. (coff_set_flags): Likewise.
  3321. * cpu-h8300.c (h8300_scan): Likewise.
  3322. Add H8/S to bfd_h8300_arch list.
  3323. Tue Jun 18 14:42:58 1996 Klaus Kaempf <kkaempf@progis.de>
  3324. Added support for Alpha OpenVMS:
  3325. * evax.h, evax-alpha.c, evax-egsd.c, evax-emh.c: New files.
  3326. * evax-etir.c, evax-misc.c, hosts/alphavms.h: New files.
  3327. * config.h-vms, makefile.vms: New files.
  3328. * config.bfd (alpha-*-*vms*): New target.
  3329. * configure.in (evax_alpha_vec): New target vector.
  3330. * configure: Rebuild.
  3331. * reloc.c (BFD_RELOC_SWREL32, BFD_RELOC_SWREL64): Define.
  3332. (BFD_RELOC_ALPHA_LINKAGE, BFD_RELOC_ALPHA_BASEREG): Define.
  3333. * targets.c (bfd_target_evax_flavour): Define.
  3334. (evax_alpha_vec): Declare.
  3335. (bfd_target_vector): Add ecoffalpha_little_vec and evax_alpha_vec
  3336. if BFD64 is defined.
  3337. * bfd-in2.h, libbfd.h: Rebuild.
  3338. * Makefile.in: Rebuild dependencies.
  3339. (BFD64_BACKENDS): Add evax-alpha.o, evax-egsd.o, evax-etir.o,
  3340. evax-emh.o, and evax-misc.o.
  3341. (BFD64_BACKENDS_CFILES): Add evax-alpha.c, evax-egsd.c,
  3342. evax-etir.c, evax-emh.c, and evax-misc.c.
  3343. (HFILES): Add evax.h.
  3344. Tue Jun 18 13:54:18 1996 Ian Lance Taylor <ian@cygnus.com>
  3345. * coff-h8300.c (h8300_reloc16_extra_cases): Make name a const
  3346. pointer.
  3347. (h8300_bfd_link_add_symbols): Likewise.
  3348. Mon Jun 17 10:06:50 1996 Jeffrey A. Law <law@rtl.cygnus.com>
  3349. * som.h (R_HPPA_BEGIN_TRY, R_HPPA_END_TRY): Define.
  3350. * som.c (som_write_fixups): Handle R_BEGIN_TRY and R_END_TRY.
  3351. Mon Jun 17 12:49:11 1996 Ian Lance Taylor <ian@cygnus.com>
  3352. * elf32-mips.c (mips_elf_relocate_section): Don't create a reloc
  3353. for R_MIPS_REL32 and R_MIPS_32 relocs if no dynamic sections were
  3354. created.
  3355. (mips_elf_check_relocs): Only create .rel.dyn for R_MIPS_REL32 and
  3356. R_MIPS_32 relocs if creating a shared library.
  3357. Thu Jun 13 20:14:51 1996 Doug Evans <dje@canuck.cygnus.com>
  3358. * peicode.h (add_data_entry): Use pei_section_data rather than
  3359. _cooked_size. Corresponds to May 13 change in coffcode.h.
  3360. Thu Jun 13 10:23:40 1996 Ian Lance Taylor <ian@cygnus.com>
  3361. * cofflink.c (_bfd_coff_final_link): Handle long section names.
  3362. * coffcode.h (coff_write_object_contents): If there are long
  3363. section names, always set the f_symptr field, even if there are no
  3364. symbols.
  3365. * peicode.h (coff_swap_filehdr_in): Don't clear the f_symptr field
  3366. if there are no symbols.
  3367. * coffgen.c (make_a_section_from_file): Check return value of
  3368. _bfd_coff_read_string_table.
  3369. (coff_real_object_p): Check return value of
  3370. make_a_section_from_file.
  3371. (_bfd_coff_read_string_table): Check that there are some symbols
  3372. before trying to read the string table size.
  3373. Wed Jun 12 11:16:37 1996 Ian Lance Taylor <ian@cygnus.com>
  3374. * xcofflink.c (xcoff_link_add_symbols): When considering whether
  3375. to replace a symbol in a dynamic object with a symbol from another
  3376. dynamic object, do the replacement if the existing symbol is
  3377. global linkage code.
  3378. * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Check explicitly
  3379. for _ptrgl, and treat it as global linkage code.
  3380. * aoutx.h (NAME(aout,find_nearest_line)): Notice if we find a
  3381. filename or N_SO symbol past the offset, and use it to indicate
  3382. that there is no line number or function when appropriate.
  3383. Tue Jun 11 15:24:48 1996 Ian Lance Taylor <ian@cygnus.com>
  3384. * xcofflink.c (xcoff_build_ldsyms): Set XCOFF_DEF_REGULAR for a
  3385. common symbol defined by the linker. Don't export function code
  3386. even if export_defineds is set.
  3387. Mon Jun 10 11:57:27 1996 Jeffrey A Law (law@cygnus.com)
  3388. * coff-h8300.c (howto_table): Add new entries for R_BCC_INV
  3389. and R_JMP_DEL.
  3390. (rtype2howto): Handle R_BCC_INV and R_JMP_DEL.
  3391. (h8300_symbol_address_p): New function.
  3392. (h8300_reloc16_estimate): Eliminate jumps made unnecessary by
  3393. relaxing.
  3394. Sun Jun 9 16:30:20 1996 Jeffrey A Law (law@cygnus.com)
  3395. * coff-h8300.c (h8300_reloc16_estimate): Fix many minor spacing
  3396. problems.
  3397. (h8300_reloc16_estimate, cases R_JMP1, R_JMP2): Adjust "dot"
  3398. correctly for the two variants. Allow relaxing if the target
  3399. is 128 bytes away since after relaxation it'll be 126 bytes away.
  3400. (h8300_reloc16_estimate, case R_PCRWORD): Correctly adjust
  3401. "dot" and "value". Allow relaxing if the target is 128 bytes
  3402. away since after relaxation it'll be 126 bytes away.
  3403. * reloc16.c (bfd_coff_reloc16_relax_section): Keep relaxing
  3404. the given section until nothing changes.
  3405. Thu Jun 6 15:24:45 1996 Richard Henderson <rth@tamu.edu>
  3406. * ecoff.c (_bfd_ecoff_new_section_hook): Remove the _PDATA
  3407. alignment hack--we can get the lnnoptr info another way without
  3408. suddenly increasing the alignment requirements. Set the flags for
  3409. the _PDATA section.
  3410. (ecoff_compute_section_file_positions): Do so.
  3411. Thu Jun 6 11:24:37 1996 Ian Lance Taylor <ian@cygnus.com>
  3412. * ieee.c (ieee_write_object_contents): Put a timestamp in the file
  3413. to keep the HP emulator database happy.
  3414. * config.bfd: Recognize powerpc-*-linux* and powerpcle-*-linux*.
  3415. From Kevin Buettner <kev@primenet.com>.
  3416. Wed Jun 5 15:16:04 1996 Ian Lance Taylor <ian@cygnus.com>
  3417. * aoutx.h (translate_to_native_sym_flags): Don't try to print the
  3418. name of a NULL section.
  3419. Tue Jun 4 18:53:58 1996 Ian Lance Taylor <ian@cygnus.com>
  3420. * linker.c (_bfd_generic_link_add_one_symbol): If notice_all is
  3421. set, always call the notice callback.
  3422. * VERSION: Increment for bfdlink.h change.
  3423. Mon Jun 3 11:01:53 1996 Ian Lance Taylor <ian@cygnus.com>
  3424. * coff-sh.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Set to 4.
  3425. (sh_relax_delete_bytes): Correct handling of differently sized
  3426. trailing alignment reloc.
  3427. * bfd-in.h: Use #error if BFD_HOST_64_BIT can not be defined.
  3428. * bfd-in2.h: Rebuild.
  3429. * configure.in: Warn if there is no known 64 bit type.
  3430. * configure: Rebuild.
  3431. * Makefile.in: Rebuild dependencies.
  3432. (BFD32_BACKENDS): Add ppcboot.o.
  3433. (BFD32_BACKENDS_CFILES): Add ppcboot.c.
  3434. * elf32-mips.c (mips_elf_size_dynamic_sections): Initialize c.
  3435. From Per Fogelstrom <per.fogelstrom@mailbox200.swipnet.se>.
  3436. Sat Jun 1 21:49:58 1996 Ian Lance Taylor <ian@cygnus.com>
  3437. * elf64-mips.c (bfd_mips_elf64_swap_reginfo_in)
  3438. (bfd_mips_elf64_swap_reginfo_out): Move from here...
  3439. * elf32-mips.c (bfd_mips_elf64_swap_reginfo_in)
  3440. (bfd_mips_elf64_swap_reginfo_out): ...to here.
  3441. Fri May 31 13:51:28 1996 Ian Lance Taylor <ian@cygnus.com>
  3442. * elf64-mips.c: Improve reloc special_functions and handling of
  3443. SHT_MIPS_OPTIONS section.
  3444. * elf32-mips.c (_bfd_mips_elf_hi16_reloc): Rename from
  3445. mips_elf_hi16_reloc and make globally visible.
  3446. (_bfd_mips_elf_lo16_reloc): Rename from mips_elf_lo16_reloc and
  3447. make globally visible.
  3448. (_bfd_mips_elf_got16_reloc): Rename from mips_elf_got16_reloc and
  3449. make globally visible.
  3450. (_bfd_mips_elf_gprel16_reloc): Rename from mips_elf_gprel16_reloc
  3451. and make globally visible.
  3452. (gprel16_with_gp): Check howto->src_mask before using value in
  3453. insn.
  3454. (_bfd_mips_elf_gprel32_reloc): Rename from mips_elf_gprel32_reloc
  3455. and make globally visible.
  3456. (gprel32_with_gp): Check howto->src_mask before fetching value.
  3457. (bfd_mips_elf_swap_options_in): New function.
  3458. (bfd_mips_elf_swap_options_out): New function.
  3459. (_bfd_mips_elf_set_private_flags): Rename from
  3460. mips_elf_set_private_flags and make globally visible.
  3461. (_bfd_mips_elf_copy_private_bfd_data): Rename from
  3462. mips_elf_copy_private_bfd_data and make globally visible.
  3463. (_bfd_mips_elf_merge_private_bfd_data): Rename from
  3464. mips_elf_merge_private_bfd_data and make globally visible.
  3465. (_bfd_mips_elf_section_from_shdr): Accept .MIPS.options as a name
  3466. for a SHT_MIPS_OPTIONS section.
  3467. (mips_elf32_section_from_shdr): Handle SHT_MIPS_OPTIONS section.
  3468. (_bfd_mips_elf_fake_sections): Consider .MIPS.options to be the
  3469. name of a SHT_MIPS_OPTIONS section.
  3470. (_bfd_mips_elf_set_section_contents): New function.
  3471. (mips_elf32_section_processing): Set the GP value in a
  3472. SHT_MIPS_OPTIONS section.
  3473. (_bfd_mips_elf_find_nearest_line): Rename from
  3474. mips_elf_find_nearest_line and make globally visible.
  3475. (bfd_elf32_set_section_contents): Define.
  3476. * elf-bfd.h (_bfd_mips_elf_hi16_reloc): Declare.
  3477. (_bfd_mips_elf_lo16_reloc): Declare.
  3478. (_bfd_mips_elf_gprel16_reloc): Declare.
  3479. (_bfd_mips_elf_got16_reloc): Declare.
  3480. (_bfd_mips_elf_gprel32_reloc): Declare.
  3481. (_bfd_mips_elf_set_private_flags): Declare.
  3482. (_bfd_mips_elf_copy_private_bfd_data): Declare.
  3483. (_bfd_mips_elf_merge_private_bfd_data): Declare.
  3484. (_bfd_mips_elf_find_nearest_line): Declare.
  3485. (_bfd_mips_elf_set_section_contents): Declare.
  3486. * elf32-hppa.c (elf32_hppa_info_to_howto): Rename from
  3487. elf_info_to_howto.
  3488. (elf_info_to_howto): Define.
  3489. * elf32-sparc.c (elf32_sparc_info_to_howto): Rename from
  3490. elf_info_to_howto.
  3491. (elf_info_to_howto): Define.
  3492. * elf64-sparc.c (sparc64_elf_info_to_howto): Rename from
  3493. elf_info_to_howto.
  3494. (elf_info_to_howto): Define.
  3495. * coff-w65.c (h8300_reloc16_estimate): Rename R_MOVB[12] to
  3496. R_MOV16B[12], to match change in coff/internal.h.
  3497. Thu May 30 12:38:49 1996 Ian Lance Taylor <ian@cygnus.com>
  3498. * elf64-mips.c: Extensive additions to provide better support for
  3499. writing files and for gas.
  3500. * elf32-mips.c (_bfd_mips_elf_object_p): New function, broken out
  3501. of mips_elf_object_p.
  3502. (mips_elf32_object_p): Rename from mips_elf_object_p; call
  3503. _bfd_mips_elf_object_p.
  3504. (_bfd_mips_elf_final_write_processing): Rename from
  3505. mips_elf_final_write_processing and make globally visible.
  3506. (_bfd_mips_elf_fake_sections): Rename from
  3507. mips_elf_fake_sections and make globally visible.
  3508. (_bfd_mips_elf_section_from_bfd_section): Rename from
  3509. mips_elf_section_from_bfd_section and make globally visible.
  3510. (_bfd_mips_elf_section_processing): New function, broken out of
  3511. mips_elf_section_processing.
  3512. (mips_elf32_section_processing): Rename from
  3513. mips_elf_section_processing; call
  3514. _bfd_mips_elf_section_processing.
  3515. (_bfd_mips_elf_symbol_processing): Rename from
  3516. mips_elf_symbol_processing and make globally visible.
  3517. (_bfd_mips_elf_read_ecoff_info): Rename from
  3518. mips_elf_read_ecoff_info and make globally visible.
  3519. (mips_elf32_ecoff_debug_swap): Rename from
  3520. mips_elf_ecoff_debug_swap.
  3521. * elf.c (_bfd_elf_symbol_from_bfd_symbol): Use asymbol rather than
  3522. struct symbol_cache_entry.
  3523. (_bfd_elf_validate_reloc): New function, moved in from
  3524. elfcode.h:validate_reloc.
  3525. * elfcode.h (validate_reloc): Remove; moved into elf.c and renamed
  3526. to _bfd_elf_validate_reloc. Change all callers.
  3527. * elf-bfd.h (bfd_section_from_shdr): Declare.
  3528. (_bfd_elf_symbol_from_bfd_symbol): Declare.
  3529. (_bfd_elf_validate_reloc): Declare.
  3530. (_bfd_mips_elf_object_p): Declare.
  3531. (_bfd_mips_elf_fake_sections): Declare.
  3532. (_bfd_mips_elf_section_from_bfd_section): Declare.
  3533. (_bfd_mips_elf_section_processing): Declare.
  3534. (_bfd_mips_elf_symbol_processing): Declare.
  3535. (_bfd_mips_elf_read_ecoff_info): Declare.
  3536. (_bfd_mips_elf_final_write_processing): Declare.
  3537. * elfxx-target.h (bfd_elfNN_get_reloc_upper_bound): Don't define
  3538. if already defined.
  3539. * elf32-mips.c (mips_elf_object_p): Handle E_MIPS_ARCH_4.
  3540. (mips_elf_final_write_processing): Likewise.
  3541. Wed May 29 16:15:29 1996 Ian Lance Taylor <ian@cygnus.com>
  3542. 64-bit MIPS ELF ABI objdump support:
  3543. * elf64-mips.c: New file.
  3544. * Makefile.in: Rebuild dependencies.
  3545. (BFD64_BACKENDS): Add elf64-mips.o.
  3546. (BFD64_BACKENDS_CFILES): Add elf64-mips.c.
  3547. * config.bfd (mips*el-*-elf*) Add bfd_elf64_bigmips_vec and
  3548. bfd_elf64_littlemips_vec to targ_selvecs.
  3549. (mips*-*-elf*): Likewise.
  3550. * configure.in: Add bfd_elf64_bigmips_vec and
  3551. bfd_elf64_littlemips_vec to vector switch.
  3552. * configure: Rebuild.
  3553. * elf32-mips.c (_bfd_mips_elf_section_from_shdr): New function,
  3554. broken out of mips_elf_section_from_shdr.
  3555. (mips_elf32_section_from_shdr): Rename from
  3556. mips_elf_section_from_shdr. Call new function.
  3557. (elf_backend_section_from_shdr): Update name of renamed function.
  3558. * elf-bfd.h (struct elf_size_info): Change second parameter of
  3559. write_out_phdrs to be const. Likewise for second parameter of
  3560. swap_symbol_out.
  3561. (struct bfd_elf_section_data): Add rel_hdr2 field.
  3562. (bfd_elf32_swap_symbol_in): Change second parameter to be const.
  3563. (bfd_elf32_swap_symbol_out): Likewise.
  3564. (bfd_elf32_swap_reloc_in): Likewise.
  3565. (bfd_elf32_swap_reloc_out): Likewise.
  3566. (bfd_elf32_swap_reloca_in): Likewise.
  3567. (bfd_elf32_swap_reloca_out): Likewise.
  3568. (bfd_elf32_swap_phdr_in): Likewise.
  3569. (bfd_elf32_swap_phdr_out): Likewise.
  3570. (bfd_elf32_swap_dyn_in): Likewise.
  3571. (bfd_elf32_swap_dyn_out): Likewise.
  3572. (bfd_elf32_slurp_symbol_table): Declare.
  3573. (bfd_elf32_write_shdrs_and_ehdr): Declare.
  3574. (bfd_elf32_write_out_phdrs): Declare.
  3575. (bfd_elf64_swap_symbol_in): Change second parameter to be const.
  3576. (bfd_elf64_swap_symbol_out): Likewise.
  3577. (bfd_elf64_swap_reloc_in): Likewise.
  3578. (bfd_elf64_swap_reloc_out): Likewise.
  3579. (bfd_elf64_swap_reloca_in): Likewise.
  3580. (bfd_elf64_swap_reloca_out): Likewise.
  3581. (bfd_elf64_swap_phdr_in): Likewise.
  3582. (bfd_elf64_swap_phdr_out): Likewise.
  3583. (bfd_elf64_swap_dyn_in): Likewise.
  3584. (bfd_elf64_swap_dyn_out): Likewise.
  3585. (bfd_elf64_slurp_symbol_table): Declare.
  3586. (bfd_elf64_write_shdrs_and_ehdr): Declare.
  3587. (bfd_elf64_write_out_phdrs): Declare.
  3588. (_bfd_mips_elf_section_from_shdr): Declare.
  3589. * elf.c (bfd_section_from_shdr): Remove assertion requiring
  3590. SHT_REL/SHT_RELA to match use_rela_p. If there is already a reloc
  3591. section for the section, add the new one to rel_hdr2. Increment
  3592. reloc_count rather than setting it.
  3593. * elfcode.h (elf_slurp_symbol_table): Define name as macro.
  3594. Remove static declaration.
  3595. (elf_write_shdrs_and_ehdr): Define name as macro.
  3596. (elf_write_out_phdrs): Likewise.
  3597. (elf_swap_ehdr_in, elf_swap_ehdr_out): Declare.
  3598. (elf_swap_shdr_in, elf_swap_shdr_out): Declare.
  3599. (elf_swap_symbol_in): Change second parameter to be const.
  3600. (elf_swap_symbol_out): Likewise.
  3601. (elf_swap_ehdr_in, elf_swap_ehdr_out): Likewise.
  3602. (elf_swap_shdr_in, elf_swap_shdr_out): Likewise.
  3603. (elf_swap_phdr_in, elf_swap_phdr_out): Likewise.
  3604. (elf_swap_reloc_in, elf_swap_reloc_out): Likewise.
  3605. (elf_swap_reloca_in, elf_swap_reloca_out): Likewise.
  3606. (elf_write_out_phdrs): Rename from write_out_phdrs. Change second
  3607. parameter to be const. Make non-static.
  3608. (elf_write_shdrs_and_ehdr): Rename from write_shdrs_and_ehdr.
  3609. Make non-static.
  3610. (elf_slurp_symbol_table): Make non-static.
  3611. (NAME(_bfd_elf,size_info)): Update names of renamed functions.
  3612. * elfxx-target.h (elf_info_to_howto): Define if not defined.
  3613. (elf_backend_size_info): Likewise.
  3614. (elfNN_bed): Use elf_backend_size_info.
  3615. * targets.c (bfd_elf64_bigmips_vec): Declare.
  3616. (bfd_elf64_littlemips_vec): Declare.
  3617. (bfd_target_vector): Add bfd_elf64_bigmips_vec and
  3618. bfd_elf64_littlemips_vec if BFD64 is defined.
  3619. * libbfd.c (bfd_get_file_window): Add cast to fprintf argument.
  3620. Tue May 28 11:42:08 1996 Ian Lance Taylor <ian@cygnus.com>
  3621. * coff-sh.c (sh_relax_delete_bytes): Insert nop instructions, not
  3622. zeroes, in alignment holes.
  3623. * configure: Rebuild with autoconf 2.10.
  3624. * aoutx.h (NAME(aout,find_nearest_line)): Make room for the
  3625. potential leading underscore in the allocated buffer.
  3626. Fri May 24 14:28:38 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  3627. * elf32-ppc.c (ppc_elf_add_symbol_hook): Do not put small common
  3628. symbols into .sbss if this is a relocatable link.
  3629. Thu May 23 12:26:24 1996 Ian Lance Taylor <ian@cygnus.com>
  3630. * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Warn about
  3631. undefined symbols when creating a shared library.
  3632. Fri May 17 13:54:15 1996 Ian Lance Taylor <ian@cygnus.com>
  3633. * coff-sh.c: Add a bunch of new code and static const arrays to
  3634. support aligning loads and stores on four byte memory boundaries.
  3635. Also:
  3636. (sh_coff_howtos): Add entries for R_SH_CODE, R_SH_DATA and
  3637. R_SH_LABEL.
  3638. (sh_relax_section): Look for R_SH_CODE relocs. If we find one,
  3639. call sh_align_loads.
  3640. (sh_relax_delete_bytes): Don't mark R_SH_CODE or R_SH_DATA relocs
  3641. as unused.
  3642. Thu May 16 16:34:13 1996 Ian Lance Taylor <ian@cygnus.com>
  3643. * cache.c (bfd_open_file): Unlink the file before opening it for
  3644. write. From Marty Leisner <leisner@sdsp.mc.xerox.com>.
  3645. * opncls.c (bfd_fdopenr): Set opened_once.
  3646. Tue May 14 12:35:32 1996 Ian Lance Taylor <ian@cygnus.com>
  3647. * som.c (som_slurp_reloc_table): Clear external_relocs cache after
  3648. freeing it.
  3649. * libbfd.c: Remove #ifdef FILE_OFFSET_IS_CHAR_INDEX, and compile
  3650. the code unconditionally.
  3651. Mon May 13 19:51:37 1996 Ian Lance Taylor <ian@cygnus.com>
  3652. * libcoff-in.h (struct pei_section_tdata): Define structure.
  3653. (pei_section_data): Define macro.
  3654. * libcoff.h: Rebuild.
  3655. * coffcode.h (coff_set_alignment_hook): If COFF_IMAGE_WITH_PE,
  3656. store s_paddr field in pei_section_data.
  3657. (coff_compute_section_file_positions): Use pei_section_data rather
  3658. than _cooked_size, and don't overwrite an existing value.
  3659. (coff_write_object_contents): If COFF_OBJ_WITH_PE, set s_paddr to
  3660. 0. If COFF_IMAGE_WITH_PE, set s_paddr to pei_section_data.
  3661. * peicode.h (coff_bfd_copy_private_section_data): Define if
  3662. COFF_IMAGE_WITH_PE.
  3663. (pe_bfd_copy_private_section_data): New static function if
  3664. COFF_IMAGE_WITH_PE.
  3665. Wed May 8 16:10:38 1996 Ian Lance Taylor <ian@cygnus.com>
  3666. * srec.c (srec_set_arch_mach): Write as a function rather than a
  3667. macro definition.
  3668. * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): If an archive has
  3669. no map, just check each member in turn to see whether it is
  3670. required.
  3671. Wed May 8 09:17:34 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  3672. * ppcboot.c (ppcboot_object_p): Check for type 0x41 in partition
  3673. table. Call BFD_ASSERT to validate header size, instead of
  3674. calling fatal.
  3675. (ppcboot_bfd_print_private_bfd_data): Put quotes around partition
  3676. name.
  3677. Tue May 7 16:10:19 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  3678. * ppcboot.c: New target for looking at PPCbug boot records.
  3679. * config{ure.in,.bfd}: Add support for ppcboot target.
  3680. * targets.c: Ditto.
  3681. * configure: Regenerate.
  3682. Tue May 7 11:15:19 1996 Jeffrey A Law (law@cygnus.com)
  3683. * coff-h8300.c (howto_table): Update names to match recent
  3684. changes to include/coff/internal.h. Fix minor errors in the
  3685. existing relocs. Add R_MOVL1 and R_MOVL2.
  3686. (rtype2howto): Similarly.
  3687. (h8300_reloc16_estimate): Rewrite to simplify, fix bugs in the
  3688. existing relaxing code and peform more relaxing.
  3689. (h8300_reloc16_extra_cases): Likewise.
  3690. Mon May 6 18:24:09 1996 Jeffrey A Law (law@cygnus.com)
  3691. * reloc16.c (bfd_coff_reloc16_get_value): Handle common
  3692. symbols correctly.
  3693. Sat May 4 05:08:45 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
  3694. * elfcode.h (elf_object_p): Reject generic ELF target if
  3695. e_machine matches an alternate machine code in a specific backend.
  3696. * netbsd-core.c (netbsd_core_vec): Remove initializer for
  3697. obsolete align_power_min field.
  3698. Fri May 3 13:07:35 1996 Jeffrey A Law (law@cygnus.com)
  3699. * coff-h8300.c (reloc_howto_type): Add howto entry for
  3700. R_PCRWORD_B.
  3701. (rtype2howto): Handle R_PCRWORD_B.
  3702. (h8300_reloc16_extra_cases): Handle R_PCRWORD_B.
  3703. (h8300_reloc_16_estimate): Likewise. Try to turn a 16bit
  3704. pc-relative branch (R_PCRWORD) into an 8bit pc-relative
  3705. branch (R_PCWORD_B).
  3706. Fri May 3 10:47:41 1996 Ian Lance Taylor <ian@cygnus.com>
  3707. * aoutx.h (translate_from_native_sym_flags): Set the section for
  3708. BSF_CONSTRUCTOR symbols.
  3709. * cofflink.c (_bfd_coff_link_input_bfd): Correct setting of
  3710. last_bf_index.
  3711. Wed May 1 18:39:32 1996 Doug Evans <dje@canuck.cygnus.com>
  3712. * coffcode.h (coff_write_object_contents): In comdat section lookup,
  3713. stop looking when section is found.
  3714. Wed May 1 14:17:57 1996 Ian Lance Taylor <ian@cygnus.com>
  3715. * coffcode.h (STRING_SIZE_SIZE): Define.
  3716. (styp_to_sec_flags): Handle long symbol names when looking for the
  3717. section symbol.
  3718. (bfd_coff_backend_data): Add _bfd_coff_long_section_names field.
  3719. (bfd_coff_long_section_names): Define.
  3720. (coff_write_object_contents): Handle long section names.
  3721. (bfd_coff_std_swap_table): Initialize new field.
  3722. * libcoff.h: Rebuild.
  3723. * coffgen.c (make_a_section_from_file): Handle long section
  3724. names.
  3725. (coff_write_symbols): Handle long section names.
  3726. * coff-alpha.c (alpha_ecoff_backend_data): Initialize new field.
  3727. * coff-mips.c (mips_ecoff_backend_data): Likewise.
  3728. * pe-arm.c (COFF_LONG_SECTION_NAMES): Define.
  3729. * pei-arm.c (COFF_LONG_SECTION_NAMES): Define.
  3730. * pe-i386.c (COFF_LONG_SECTION_NAMES): Define.
  3731. * pei-i386.c (COFF_LONG_SECTION_NAMES): Define.
  3732. * pe-ppc.c (COFF_LONG_SECTION_NAMES): Define.
  3733. * pei-ppc.c (COFF_LONG_SECTION_NAMES): Define.
  3734. * bout.c (b_out_callback): Set lma of sections.
  3735. (b_out_bfd_get_relocated_section_contents): Rename in_abfd
  3736. parameter to output_bfd. Used input_bfd instead of output_bfd in
  3737. several places.
  3738. Tue Apr 30 17:56:39 1996 Ian Lance Taylor <ian@cygnus.com>
  3739. * aoutx.h (translate_from_native_sym_flags): Don't create
  3740. SEC_CONSTRUCTOR sections.
  3741. * ecoff.c (ecoff_set_symbol_info): Likewise.
  3742. * elf32-mips.c (mips_elf_copy_private_bfd_data): Copy elf_gp.
  3743. From Don Bowman <bowman@waterloo.hp.com>.
  3744. Tue Apr 30 17:06:32 1996 Doug Evans <dje@canuck.cygnus.com>
  3745. * coff-arm.c (armcoff_little_vec): If COFF_WITH_PE is defined, add
  3746. SEC_LINK_ONCE and SEC_LINK_DUPLICATES to section_flags.
  3747. Mon Apr 29 13:15:17 1996 Ian Lance Taylor <ian@cygnus.com>
  3748. * elf32-mips.c (struct mips_elf_link_hash_entry): Add
  3749. mips_32_relocs field.
  3750. (mips_elf_link_hash_newfunc): Initialize mips_32_relocs field.
  3751. (mips_elf_relocate_section): Copy R_MIPS_REL32 and R_MIPS_32
  3752. relocs against a global symbol which is not defined in a regular
  3753. file.
  3754. (mips_elf_check_relocs): For a R_MIPS_REL32 or R_MIPS_32 reloc
  3755. against a global symbol, increment mips_32_relocs.
  3756. (mips_elf_adjust_dynamic_symbol): If mips_32_relocs is set, and
  3757. the symbol is not defined in a regular file, make room in the
  3758. .rel.dyn section.
  3759. Fri Apr 26 18:00:37 1996 Ian Lance Taylor <ian@cygnus.com>
  3760. * ecoff.c (ecoff_compute_section_file_positions): Track the real
  3761. file position and the virtual file position separately. Set
  3762. filepos information bsaed on the real file position.
  3763. (_bfd_ecoff_set_section_contents): Handle .lib sections like the
  3764. Jan 23 change to coffcode.h.
  3765. * som.c (som_slurp_symbol_table): Set the symbol count to the
  3766. number of BFD symbols created.
  3767. Fri Apr 26 12:34:29 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  3768. * elf32-ppc.c (ppc_elf_check_relocs): Forward relocations to the
  3769. output file if linking shared objects. Loop to check all relocs,
  3770. rather than returning false on first error.
  3771. Thu Apr 25 13:25:12 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  3772. * elf32-ppc.c (ppc_elf_create_linker_section): Add PLT case.
  3773. (ppc_elf_additional_program_headers): If .interp section, bump #
  3774. of program headers by 1.
  3775. (ppc_elf_adjust_dynamic_symbol): Flesh out support.
  3776. (ppc_elf_size_dynamic_sections): Add support for .plt section.
  3777. (ppc_elf_check_relocs): Print out filename in debug code. Enable
  3778. PLT support.
  3779. (ppc_elf_finish_dynamic_symbol): Add support for PLT's, beef up
  3780. debug output.
  3781. (ppc_elf_relocate_section): If the output section isn't defined,
  3782. don't abort, just give an error message.
  3783. * elflink.c (_bfd_elf_create_dynamic_sections): If the section
  3784. being created is .sdata or .sdata2, don't make the symbol dynamic.
  3785. Wed Apr 24 14:04:07 1996 Ian Lance Taylor <ian@cygnus.com>
  3786. * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): Look through the
  3787. members of an archive for dynamic objects with no symbols, and
  3788. pass them directly to check_archive_element.
  3789. (xcoff_link_check_ar_symbols): Pass dynamic objects to
  3790. xcoff_link_check_dynamic_ar_symbols.
  3791. (xcoff_link_check_dynamic_ar_symbols): New static function.
  3792. * coff-rs6000.c (rs6000coff_vec): Change BFD_JUMP_TABLE_DYNAMIC
  3793. from _bfd_nodynamic to _bfd_xcoff.
  3794. * libcoff-in.h (_bfd_xcoff_get_dynamic_symtab_upper_bound):
  3795. Declare.
  3796. (_bfd_xcoff_canonicalize_dynamic_symtab): Declare.
  3797. (_bfd_xcoff_get_dynamic_reloc_upper_bound): Declare.
  3798. (_bfd_xcoff_canonicalize_dynamic_reloc): Declare.
  3799. * libcoff.h: Rebuild.
  3800. * xcofflink.c (xcoff_swap_ldrel_in): New static function.
  3801. (xcoff_get_section_contents): New static function.
  3802. (_bfd_xcoff_get_dynamic_symtab_upper_bound): New function.
  3803. (_bfd_xcoff_canonicalize_dynamic_symtab): New function.
  3804. (_bfd_xcoff_get_dynamic_reloc_upper_bound): New function.
  3805. (xcoff_dynamic_reloc): New static variable.
  3806. (_bfd_xcoff_canonicalize_dynamic_reloc): New function.
  3807. (xcoff_link_add_dynamic_symbols): Use xcoff_get_section_contents.
  3808. Tue Apr 23 12:48:42 1996 Ian Lance Taylor <ian@cygnus.com>
  3809. * coff-sparc.c (bfd_coff_generic_reloc): Return bfd_reloc_ok even
  3810. if reloc_entry->addend is not 0.
  3811. (CALC_ADDEND): Just set the addend to reloc.r_offset.
  3812. Mon Apr 22 18:29:01 1996 Doug Evans <dje@canuck.cygnus.com>
  3813. * elf32-sparc.c (_bfd_sparc_elf_howto_table): Fix spelling of
  3814. R_SPARC_GLOB_JMP.
  3815. * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
  3816. Add entries for R_SPARC_[56].
  3817. (sparc_reloc_map): Add entries for R_SPARC_[56].
  3818. Mon Apr 22 15:07:24 1996 Ian Lance Taylor <ian@cygnus.com>
  3819. Optimize linking of stabs in sections as used in ELF and COFF.
  3820. * stabs.c: New file.
  3821. * libbfd-in.h (_bfd_link_section_stabs): Declare.
  3822. (_bfd_write_section_stabs): Declare.
  3823. (_bfd_write_stab_strings): Declare.
  3824. * libbfd.h: Rebuild.
  3825. * libcoff-in.h (struct coff_section_tdata): Add stab_info field.
  3826. (struct coff_link_hash_table): Add stab_info field.
  3827. * libcoff.h: Rebuild.
  3828. * cofflink.c (_bfd_coff_link_hash_table_init): Initialize
  3829. stab_info field.
  3830. (coff_link_add_symbols): Call _bfd_link_section_stabs if
  3831. appropriate.
  3832. (_bfd_coff_final_link): Write out stab strings hash table.
  3833. (_bfd_coff_link_input_bfd): Handle optimized stabs sections.
  3834. * coff-ppc.c (ppc_bfd_coff_final_link): Write out stab strings
  3835. hash table.
  3836. * elf-bfd.h (struct elf_link_hash_table): Add stab_info field.
  3837. (struct bfd_elf_section_data): Add stab_info field.
  3838. * elf.c (_bfd_elf_link_hash_table_init): Initialize stab_info
  3839. field.
  3840. * elflink.h (elf_link_add_object_symbols): If appropriate, call
  3841. _bfd_link_section_stabs.
  3842. (elf_bfd_final_link): Write out stab strings hash table.
  3843. (elf_link_input_bfd): Handle optimized stabs sections.
  3844. * reloc.c (_bfd_final_link_relocate): Check address against
  3845. _raw_size rather than _cooked_size.
  3846. * Makefile.in: Rebuild dependencies.
  3847. (BFD_LIBS): Add stabs.o
  3848. (BFD_LIBS_CFILES): Add stabs.c.
  3849. * VERSION: Increment for bfdlink.h change.
  3850. * coffgen.c (coff_renumber_symbols): Correct handling of
  3851. BSF_NOT_AT_END common symbols.
  3852. Fri Apr 19 19:21:56 1996 Ian Lance Taylor <ian@cygnus.com>
  3853. * coff-ppc.c (record_toc): Add cast to avoid warning.
  3854. (ppc_allocate_toc_section): Likewise.
  3855. (coff_ppc_relocate_section): Remove ANSI C string concatenation.
  3856. (ppc_coff_reloc_type_lookup): Remove unreached code.
  3857. * coffcode.h (coff_write_object_contents): Don't take the address
  3858. of an array.
  3859. * peicode.h (pe_print_idata): Add casts to avoid warning.
  3860. (pe_print_edata): Likewise.
  3861. (pe_print_reloc): Remove ANSI C string concatenation.
  3862. Thu Apr 18 18:51:18 1996 Ian Lance Taylor <ian@cygnus.com>
  3863. * libcoff-in.h (struct coff_final_link_info): Add last_bf_index
  3864. and last_bf fields.
  3865. * libcoff.h: Rebuild.
  3866. * coffswap.h (coff_swap_aux_in): Swap endndx field for C_FCN
  3867. symbols.
  3868. (coff_swap_aux_out): Likewise.
  3869. * peicode.h (coff_swap_aux_in): Likewise.
  3870. (coff_swap_aux_out): Likewise.
  3871. * coffgen.c (coff_pointerize_aux): Check endndx field for C_FCN
  3872. symbols.
  3873. * cofflink.c (_bfd_coff_final_link): Initialize last_bf_index
  3874. field.
  3875. (_bfd_coff_link_input_bfd): Check endndx field for C_FCN symbols.
  3876. Fix up .bf endndx link fields.
  3877. * coff-ppc.c (ppc_bfd_coff_final_link): Initialize last_bf_index
  3878. field.
  3879. * xcofflink.c (xcoff_link_input_bfd): Check endndx field for C_FCN
  3880. symbols.
  3881. Wed Apr 17 12:08:24 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  3882. * pe{,i}-ppc.c (PPC_PE): Define instead of PPC, so that compiling
  3883. on Solaris PowerPC systems doesn't get confused.
  3884. * coffcode.h (coff_write_object_contents): Use #ifdef PPC_PE, not
  3885. #ifdef PPC.
  3886. * elfcore.h (bfd_prstatus, bfd_fpregset): Add thread argument.
  3887. (elf_corefile_note): If HAVE_SYS_PROCFS_H is not defined, don't
  3888. update did_reg and did_reg2.
  3889. Wed Apr 17 13:07:37 1996 Ian Lance Taylor <ian@cygnus.com>
  3890. * xcofflink.c (xcoff_link_input_bfd): Check for TOC overflow.
  3891. * linker.c (_bfd_generic_link_add_one_symbol): When calling the
  3892. callback routines, pass h->root.string rather than name, in case
  3893. copy is true and name is transient.
  3894. Tue Apr 16 16:36:38 1996 Stu Grossman (grossman@lisa.cygnus.com)
  3895. * elfcore.h: Add support for core files with multiple threads.
  3896. (Primarily for Solaris.)
  3897. Tue Apr 16 13:44:08 1996 Ian Lance Taylor <ian@cygnus.com>
  3898. * aoutx.h (NAME(aout,squirt_out_relocs)): Don't do anything if
  3899. section->orelocation is NULL.
  3900. * coffgen.c (bfd_coff_get_syment): New function.
  3901. (bfd_coff_get_auxent): New function.
  3902. * bfd-in.h (bfd_coff_get_syment): Declare.
  3903. (bfd_coff_get_auxent): Declare.
  3904. * bfd-in2.h: Rebuild.
  3905. Mon Apr 15 19:06:59 1996 Ian Lance Taylor <ian@cygnus.com>
  3906. * elf32-mips.c (struct mips_hi16): Define.
  3907. (mips_hi16_addr, mips_hi16_addend): Remove.
  3908. (mips_hi16_list): New static variable.
  3909. (mips_elf_hi16_reloc): Maintain a list of unmatched HI16 relocs.
  3910. (mips_elf_lo16_reloc): Process mips_hi16_list.
  3911. (mips_elf_relocate_section): Permit an arbitrary number of HI16
  3912. relocs before the associated LO16 reloc.
  3913. Wed Apr 10 00:23:53 1996 Ian Lance Taylor <ian@cygnus.com>
  3914. * versados.c (versados_scan): Check bfd_alloc return value.
  3915. (versados_object_p): Check all bfd_read return values. Require
  3916. that lang field be less than 10, to avoid confusion with Intel Hex
  3917. files.
  3918. * libaout.h (WRITE_HEADERS): Write out the relocs even if there
  3919. aren't any symbols.
  3920. * aoutx.h (NAME(aout,swap_std_reloc_out)): Set r_index to N_ABS,
  3921. not 0, for an absolute symbol.
  3922. (NAME(aout,swap_ext_reloc_out)): Likewise.
  3923. * ihex.c (ihex_scan): Accept a length of 4 for record type 5.
  3924. (ihex_write_object_contents): For a large start address, output
  3925. the full 32 bit address in record type 5.
  3926. * ieee.c (ieee_write_byte): Change second parameter from bfd_byte
  3927. to int to avoid promotion problems in prototype.
  3928. Tue Apr 9 11:44:21 1996 Ian Lance Taylor <ian@cygnus.com>
  3929. * configure.host: Use ${srcdir} when looking for picfrag.
  3930. * configure.host: Switch on ${libdir}, not $(libdir). From
  3931. alan@spri.levels.unisa.edu.au (Alan Modra).
  3932. * aoutx.h (aout_link_add_symbols): Always call add_dynamic_symbols
  3933. entry point, not just for DYNAMIC objects.
  3934. * sunos.c (sunos_add_dynamic_symbols): Always call
  3935. sunos_create_dynamic_sections. If called with a non DYNAMIC
  3936. object, don't do anything else.
  3937. (sunos_add_one_symbol): Don't call sunos_create_dynamic_sections.
  3938. Mon Apr 8 12:09:36 1996 Ian Lance Taylor <ian@cygnus.com>
  3939. * configure.in: Permit --enable-shared to specify a list of
  3940. directories.
  3941. * configure: Rebuild.
  3942. * configure.host: Set HLDFLAGS and SHLIB_CFLAGS for *-dec-osf*
  3943. host when configuring with --enable-shard.
  3944. Fri Apr 5 12:24:13 1996 Ian Lance Taylor <ian@cygnus.com>
  3945. * config.bfd: Add i[345]86-*-freebsdelf* target; from John Polstra
  3946. <jdp@polstra.com>.
  3947. * linker.c (link_action): For WARN_ROW/warn, use MWARN, not CYCLE,
  3948. to avoid crashing in bfd_hash_replace.
  3949. * sysdep.h: Use #ifdef, not #if.
  3950. Thu Apr 4 23:32:23 1996 Ian Lance Taylor <ian@cygnus.com>
  3951. * config.in: Rebuild.
  3952. Thu Apr 4 18:49:09 1996 Fred Fish <fnf@cygnus.com>
  3953. * configure.in (mips-sony-bsd*): Fix typo in AC_DEFINE.
  3954. (AC_CHECK_HEADERS): Check for sys/time.h
  3955. (AC_HEADER_TIME): Add macro.
  3956. * configure: Rebuild.
  3957. * sysdep.h: Use TIME_WITH_SYS_TIME and HAVE_SYS_TIME_H
  3958. to control what combination of <time> and <sys/time.h>
  3959. get included.
  3960. Tue Apr 2 13:11:53 1996 Doug Evans <dje@canuck.cygnus.com>
  3961. * aoutf1.h (sunos_32_set_arch_mach): Handle M_SPARCLET.
  3962. (aout_32_sunos4_write_object_contents): Likewise.
  3963. * aoutx.h (NAME(aout,machine_type)): Handle
  3964. bfd_mach_sparc_{sparclet,sparclite}.
  3965. * archures.c (bfd_mach_sparc_{sparclet,sparclite}): Define.
  3966. (bfd_mach_sparc_v9_p): Update.
  3967. * cpu-sparc.c (arch_info_struct): Add entries for sparclet,sparclite.
  3968. * libaout.h (enum machine_type): Add M_SPARCLET.
  3969. * sunos.c (MACHTYPE_OK): Define.
  3970. * bfd-in2.h: Regenerated.
  3971. Tue Apr 2 00:33:18 1996 Ian Lance Taylor <ian@cygnus.com>
  3972. * elf-bfd.h (struct elf_link_hash_table): Add hgot field.
  3973. * elf.c (_bfd_elf_link_hash_table_init): Initialize hgot field.
  3974. * elflink.c (_bfd_elf_create_got_section): Store the
  3975. _GLOBAL_OFFSET_TABLE_ hash table entry in the hgot field.
  3976. * elf32-sparc.c (elf32_sparc_check_relocs): If the size of the
  3977. global offset table goes over 0x1000, set the value of
  3978. _GLOBAL_OFFSET_TABLE_ to 0x1000 into the section.
  3979. (elf32_sparc_relocate_section): Subtract the offset of
  3980. _GLOBAL_OFFSET_TABLE_ when handling GOT relocations.
  3981. * elfcode.h: Don't include <string.h>.
  3982. Mon Apr 1 10:39:24 1996 Jeffrey A Law (law@cygnus.com)
  3983. * linker.c (_bfd_generic_link_hash_newfunc): Renamed from
  3984. generic_link_hash_newfunc. All references changed.
  3985. * genlink.h (_bfd_generic_link_hash_newfunc): Declaration
  3986. moved here from libbfd-in.h.
  3987. * libbfd-in.h: Corresponding changes.
  3988. * libbfd.h: Regenerated.
  3989. Mon Apr 1 12:35:36 1996 Ian Lance Taylor <ian@cygnus.com>
  3990. * aoutx.h (aout_link_input_section_std): When reporting an
  3991. overflow error, use the name of the symbol in the hash table if
  3992. available.
  3993. (aout_link_input_section_ext): Likewise.
  3994. * elflink.h (elf_adjust_dynamic_symbol): If a common symbol got
  3995. defined in a regular file, set ELF_LINK_HASH_DEF_REGULAR.
  3996. Sun Mar 31 01:58:41 1996 steve chamberlain <sac@slash.cygnus.com>
  3997. * peicode.h (coff_swap_aouthdr_out): Delete test for .junk.
  3998. * coffcode.h (coff_compute_section_file_positions): Likewise.
  3999. (coff_write_object_contents): Likewise.
  4000. Fri Mar 29 12:44:36 1996 Ian Lance Taylor <ian@cygnus.com>
  4001. * section.c (SEC_LINK_ONCE): Define.
  4002. (SEC_LINK_DUPLICATES): Define.
  4003. (SEC_LINK_DUPLICATES_DISCARD): Define.
  4004. (SEC_LINK_DUPLICATES_ONE_ONLY): Define.
  4005. (SEC_LINK_DUPLICATES_SAME_SIZE): Define.
  4006. (SEC_LINK_DUPLICATES_SAME_CONTENTS): Define.
  4007. * bfd-in2.h: Rebuild.
  4008. * coffcode.h (sec_to_styp_flags): If COFF_WITH_PE, turn
  4009. SEC_LINK_ONCE into IMAGE_SCN_LNK_COMDAT.
  4010. (styp_to_sec_flags): If COFF_WITH_PE, turn IMAGE_SCN_LNK_REMOVE
  4011. into SEC_EXCLUDE. If IMAGE_SCN_LNK_COMDAT is set, set
  4012. SEC_LINK_ONCE, and look through the symbol table for the setting
  4013. for SEC_LINK_DUPLICATES.
  4014. (coff_write_object_contents): If COFF_WITH_PE, if SEC_LINK_ONCE is
  4015. set for a section, find the section symbol in the symbol table,
  4016. and set the aux entry based on SEC_LINK_DUPLICATES.
  4017. * coffgen.c (coff_print_symbol): Add a space before "checksum".
  4018. * coff-arm.c (armcoff_big_vec): If COFF_WITH_PE is defined, add
  4019. SEC_LINK_ONCE and SEC_LINK_DUPLICATES to section_flags.
  4020. * coff-i386.c (i386coff_vec): Likewise.
  4021. * coff-ppc.c (TARGET_LITTLE_SYM, TARGET_BIG_SYM): Likewise.
  4022. * VERSION: Bump to 2.6.1.
  4023. * Makefile.in (stamp-h): Depend upon VERSION.
  4024. Thu Mar 28 23:48:49 1996 Jeffrey A Law (law@cygnus.com)
  4025. * libbfd-in.h (generic_link_hash_newfunc): Add declaration.
  4026. * libbfd.h: Rebuilt.
  4027. * linker.c (generic_link_hash_newfunc): No longer static.
  4028. * coffcode.h (coff_bfd_link_hash_create): Allow specific targets
  4029. to override.
  4030. * coff-h8300.c: Add two derived hash tables and their associated
  4031. funtions and #defines for use by the h8300 linker.
  4032. (h8300_reloc16_extra_cases, case R_MEM_INDIRECT): Create entries in
  4033. the function vector as needed. Place the address of the function
  4034. vector entry in the location specified by the R_MEM_INDIRECT reloc.
  4035. Rewrite the vectors section contents as necessary.
  4036. (h8300_bfd_link_add_symbols): New function for the h8300 linker.
  4037. (coff_bfd_link_add_symbols): Define to use h8300 specific version.
  4038. (coff_bfd_link_hash_table_create): Likewise.
  4039. Thu Mar 28 17:44:08 1996 Ian Lance Taylor <ian@cygnus.com>
  4040. * libhppa.h: If gcc 2.7 or higher, declare all the functions with
  4041. __attribute__ ((__unused__)) so that -Wall doesn't warn about
  4042. them.
  4043. (hppa_rebuild_insn): Pass pointer to correct type to
  4044. low_sign_unext and dis_assemble_21.
  4045. Thu Mar 28 11:00:36 1996 Doug Evans <dje@canuck.cygnus.com>
  4046. * config.bfd (sparc64-{sysv4*,solaris2*}): Delete.
  4047. Stick with sparc-*-{sysv4*,solaris2*}.
  4048. Wed Mar 27 10:43:34 1996 Ian Lance Taylor <ian@cygnus.com>
  4049. * peicode.h (coff_swap_aux_in): Swap in extra PE x_scn fields.
  4050. (coff_swap_aux_out): Swap out extra PE x_scn fields.
  4051. * coffswap.h (coff_swap_aux_in): Zero out extra PE x_scn fields.
  4052. * coffgen.c (coff_print_symbol): If any of the extra PE x_scn
  4053. fields is non-zero, print them.
  4054. * coff-ppc.c (ppc_record_toc_entry): Put inside COFF_IMAGE_WITH_PE
  4055. ifdef. Remove unused variables.
  4056. (ppc_record_data_in_toc_entry): Ifdef out. Removed unused
  4057. variables.
  4058. (ppc_mark_symbol_as_glue): Put inside COFF_IMAGE_WITH_PE ifdef.
  4059. (get_symbol_value): Ifdef out.
  4060. (pe_ppc_reloc): Ifdef out. Remove unused variables.
  4061. (coff_ppc_relocate_section): Remove unused variables. Make
  4062. fprintf strings and argument types correspond. Put before_addr in
  4063. DEBUG_RELOC ifdef.
  4064. (dump_toc): Make fprintf strings and argument types correspond.
  4065. (ppc_process_before_allocation): Remove unused variables. Always
  4066. return a value.
  4067. (ppc_reflo_reloc): Ifdef out.
  4068. (ppc_addr32nb_reloc): Ifdef out.
  4069. (ppc_coff_rtype2howto): Make fprintf strings and argument types
  4070. correspond.
  4071. (coff_ppc_rtype_to_howto): Likewise.
  4072. (ppc_coff_swap_sym_in_hook): Remove unused variables.
  4073. * peicode.h (pe_print_idata): Move otherwise unused variables into
  4074. the #ifdef where they are used. Always return a value.
  4075. (pe_print_edata): Make fprintf strings and argument types
  4076. correspond. Always return a value.
  4077. (pe_print_pdata): Removed unused variable addr_value. Always
  4078. return a value.
  4079. (pe_print_reloc): Remove unused variable onaline. Make fprintf
  4080. strings and argument types correspond. Always return a value.
  4081. * elf32-ppc.c (ppc_elf_fake_sections): Return true.
  4082. (ppc_elf_finish_dynamic_symbol): Move definition of unused
  4083. variable rela inside #if 0 section where it is used.
  4084. * ns32k.h: New file.
  4085. * cpu-ns32k.h: Include ns32k.h. Rename externally visible
  4086. functions to start with _bfd_.
  4087. * aout-ns32k.c: Include ns32k.h. Change references to renamed
  4088. functions in cpu-ns32k.h.
  4089. * Makefile.in: Rebuild dependencies.
  4090. (HFILES): Add ns32k.h.
  4091. * section.c (struct sec): Add linker_mark field. Change
  4092. user_set_vma and reloc_done to be single bit fields.
  4093. (STD_SECTION): Update accordingly.
  4094. * bfd-in2.h: Rebuild.
  4095. * aoutx.h (NAME(aout,final_link)): Mark sections included in the
  4096. link.
  4097. (aout_link_input_bfd): Don't link unmarked sections.
  4098. * cofflink.c (_bfd_coff_final_link): Mark sections included in the
  4099. link.
  4100. (_bfd_coff_link_input_bfd): Don't link unmarked sections.
  4101. * coff-ppc.c (ppc_bfd_coff_final_link): Mark sections included in
  4102. the link.
  4103. * elflink.h (elf_bfd_final_link): Mark sections included in the
  4104. link.
  4105. (elf_link_input_bfd): Don't link unmarked sections.
  4106. * xcofflink.c (_bfd_xcoff_bfd_final_link): Mark sections included
  4107. in the link.
  4108. (xcoff_link_input_bfd): Don't link unmarked sections.
  4109. * coffswap.h (coff_swap_scnhdr_out): Include section name in
  4110. overflow error messages.
  4111. Tue Mar 26 15:46:18 1996 Ian Lance Taylor <ian@cygnus.com>
  4112. * bfd.c (_bfd_default_error_handler): If _bfd_error_program_name
  4113. is not set, print "BFD: " before the error message.
  4114. * configure.in: Use AC_CHECK_TOOL to find ar and ranlib. From
  4115. Miles Bader <miles@gnu.ai.mit.edu>.
  4116. * configure: Rebuild.
  4117. Fri Mar 22 12:17:00 1996 Ian Lance Taylor <ian@cygnus.com>
  4118. * xcofflink.c (xcoff_link_input_bfd): Fix scan for C_BINCL/C_EINCL
  4119. symbols.
  4120. * config.bfd: Add ieee_vec to targ_selvecs for i960 targets and
  4121. m68k-aout, m68k-coff, and m68k-elf targets.
  4122. Fri Mar 22 11:33:44 1996 Martin Anantharaman <martin@goofy.imech.uni-duisburg.de>
  4123. * ieee.c: Changed #ifdef KEEPMINUSPCININST to #if KEEPMINUSPCININST.
  4124. (ieee_generic_stat_arch_elt): Restructured to prevent
  4125. ieee_object_p from being called repeatedly.
  4126. Thu Mar 21 11:00:47 1996 steve chamberlain <sac@slash.cygnus.com>
  4127. * coffcode.h (coff_write_object_contents): Allocate
  4128. buffers large enough for any FILEHDR or AOUTHDR.
  4129. Thu Mar 21 16:28:17 1996 David Mosberger-Tang <davidm@azstarnet.com>
  4130. * ecofflink.c (lookup_line): New static function, renamed and
  4131. slighly changed from old _bfd_ecoff_locate_line.
  4132. (_bfd_ecoff_locate_line): Cache line number information. Use
  4133. lookup_line for actual lookup.
  4134. Thu Mar 21 14:59:11 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  4135. * peicode.h (pe_print_pdata): Warn if the .pdata section is not a
  4136. multiple of 20 bytes.
  4137. Thu Mar 21 13:54:40 1996 Ian Lance Taylor <ian@cygnus.com>
  4138. * ecoff.c (_bfd_ecoff_find_nearest_line): Use bfd_zalloc to
  4139. allocate ecoff_find_line, and don't initialize by hand.
  4140. * elf32-mips.c (mips_elf_find_nearest_line): Use bfd_zalloc for
  4141. mips_elf_find_line, and don't call memset.
  4142. * coffcode.h (coff_compute_section_file_positions): If not
  4143. producing a final executable, don't consider sofar when aligning
  4144. the section to the correct size.
  4145. Wed Mar 20 16:53:12 1996 Ian Lance Taylor <ian@cygnus.com>
  4146. * coffcode.h (coff_add_missing_symbols): Ifdef out.
  4147. (coff_write_object_contents): Don't call coff_add_missing_symbols.
  4148. * coffgen.c (coff_section_symbol): Ifdef out.
  4149. Mon Mar 18 12:54:41 1996 Ian Lance Taylor <ian@cygnus.com>
  4150. * elf32-mips.c (mips_elf_gprel32_reloc): Initialize gp if
  4151. output_bfd is not NULL.
  4152. Thu Mar 14 17:12:06 1996 Doug Evans <dje@charmed.cygnus.com>
  4153. * coffgen.c (coff_get_normalized_symtab): Call bfd_zalloc instead
  4154. of bfd_alloc (fixes fix_line not being initialized).
  4155. Delete zeroing of fix_{value,tag,end,scnlen} fields.
  4156. Thu Mar 14 16:06:06 1996 Jeffrey A Law (law@cygnus.com)
  4157. * coffcode.h: Allow specific backends to override the
  4158. bfd_link_add_symbols routine.
  4159. * coff-h8300.c: Include genlink.h.
  4160. (howto_table): Add R_MEM_INDIRECT.
  4161. (rtype2howto): Support R_MEM_INDIRECT.
  4162. (h8300_reloc16_extra_cases): Handle R_MEM_INDIRECT like R_RELBYTE
  4163. for now.
  4164. Tue Mar 12 12:41:17 1996 David Mosberger-Tang <davidm@koala.azstarnet.com>
  4165. * coff-alpha.c (alpha_relocate_section): Use
  4166. info->callbacks_warning, rather than _bfd_error_handler, for
  4167. "multiple gp" warning.
  4168. Tue Mar 12 12:10:55 1996 Ian Lance Taylor <ian@cygnus.com>
  4169. * linker.c (bfd_wrapped_link_hash_lookup): New function.
  4170. (_bfd_generic_link_add_one_symbol): Remove BFD_ASSERT on hash
  4171. table string. Use bfd_wrapped_link_hash_lookup.
  4172. (_bfd_generic_link_write_global_symbol): Remove BFD_ASSERT on hash
  4173. table string.
  4174. * aoutx.h (aout_link_write_symbols): Use the name from the hash
  4175. table, if any, when writing out symbols.
  4176. (aout_link_input_section_std): Use the name from the hash table,
  4177. if any, when reporting undefined symbols.
  4178. (aout_link_input_section_ext): Likewise.
  4179. (aout_link_reloc_link_order): Use bfd_wrapped_link_hash_lookup.
  4180. * bout.c (get_value): Likewise.
  4181. * cofflink.c (_bfd_coff_reloc_link_order): Likewise.
  4182. * ecoff.c (ecoff_reloc_link_order): Likewise.
  4183. * elflink.h (elf_link_add_object_symbols): Likewise.
  4184. (elf_reloc_link_order): Likewise.
  4185. * linker.c (_bfd_generic_link_output_symbols): Likewise.
  4186. (_bfd_generic_reloc_link_order): Likewise.
  4187. (default_indirect_link_order): Likewise.
  4188. * reloc16.c (bfd_coff_reloc16_get_value): Likewise.
  4189. * sunos.c (sunos_add_one_symbol): Likewise.
  4190. * xcofflink.c (xcoff_link_add_symbols): Likewise.
  4191. (bfd_xcoff_link_count_reloc): Likewise.
  4192. (xcoff_reloc_link_order): Likewise.
  4193. * ecoffswap.h (ecoff_swap_fdr_in): If ECOFF_64, turn 0xffffffff
  4194. into -1 for intern->rss.
  4195. * configure: Rebuild with autoconf 2.8.
  4196. Mon Mar 11 12:28:31 1996 Ian Lance Taylor <ian@cygnus.com>
  4197. * stab-syms.c (__define_stab_duplicate): Define.
  4198. (bfd_get_stab_name): Rename from aout_stab_name. Rewrite to use a
  4199. switch.
  4200. * bfd-in.h (bfd_get_stab_name): Declare.
  4201. * bfd-in2.h: Rebuild.
  4202. * Makefile.in: Rebuild dependencies.
  4203. (BFD_LIBS): Add stab-syms.o.
  4204. (BFD_LIBS_CFILES): Add stab-syms.c.
  4205. (BFD32_BACKENDS): Remove stab-syms.o.
  4206. (BFD32_BACKENDS_CFILES): Remove stab-syms.c.
  4207. * configure.in: Don't list stab-syms.o in bfd_backends.
  4208. * configure: Rebuild.
  4209. * libaout.h (aout_stab_name): Don't declare.
  4210. * aoutx.h (NAME(aout,get_symbol_info)): Call bfd_get_stab_name,
  4211. not aout_stab_name.
  4212. Fri Mar 8 11:26:20 1996 Ian Lance Taylor <ian@cygnus.com>
  4213. * elf.c (assign_file_positions_for_segments): Adjust file offset
  4214. for section alignment even if SEC_LOAD is not set.
  4215. Tue Mar 5 12:02:23 1996 Ian Lance Taylor <ian@cygnus.com>
  4216. * configure.in: Don't set SHLIB or SHLINK to an empty string,
  4217. since they appear as targets in Makefile.in.
  4218. * configure: Rebuild.
  4219. * sunos.c (sunos_scan_ext_relocs): If not making a shared library,
  4220. don't fiddle with a symbol which is not defined anywhere.
  4221. Mon Mar 4 12:49:16 1996 Ian Lance Taylor <ian@cygnus.com>
  4222. * xcofflink.c (xcoff_mark): Treat undefined imported symbols as
  4223. though they are defined in a shared library.
  4224. (xcoff_build_ldsyms): Likewise.
  4225. * coffgen.c (coff_find_nearest_line): Don't look at the line
  4226. numbers for the section if section->lineno is NULL.
  4227. * elf.c (_bfd_elf_symbol_from_bfd_symbol): Print a useful error
  4228. message rather than calling BFD_ASSERT.
  4229. * elfcode.h (write_relocs): Check return value of
  4230. _bfd_elf_symbol_from_bfd_symbol.
  4231. Fri Mar 1 09:42:59 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  4232. * elf32-ppc.c (ppc_elf_add_symbol_hook): Don't set SEC_LOAD flag
  4233. for .sbss section.
  4234. Wed Feb 28 11:25:47 1996 Jeffrey A Law (law@cygnus.com)
  4235. * libhppa.h (hppa_reloc_field_selector_type): Add R_HPPA_NLSEL
  4236. and R_HPPA_NLRSEL.
  4237. (e_nsel, e_nlsel, e_nlrsel): Undefine. Add to
  4238. hppa_reloc_field_selector_type_alt.
  4239. (hppa_field_adjust): Handle e_nlsel, e_nlrsel. Fix e_nsel handling.
  4240. * som.c (hppa_som_gen_reloc_type): Handle N', NL' NLR' field
  4241. selectors.
  4242. (som_write_fixups): Finish handling of R_N0SEL and R_N1SEL.
  4243. Wed Feb 28 11:00:24 1996 Ian Lance Taylor <ian@cygnus.com>
  4244. * elf.c (assign_file_positions_for_segments): Adjust the segment
  4245. memory size for the alignment of a SEC_ALLOC section, not just a
  4246. SEC_LOAD section.
  4247. Tue Feb 27 14:17:31 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
  4248. * m68klinux.c: New file.
  4249. * hosts/m68klinux.h: New file.
  4250. * config.bfd (m68*-*-linuxaout*, m68*-*-linux*): New targets.
  4251. * configure.in (m68*-*-linux*): New native host.
  4252. (m68klinux_vec): New vector.
  4253. * configure: Rebuild.
  4254. * targets.c (m68klinux_vec): Declare.
  4255. * i386linux.c (bfd_i386linux_size_dynamic_sections): Renamed from
  4256. bfd_linux_size_dynmic_sections to avoid clash with m68klinux.c.
  4257. * bfd-in.h (bfd_i386linux_size_dynamic_sections): Rename
  4258. declaration from bfd_linux_size_dynamic_sections.
  4259. (bfd_m68klinux_size_dynamic_sections): Declare.
  4260. * bfd-in2.h: Rebuild.
  4261. * Makefile.in: Rebuild dependencies.
  4262. (BFD32_BACKENDS): Add m68klinux.o.
  4263. (BFD32_BACKENDS_CFILES): Add m68klinux.c.
  4264. Tue Feb 27 11:31:34 1996 Jeffrey A Law (law@cygnus.com)
  4265. * libhppa.h (pa_arch): Add pa20.
  4266. (hppa_reloc_field_selector_type): Add R_HPPA_NSEL.
  4267. (e_nsel): Undefine. Add to hppa_reloc_field_selector_type_alt.
  4268. (hppa_field_adjust): Handle e_nsel.
  4269. * som.c: Provide default definitions for many new relocs found only
  4270. in hpux10 include files.
  4271. (som_fixup_formats): Add several new relocs from hpux10.
  4272. (som_hppa_howto_table): Add hpux10 relocs.
  4273. (som_write_fixups): Handle R_N0SEL and R_N1SEL hpux10 relocs.
  4274. Mon Feb 26 12:52:48 1996 Stan Shebs <shebs@andros.cygnus.com>
  4275. * mpw-make.sed: Edit out recent shared library support, and
  4276. rules to rebuild .h files using doc/chew.
  4277. Mon Feb 26 14:48:39 1996 David Mosberger-Tang <davidm@AZStarNet.com>
  4278. * ecoff.c (ecoff_compute_section_file_positions): Adjust the file
  4279. size even of sections with no contents.
  4280. Mon Feb 26 14:01:13 1996 Ian Lance Taylor <ian@cygnus.com>
  4281. * cofflink.c (_bfd_coff_link_input_bfd): When merging, skip names
  4282. starting with '$' the way we skip names starting with '.'. When
  4283. updating x_endndx, don't be fooled by an index which has been
  4284. merged.
  4285. * cofflink.c (_bfd_coff_link_input_bfd): Don't try to optimize a
  4286. struct/union/enum type with no elements.
  4287. Sat Feb 24 11:38:58 1996 Ian Lance Taylor <ian@cygnus.com>
  4288. * bfd.c (bfd_errmsg): Handle a NULL return from strerror.
  4289. * archive.c (bfd_generic_archive_p): If the first file in the
  4290. archive can not be recognized as an object, don't assume that this
  4291. is the wrong format.
  4292. * elf.c (bfd_elf_set_dt_needed_name): Don't do anything if the
  4293. format is not bfd_object.
  4294. (bfd_elf_get_dt_soname): Likewise.
  4295. Wed Feb 21 13:58:04 1996 Ian Lance Taylor <ian@cygnus.com>
  4296. * coff-sh.c (sh_relax_delete_bytes): Correct range of R_SH_USES
  4297. reloc.
  4298. Tue Feb 20 16:22:44 1996 J.T. Conklin <jtc@rtl.cygnus.com>
  4299. * bfd.c (tdata): Add netbsd_core_data.
  4300. * bfd-in2.h: Regenerated.
  4301. Tue Feb 20 16:50:02 1996 Ian Lance Taylor <ian@cygnus.com>
  4302. * sunos.c (SUNOS_CONSTRUCTOR): Define.
  4303. (sunos_add_one_symbol): Don't let a symbol from a dynamic object
  4304. override a constructor symbol. Set SUNOS_CONSTRUCTOR when
  4305. appropriate.
  4306. * bout.c (b_out_squirt_out_relocs): Use udata.i rather than flags
  4307. to get the symbol index, matching 14 Jul 95 change.
  4308. Tue Feb 20 08:26:27 1996 Fred Fish <fnf@phydeaux.cygnus.com>
  4309. * coff-alpha.c (alpha_ecoff_get_relocated_section_contents):
  4310. Remove duplicate definition of gp.
  4311. Mon Feb 19 12:37:41 1996 Ian Lance Taylor <ian@cygnus.com>
  4312. * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Don't
  4313. assume that we can set the GP value and then get the same value,
  4314. since it won't be true if the output file is neither ELF nor
  4315. ECOFF.
  4316. * coff-mips.c (mips_adjust_reloc_in): Don't bother to use
  4317. _bfd_get_gp_value here.
  4318. (mips_gprel_reloc): Don't assume we can set and get the GP value.
  4319. * elf32-mips.c (mips_elf_hi16_reloc): Get gp value from
  4320. mips_elf_final_gp.
  4321. (mips_elf_lo16_reloc): Likewise.
  4322. (mips_elf_final_gp): Add pgp parameter. Set it to the GP value.
  4323. Don't require that the BFD be ELF.
  4324. (mips_elf_gprel16_reloc): Get gp value from mips_elf_final_gp.
  4325. (mips_elf_gprel32_reloc): Likewise.
  4326. (mips_elf_relocate_section): Don't assume we can set and get the
  4327. GP value.
  4328. (mips_elf_finish_dynamic_symbol): Don't bother to use
  4329. _bfd_get_gp_value here.
  4330. * elf32-mips.c (mips_elf_create_procedure_table): Initialize sv.
  4331. Don't change epdr between malloc and free. Be careful not to free
  4332. NULL pointers. Zero out the first RPDR.
  4333. * configure.host: On Linux, only pass -rpath option if $(libdir)
  4334. is neither /lib nor /usr/lib. From Alan Modra
  4335. <alan@mullet.Levels.UniSA.Edu.Au>.
  4336. * elf-bfd.h (struct elf_obj_tdata): Rename dt_needed_name to
  4337. dt_name.
  4338. (elf_dt_name): Rename from elf_dt_needed_name.
  4339. * elf.c (bfd_elf_set_dt_needed_name): Use elf_dt_name, not
  4340. elf_dt_needed_name.
  4341. (bfd_elf_get_dt_soname): New function.
  4342. * elflink.h (elf_link_add_object_symbols): Use elf_dt_name, not
  4343. elf_dt_needed_name. Save the SONAME back in elf_dt_name.
  4344. * bfd-in.h (bfd_elf_get_dt_soname): Declare.
  4345. * bfd-in2.h: Rebuild.
  4346. Mon Feb 19 02:50:23 1996 Doug Evans <dje@charmed.cygnus.com>
  4347. * elf32-sparc.c (elf32_sparc_reloc_type_lookup): Renamed from
  4348. _bfd_sparc_elf_reloc_type_lookup.
  4349. (bfd_elf32_bfd_reloc_type_lookup): Update.
  4350. * elf64-sparc.c (SPARC64_OLD_RELOCS): Define.
  4351. (sparc64_elf_howto_table): Define.
  4352. (sparc_reloc_map): Define.
  4353. (sparc64_elf_reloc_type_lookup): New function.
  4354. (sparc_elf_wdisp16_reloc): New function.
  4355. (elf_info_to_howto): Use sparc64_elf_howto_table.
  4356. (sparc64_elf_relocate_section): Likewise.
  4357. (bfd_elf64_bfd_reloc_type_lookup): Update.
  4358. Sun Feb 18 15:02:25 1996 Ian Lance Taylor <ian@cygnus.com>
  4359. * configure.host: Check for 'do not mix' from native linker before
  4360. trying to use -rpath.
  4361. Fri Feb 16 12:46:18 1996 Ian Lance Taylor <ian@cygnus.com>
  4362. * bfd.c (_bfd_get_gp_value): New function.
  4363. (_bfd_set_gp_value): New function.
  4364. * libbfd-in.h (_bfd_get_gp_value): Declare.
  4365. (_bfd_set_gp_value): Declare.
  4366. * libbfd.h: Rebuild.
  4367. * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Use
  4368. _bfd_get_gp_value and _bfd_set_gp_value rather than referring
  4369. directly to the fields in the tdata information.
  4370. (alpha_relocate_section): Likewise.
  4371. * coff-mips.c (mips_adjust_reloc_in): Likewise.
  4372. (mips_gprel_reloc): Likewise.
  4373. (mips_relocate_section): Likewise.
  4374. * elf32-mips.c (mips_elf_hi16_reloc): Likewise.
  4375. (mips_elf_lo16_reloc): Likewise.
  4376. (mips_elf_final_gp): Likewise.
  4377. (mips_elf_gprel16_reloc): Likewise.
  4378. (mips_elf_gprel32_reloc): Likewise.
  4379. (mips_elf_relocate_section): Likewise.
  4380. (mips_elf_finish_dynamic_symbol): Likewise.
  4381. * bout.c (b_out_set_arch_mach): Recognize bfd_mach_i960_jx.
  4382. Thu Feb 15 11:29:13 1996 Ian Lance Taylor <ian@cygnus.com>
  4383. * configure.in: Call AC_PROG_CC before configure.host.
  4384. * configure: Rebuild.
  4385. * configure.host: Don't set information which autoconf should
  4386. figure out, namely CC, CFLAGS, LDFLAGS, AR, and RANLIB.
  4387. * configure.host: Remove go32 and win32 host information, since it
  4388. should no longer be needed.
  4389. * elf.c (map_sections_to_segments): If we have a .dynamic section,
  4390. then start a new segment rather than put a writable section in a
  4391. readonly segment.
  4392. * configure.host: Set RPATH_ENVVAR.
  4393. * Makefile.in: Rebuild dependencies.
  4394. * elflink.c (_bfd_elf_create_linker_section): Remove unused
  4395. zero_section variable.
  4396. Thu Feb 15 10:39:17 1996 H.J. Lu <hjl@zoom.com>
  4397. * Makefile.in ($(srcdir)/bfd-in2.h): Rename target from bfd-in2.h.
  4398. ($(srcdir)/libbfd.h): Rename from libbfd.h.
  4399. ($(srcdir)/libcoff.h): Rename from libcoff.h.
  4400. Wed Feb 14 16:29:07 1996 Martin Anantharaman <martin@mail.imech.uni-duisburg.de>
  4401. * ieee.c (ieee_write_expression): Only use an R variable for a
  4402. local symbol. Don't output a zero offset. Handle a zero address.
  4403. (SRC_MASK, PCREL_OFFSET): Define based on KEEPMINUSPCININST.
  4404. (rel32_howto, rel16_howto, rel8_howto): Use SRC_MASK and
  4405. PCREL_OFFSET.
  4406. (parse_expression): Don't try to handle multiple occurrences of a
  4407. P variable. Handle I variables differently from X variables. Fix
  4408. the order of minus expressions.
  4409. (ieee_slurp_external_symbols): Generate an I variable for an NN
  4410. record. Fix handling of ATI and ATX records.
  4411. (ieee_slurp_sections): Only set minimal section attributes.
  4412. Adjust them later, based on the section contents.
  4413. (ieee_object_p): Read in the file until just after the ME record.
  4414. Call ieee_slurp_section_data to set the section flags.
  4415. (do_one): Add iterations parameter. Only repeat the first load
  4416. item. Set the section and file reloc flags.
  4417. (ieee_slurp_section_data): Set section flags. Pass iterations to
  4418. do_one.
  4419. (ieee_canonicalize_reloc): Handle I variables.
  4420. (do_with_relocs): Only emit relocation size when necessary.
  4421. Increase MAXRUN to 127. Change ov to be assigned, and take
  4422. src_mask and pcrel_offset into account.
  4423. (ieee_write_data_part): Skip sections that are not loaded.
  4424. (ieee_write_external_part): Don't output optional last entry of WX
  4425. records.
  4426. (ieee_write_me_part): Make setting of me_record neater.
  4427. (ieee_generic_stat_arch_elt): Get the size of an archive element.
  4428. * syms.c (stt): Add entries for zerovars, vars, and code.
  4429. * elfcode.h (validate_reloc): New static function.
  4430. (write_relocs): Call validate_reloc for non ELF relocs.
  4431. * elfxx-target.h (elf_symbol_leading_char): Define if not defined.
  4432. (TARGET_BIG_SYM): Use elf_symbol_leading_char.
  4433. (TARGET_LITTLE_SYM): Likewise.
  4434. * config.bfd (m68*-*-psos*): New target.
  4435. Tue Feb 13 15:56:22 1996 Bryan Ford <baford@snake.cs.utah.edu>
  4436. * i386msdos.c: Remove some #if 0 code.
  4437. (msdos_write_object_contents): Don't include empty sections in the
  4438. size computation, regardless of their address.
  4439. Tue Feb 13 15:36:37 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  4440. * elf32-ppc.c (ppc_elf_relocate_section): Don't segfault if dynboj
  4441. is NULL, ie, the -r switch is used.
  4442. Tue Feb 13 14:35:15 1996 Ian Lance Taylor <ian@cygnus.com>
  4443. * reloc.c (BFD_RELOC_MIPS_GOT_HI16): Define.
  4444. (BFD_RELOC_MIPS_GOT_LO16): Define.
  4445. (BFD_RELOC_MIPS_CALL_HI16, BFD_RELOC_MIPS_CALL_LO16): Define.
  4446. * bfd-in2.h, libbfd.h: Rebuild.
  4447. * elf32-mips.c (mips_reloc_map): Map new relocs.
  4448. * configure.host: Set HDLFLAGS for *-*-hpux with --enable-shared.
  4449. * Makefile.in ($(SHLINK)): Check ts against $(SHLIB), not
  4450. $(SHLINK).
  4451. * ieee.c (get_symbol): Set the section to bfd_abs_section.
  4452. (do_with_relocs): If EXEC_P is set and there are no relocs, use a
  4453. simple number for the section address, rather than an expression.
  4454. Limit the number of bytes between relocs to MAXRUN.
  4455. (ieee_write_me_part): Set me_record to the file offset after the
  4456. start address.
  4457. (ieee_write_processor): New static function.
  4458. (ieee_write_object_contents): Use ieee_write_processor.
  4459. Fri Feb 9 10:53:00 1996 Ian Lance Taylor <ian@cygnus.com>
  4460. * configure.host: Use ${CC-gcc} when testing for -rpath on SunOS.
  4461. * coff-aux.c: Change include of aux.h to aux-coff.h.
  4462. Thu Feb 8 14:01:03 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
  4463. * elf32-m68k.c (elf_m68k_relocate_section): For a R_68K_RELATIVE
  4464. relocation put the addend both in the reloc entry and the data.
  4465. (elf_m68k_finish_dynamic_symbol): Likewise. Mask out marker in
  4466. GOT offset value.
  4467. * elf32-m68k.c (elf_m68k_relocate_section): If -Bsymbolic, resolve
  4468. a R_68K_PCxx reloc against a defined global symbol directly.
  4469. (elf_m68k_check_relocs): Don't count such a reloc.
  4470. * elf32-m68k.c (elf_m68k_check_relocs): Don't record a symbol with
  4471. a PLTxx reloc as dynamic. Disallow PLTxxO reloc against a local
  4472. symbol for now, otherwise always record the symbol as dynamic.
  4473. (elf_m68k_adjust_dynamic_symbol): If a symbol with a PLTxx reloc
  4474. is not referenced by a dynamic object, and we are not making a
  4475. shared object, then don't make a PLT entry. If we do make a PLT
  4476. entry, make sure the symbol has been recorded as dynamic.
  4477. Wed Feb 7 13:56:06 1996 Ian Lance Taylor <ian@cygnus.com>
  4478. * configure.host: When making a shared library, set HLDFLAGS to
  4479. pass an appropriate -rpath option. Use the make variable SONAME
  4480. as the shared library soname, rather than computing it here. On
  4481. SunOS, build stamp-tshlink in place of $(SHLINK).
  4482. * Makefile.in (SONAME): New variable.
  4483. ($(SHLINK)): Make a link to the transformed name, as well.
  4484. (stamp-tshlink): New target.
  4485. (install): Skip stamp-tshlink during install.
  4486. Wed Feb 7 13:37:39 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  4487. * elf32-ppc.c (ppc_elf_add_symbol_hook): Do not assume that the
  4488. linker sections have been set up yet.
  4489. * elf.c (make_mapping): Add an additional argument to suppress
  4490. making the first section include the program headers.
  4491. (map_sections_to_segments): If the user used -Ttext such that the
  4492. program headers are on a different page, do not set the flags
  4493. saying that this section includes the program headers.
  4494. Tue Feb 6 14:04:49 1996 J.T. Conklin <jtc@rtl.cygnus.com>
  4495. * configure.in (*-*-netbsd*): Set COREFILE to netbsd-core.c.
  4496. don't define TRAD_HEADER.
  4497. * configure: Rebuild.
  4498. * netbsd-core.c: New file, support for NetBSD core files.
  4499. * hosts/*nbsd.h: Removed.
  4500. Tue Feb 6 11:47:49 1996 Doug Evans <dje@charmed.cygnus.com>
  4501. * reloc.c (BFD_RELOC_SPARC_[567]): New reloc types.
  4502. (BFD_RELOC_SPARC_LO7 reloc type): Deleted.
  4503. * libbfd.h, bfd-in2.h: Regenerated.
  4504. * elf32-sparc.c (_bfd_sparc_elf_reloc_type_lookup): Renamed from
  4505. bfd_elf32_bfd_reloc_type_lookup.
  4506. (reloc_type{,_names}): Deleted.
  4507. (_bfd_sparc_elf_howto_table): Renamed from elf_sparc_howto_table.
  4508. Add sparc64 relocs.
  4509. (sparc_reloc_map): Add sparc64 relocs.
  4510. (sparc_elf_notsupported_reloc): New static function.
  4511. (sparc_elf_wdisp16_reloc): New static function.
  4512. (elf32_sparc_check_relocs): Handle R_SPARC_WDISP{16,19}.
  4513. (elf32_sparc_relocate_section): Likewise.
  4514. (bfd_elf32_bfd_reloc_type_lookup): Define.
  4515. * elf64-sparc.c (sparc64_elf_wdisp16_reloc): Deleted.
  4516. (reloc_type{,_names}): Deleted.
  4517. (elf_sparc_howto_table): Deleted.
  4518. (sparc_reloc_map): Deleted.
  4519. (_bfd_sparc_elf_howto_table): Renamed from elf_sparc_howto_table.
  4520. (bfd_elf64_bfd_reloc_type_lookup): Change from function to #define.
  4521. Tue Feb 6 12:12:22 1996 Ian Lance Taylor <ian@cygnus.com>
  4522. * configure.host: Make SHLIB_CFLAGS include $(PICFLAG) on a
  4523. *-*-hpux* host.
  4524. * Makefile.in (program_transform_name): New variable.
  4525. (install): Transform library name before installing it.
  4526. Mon Feb 5 10:38:27 1996 Ian Lance Taylor <ian@cygnus.com>
  4527. * archures.c (bfd_mach_i960_hx): Define.
  4528. * bfd-in2.h: Rebuild.
  4529. * cpu-i960.c (scan_960_mach): Accept machine "hx".
  4530. (MATRIX): Expand entries for HX.
  4531. (arch_info_struct): Add i960:hx entry.
  4532. * bout.c (b_out_set_arch_mach): Handle bfd_mach_i960_hx.
  4533. * coffcode.h (coff_set_arch_mach_hook): Handle F_I960HX.
  4534. (coff_set_flags): Handle bfd_mach_i960_hx.
  4535. Support for building as a shared library, based on patches from
  4536. Alan Modra <alan@spri.levels.unisa.edu.au>:
  4537. * configure.in: Add AC_ARG_ENABLE for shared and commonbfdlib.
  4538. New substitutions: ALLLIBS, PICFLAG, SHLIB, SHLIB_CC,
  4539. SHLIB_CFLAGS, COMMON_SHLIB, PICLIST, SHLINK.
  4540. * configure: Rebuild.
  4541. * configure.host: If --enable-shared, adjust shared library stuff
  4542. based on the host. If the host is SunOS, and the linker supports
  4543. -rpath, set HLDFLAGS to use it.
  4544. * Makefile.in (ALLLIBS): New variable.
  4545. (PICFLAG, SHLIB, SHLIB_CC, SHLIB_CFLAGS): New variables.
  4546. (COMMON_SHLIB, SHLINK): New variables.
  4547. (.c.o): If PICFLAG is set, compile twice, once PIC, once normal.
  4548. (STAGESTUFF): Remove variable.
  4549. (all): Depend upon $(ALLLIBS) and @PICLIST@ rather than
  4550. $(TARGETLIB).
  4551. (stamp-ofiles): New target, like old ofiles target, but build
  4552. using a temporary file and move-if-change, and touch stamp-ofiles
  4553. when done.
  4554. (ofiles): Just depend upon stamp-ofiles.
  4555. (stamp-piclist, piclist): New targets.
  4556. ($(SHLIB), $(SHLINK)): New targets.
  4557. (targets.o, archures.o): Build twice if PICFLAG is set.
  4558. (do_mostlyclean): Remove pic/*.o.
  4559. (do_clean): Remove stamp-ofiles, $(SHLIB), $(SHLINK), piclist, and
  4560. stamp-piclist.
  4561. (do_distclean): Remove pic and stamp-picdir.
  4562. (install): Install shared libraries.
  4563. ($(OFILES)): Depend upon stamp-picdir.
  4564. (stamp-picdir): New target.
  4565. * libcoff-in.h: Add comment reminding people that libcoff.h is a
  4566. generated file.
  4567. * libcoff.h: Rebuild.
  4568. * elflink.h (elf_adjust_dynamic_symbol): Don't try to get the
  4569. flavour of a section with no owner.
  4570. * elf32-mips.c (mips_elf_create_dynamic_sections): Clear
  4571. ELF_LINK_NON_ELF flag.
  4572. (mips_elf_create_got_section): Likewise.
  4573. * elf.c: Revert last change, since it breaks dynamic linking.
  4574. * elf-bfd.h (struct elf_backend_data): Remove want_hdr_in_seg
  4575. field.
  4576. * elf32-mips.c (elf_backend_want_hdr_in_seg): Don't define.
  4577. * elfxx-target.h (elf_backend_want_hdr_in_seg): Don't define.
  4578. (elfNN_bed): Don't initialize want_hdr_in_seg field.
  4579. Sun Feb 4 20:45:13 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  4580. * elf.c (assign_file_positions_for_segments): If the backend does
  4581. not want the elf header or the program headers in the address
  4582. space, do not include them in the calculations.
  4583. * elf32-ppc.c (ppc_elf_additional_program_headers): New hook
  4584. function to determine if we need additional program headers.
  4585. (ppc_elf_modify_segment_map): Define as a NOP function for now.
  4586. (ppc_elf_create_linker_section): .sdata2 is a read-only section.
  4587. Sat Feb 3 23:00:03 1996 Ian Lance Taylor <ian@cygnus.com>
  4588. * coffcode.h: Move today's libcoff.h change into coffcode.h.
  4589. Sat Feb 3 15:43:44 1996 Fred Fish <fnf@cygnus.com>
  4590. * libcoff.h (bfd_coff_link_add_one_symbol): Combine macro args
  4591. back into one line. Some compilers (sunos 4.1.3 for example)
  4592. won't accept args split across more than one line.
  4593. Fri Feb 2 11:42:15 1996 Steve Chamberlain <sac@slash.cygnus.com>
  4594. * aclocal.m4 (BFD_BINARY_FOPEN): Understand cygwin32.
  4595. * configure: Regenerate.
  4596. Fri Feb 2 12:12:16 1996 Jeffrey A Law (law@cygnus.com)
  4597. * elf32-hppa.c (elf32_hppa_backend_symbol_table_processing): Don't
  4598. try to do arithmetic on a void *, cast it to a unsigned char * first.
  4599. Thu Feb 1 16:04:06 1996 Ian Lance Taylor <ian@cygnus.com>
  4600. * elf-bfd.h (ELF_LINK_NON_ELF): Define.
  4601. * elf.c (_bfd_elf_link_hash_newfunc): Set elf_link_hash_flags to
  4602. ELF_LINK_NON_ELF.
  4603. * elflink.h (elf_link_add_object_symbols): Reset ELF_LINK_NON_ELF
  4604. flag for a newly defined symbol.
  4605. (NAME(bfd_elf,record_link_assignment)): Likewise.
  4606. (elf_adjust_dynamic_symbol): If ELF_LINK_NON_ELF is set, try to
  4607. set the DEF or REF_REGULAR flags correctly.
  4608. * Makefile.in (bfd-in2.h): Make bfd.h, not protos, in docdir.
  4609. (libbfd.h, libcoff.h): Corresponding change.
  4610. * elf32-i386.c (elf_i386_check_relocs): Don't record a symbol with
  4611. a PLT32 reloc as dynamic.
  4612. (elf_i386_adjust_dynamic_symbol): If a symbol with a PLT32 reloc
  4613. is not referenced by a dynamic object, and we are not making a
  4614. shared object, then don't make a PLT entry. If we do make a PLT
  4615. entry, make sure the symbol has been recorded as dynamic.
  4616. Wed Jan 31 17:23:32 1996 Steve Chamberlain <sac@slash.cygnus.com>
  4617. * coff-i386.c (coff_i386_reloc_type_lookup): Add BFD_RELOC_32_PCREL.
  4618. * config.bfd (i[345]86-*-win32): Becomes i[345]86-*-cygwin32.
  4619. (powerpcle-*-cygwin32): New.
  4620. * peicode.h (add_data_entry): Get address from vma.
  4621. Wed Jan 31 16:23:57 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  4622. * elflink.c (_bfd_elf_create_linker_section): If the symbol
  4623. attached to the section has already been created as an undefined
  4624. symbol, treat it as if it hasn't been created yet.
  4625. Wed Jan 31 16:16:53 1996 Ian Lance Taylor <ian@cygnus.com>
  4626. * elflink.h (elf_bfd_final_link): Don't output initial dummy
  4627. symbol or section symbols if stripping all symbols and this is not
  4628. a relocateable link. Don't output the symbol string table if
  4629. there are no symbols.
  4630. (elf_link_flush_output_syms): Don't do anything if there are no
  4631. symbols to flush.
  4632. Wed Jan 31 12:55:49 1996 Richard Henderson <rth@tamu.edu>
  4633. * coff-aux.c: New file.
  4634. * hosts/m68kaux.h: New file.
  4635. * config.bfd (m68*-apple-aux*): New target.
  4636. * configure.in (m68*-apple-aux*): New native host.
  4637. (m68kaux_coff_vec): New vector.
  4638. * configure: Rebuild.
  4639. * targets.c (m68kaux_coff_vec): Declare.
  4640. * coffcode.h (bfd_coff_backend_data): Add field
  4641. _bfd_coff_link_add_one_symbol.
  4642. (bfd_coff_link_add_one_symbol): Define.
  4643. (compare_arelent_ptr): New static function if TARG_AUX.
  4644. (coff_write_relocs): If TARG_AUX, sort the relocs.
  4645. (coff_write_object_contents): Set A/UX aouthdr magic number.
  4646. (coff_link_add_one_symbol): Define if not defined.
  4647. (bfd_coff_std_swap_table): Initialize new field.
  4648. * libcoff.h: Rebuild.
  4649. * cofflink.c (coff_link_add_symbols): Call
  4650. bfd_coff_link_add_one_symbol rather than
  4651. _bfd_generic_link_add_one_symbol.
  4652. * coff-m68k.c (COFF_PAGE_SIZE): Don't define if already defined.
  4653. * coff-alpha.c (alpha_ecoff_backend_data): Initialize new field.
  4654. * coff-mips.c (mips_ecoff_backend_data): Likewise.
  4655. * Makefile.in: Rebuild dependencies.
  4656. (BFD32_BACKENDS): Add coff-aux.o.
  4657. (BFD32_BACKENDS_CFILES): Add coff-aux.c.
  4658. Wed Jan 31 11:37:46 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
  4659. * elf32-m68k.c (elf_m68k_relocate_section): Fix R_68K_GOT*
  4660. relocation; ignore addend with R_68K_{GOT,PLT}*O relocation.
  4661. Tue Jan 30 12:09:04 1996 Ian Lance Taylor <ian@cygnus.com>
  4662. * Makefile.in (do_maintainer_clean): Remove $(srcdir)/bfd-in2.h,
  4663. $(srcdir)/libbfd.h and $(srcdir)/libcoff.h.
  4664. (maintainer-clean): Warn about deleting special files.
  4665. (bfd-in2.h, libbfd.h, libcoff.h): New targets.
  4666. * elf32-hppa.c (elf32_hppa_relocate_section): Handle indirect and
  4667. warning symbols correctly.
  4668. * elf32-i386.c (elf_i386_relocate_section): Likewise.
  4669. * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
  4670. * elf32-mips.c (mips_elf_relocate_section): Likewise.
  4671. * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
  4672. * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
  4673. * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
  4674. * syms.c (_bfd_stab_section_find_nearest_line): Add casts to avoid
  4675. warnings.
  4676. Mon Jan 29 14:27:24 1996 Kim Knuttila <krk@cygnus.com>
  4677. * libcoff-in.h: aligned newly exported names with bfd naming
  4678. conventions. Removed an erroneous define of POWERPC_LE_PE.
  4679. * libcoff.h: Rebuild.
  4680. * cofflink.c, coff-ppc.c: the above function name changes
  4681. Mon Jan 29 13:06:28 1996 Ian Lance Taylor <ian@cygnus.com>
  4682. From Basim Kadhim <kadhim@spock.cs.colorado.edu>:
  4683. * ecoff.c (struct extsym_info): Define.
  4684. (_bfd_ecoff_bfd_final_link): Pass a pointer to struct extsym_info
  4685. to ecoff_link_write_external.
  4686. (ecoff_link_write_external): Accept a struct extsym_info pointer.
  4687. Strip symbols when appropriate.
  4688. Based on patches from Ronald F. Guilmette <rfg@monkeys.com>:
  4689. * syms.c (BSF_OBJECT): Define.
  4690. (bfd_print_symbol_vandf): Print 'O' for BSF_OBJECT.
  4691. * bfd-in2.h: Rebuild.
  4692. * elfcode.h (elf_slurp_symbol_table): Set BSF_OBJECT for an
  4693. STT_OBJECT symbol.
  4694. * elf.c (swap_out_syms): Only set type to STT_OBJECT if BSF_OBJECT
  4695. is set.
  4696. * elf32-i386.c (elf_i386_relocate_section): If -Bsymbolic, when
  4697. copying relocs into a shared object, treat a defined global symbol
  4698. as a local symbol.
  4699. * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
  4700. * elf32-mips.c (mips_elf_relocate_section): Likewise.
  4701. * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
  4702. * elflink.h (elf_link_add_object_symbols): Only set weakdef to a
  4703. real defined symbol, not to a weak defined symbol.
  4704. Mon Jan 29 11:34:36 1996 Kim Knuttila <krk@cygnus.com>
  4705. * cofflink.c: removed the POWERPC_LE_PE hack, promoted some types
  4706. and made a few static functions externs.
  4707. * coff-ppc.c (ppc_bfd_coff_final_link): new function, replaces the
  4708. POWERPC_LE_PE hack in cofflink.
  4709. * libcoff-in.h: promoted the following from cofflink.c to allow
  4710. _bfd_coff_final_link to be overridden - STRING_SIZE_SIZE,
  4711. coff_debug_merge_element, struct coff_debug_merge_type,
  4712. coff_debug_merge_hash_entry, coff_debug_merge_hash_table,
  4713. coff_debug_merge_hash_table_init, coff_debug_merge_hash_table_free,
  4714. coff_debug_merge_hash_lookup, coff_link_section_info,
  4715. coff_final_link_info, coff_debug_merge_hash_newfunc,
  4716. coff_write_global_sym, coff_link_input_bfd, coff_reloc_link_order.
  4717. * libcoff.h: re-gen'd
  4718. Fri Jan 26 18:33:35 1996 Ian Lance Taylor <ian@cygnus.com>
  4719. * syms.c: Include "bfdlink.h".
  4720. (struct stab_find_info): Define.
  4721. (_bfd_stab_section_find_nearest_line): New function.
  4722. * libbfd-in.h (_bfd_stab_section_find_nearest_line): Declare.
  4723. * libbfd.h: Rebuild.
  4724. * elf-bfd.h (struct elf_obj_tdata): Add line_info field.
  4725. * elf.c (_bfd_elf_find_nearest_line): Try calling
  4726. _bfd_stab_section_find_nearest_line before searching the ELF
  4727. symbol table. Find the closest STT_FUNC symbol, not the last one.
  4728. * libcoff-in.h (coff_data_type): Add line_info field.
  4729. * libcoff.h: Rebuild.
  4730. * coffgen.c (coff_find_nearest_line): Try calling
  4731. _bfd_stab_section_find_nearest_line before searching the COFF
  4732. symbol table.
  4733. * Makefile.in: Rebuild dependencies.
  4734. Fri Jan 26 16:11:19 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  4735. * elf32-ppc.c (R_PPC_EMB_SDA21 relocations): Make relocation size
  4736. 4 bytes, so we get the correct value when updating the register
  4737. field in little endian mode.
  4738. Thu Jan 25 12:14:16 1996 Ian Lance Taylor <ian@cygnus.com>
  4739. * libcoff-in.h (struct xcoff_tdata): Remove toc_section and
  4740. entry_section fields. Add sntoc and snentry fields.
  4741. * libcoff.h: Rebuild.
  4742. * coffcode.h (coff_mkobject_hook): Initialize sntoc and snentry,
  4743. not toc_section and entry_section (the COFF file does not have any
  4744. sections at this point).
  4745. (coff_write_object_contents): Set o_snentry and o_sntoc from
  4746. snentry and sntoc rather than entry_section and toc_section.
  4747. * coff-rs6000.c (xcoff_copy_private_bfd_data): Copy sntoc and
  4748. snentry, not toc_section and entry_section.
  4749. * xcofflink.c (bfd_xcoff_size_dynamic_sections): Don't set
  4750. entry_section from hentry.
  4751. (xcoff_link_input_bfd): If a defined symbol has XCOFF_ENTRY set,
  4752. set snenty.
  4753. (xcoff_link_input_bfd): Set sntoc, not toc_section.
  4754. (xcoff_write_global_symbol): Get toc_section from sntoc, rather
  4755. than using toc_section directly.
  4756. * archures.c: Add missing `.' in enum bfd_architecture.
  4757. * bfd-in2.h: Rebuild.
  4758. * config.bfd (i[345]86-*-sco*elf*): Use bfd_elf32_i386_vec. From
  4759. Robert Lipe <robertl@arnet.com>.
  4760. Thu Jan 25 12:08:51 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  4761. * elf32-ppc.c (ppc_elf_size_dynamic_sections): Add .rela.sdata{,2}
  4762. to sections we allocate. Use bfd_zalloc to allocate initialial
  4763. sections, not bfd_alloc.
  4764. (ppc_elf_check_relocs): Remove BFD_ASSERTs for !shared from
  4765. SDA{,2}I16 relocations.
  4766. (ppc_elf_add_symbol_hook): Use the value of -G nn to determine
  4767. whether to put something in .sbss or not.
  4768. (ppc_elf_relocate_section): Add support for more relocations. Add
  4769. in sec->output_offset where appropriate. Make error messages
  4770. include the symbol name.
  4771. * elflink.c (_bfd_elf_create_linker_section): Lookup symbol before
  4772. trying to add it to the symbol table, so _GLOBAL_OFFSET_TABLE_
  4773. doesn't get redefined messages if -shared.
  4774. * elflink.h (elf_create_pointer_linker_section) Only bump RELA
  4775. section if the rel_section field has been set up.
  4776. Wed Jan 24 20:40:26 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  4777. * elf32-ppc.c (ppc_elf_relocate_section): Fix typo in eabi
  4778. relocations.
  4779. Wed Jan 24 10:38:34 1996 Doug Evans <dje@charmed.cygnus.com>
  4780. * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Delete checking
  4781. of flags, only flags used are controlled by mach number. Bump up
  4782. output file mach number to highest of input file mach numbers.
  4783. (elf32_sparc_object_p): Watch for EF_SPARC_SUN_US1.
  4784. (elf32_sparc_final_write_processing): Set EF_SPARC_SUN_US1 if v8plusa.
  4785. * config.bfd (sparc64-*-{sysv4*,solaris2*}): Comment out
  4786. bfd_elf64_sparc_vec support.
  4787. Tue Jan 23 14:33:05 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  4788. * elf32-ppc.c (ppc_elf_copy_private_bfd_data): Don't complain if
  4789. the embedded bit is set on some objects and not on others. Just
  4790. or it together.
  4791. (ppc_elf_relocate_section): Implement R_PPC_EMB_{SDA21,RELSDA}
  4792. relocations.
  4793. Tue Jan 23 14:22:45 1996 Ian Lance Taylor <ian@cygnus.com>
  4794. * coffcode.h (coff_new_section_hook): Don't try to align the
  4795. .stabstr section.
  4796. * coffcode.h (coff_set_section_contents): Fix the handling of the
  4797. .lib section to work even if the entire section contents are
  4798. written at once. From Gvran Uddeborg <gvran@uddeborg.pp.se> and
  4799. Robert Lipe <robertl@arnet.com>.
  4800. Mon Jan 22 18:45:51 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  4801. * elflink.h (elf_finish_pointer_linker_section): Don't allocate
  4802. memory here for contents.
  4803. * elf32-ppc.c (ppc_elf_relocate_section): Bump up _SDA_BASE_ and
  4804. _SDA2_BASE_ by 32768.
  4805. (ppc_elf_size_dynamic_sections): #if out PLT code which we haven't
  4806. started using. Allocate contents for .sdata and .sdata2 sections
  4807. also.
  4808. (ppc_elf_check_relocs): Use bfd_get_section_name in debug message,
  4809. rather than _name.
  4810. (ppc_elf_finish_dynamic_symbol): Remove code that attempted to
  4811. size _SDA{,2}_BASE_.
  4812. (ppc_elf_relocate_section): Change how sdata{,2} relocations are
  4813. done.
  4814. Mon Jan 22 08:52:04 1996 Doug Evans <dje@charmed.cygnus.com>
  4815. * elflink.h (elf_finish_pointer_linker_section): Fix typo.
  4816. * archures.c (bfd_mach_sparc_v9): Renamed from bfd_mach_sparc64.
  4817. (bfd_mach_sparc_{v8plus,v8plusa}): Define.
  4818. (bfd_mach_sparc_v9a): Define.
  4819. (bfd_mach_sparc_v9_p): Define.
  4820. * bfd-in2.h: Regenerated.
  4821. * aoutx.h (aout,machine_type): bfd_mach_sparc64 renamed to
  4822. bfd_mach_sparc_v9.
  4823. * elf64-sparc.c (sparc64_elf_object_p): Likewise.
  4824. * config.bfd (sparc64-*-sysv4*,sparc64-*-solaris2*): Set targ_defvec
  4825. to bfd_elf32_sparc_vec.
  4826. * cpu-sparc.c (arch_info_struct): Renamed from sparc_arch_info.
  4827. Add v8plus{,a} support.
  4828. Add v9a support.
  4829. (sparc_compatible): New function.
  4830. * elf32-sparc.h: #include "elf/sparc.h".
  4831. (elf32_sparc_merge_private_bfd_data, elf32_sparc_object_p,
  4832. elf32_sparc_final_write_processing): New functions.
  4833. (bfd_elf32_bfd_merge_private_bfd_data, elf_backend_object_p,
  4834. elf_backend_final_write_processing): Define.
  4835. Mon Jan 22 11:21:51 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  4836. * elf-bfd.h (struct elf_link_hash_entry): Add
  4837. linker_section_pointer field.
  4838. (enum elf_linker_section_enum): Enumeration for new way of
  4839. creating linker dynamic sections and symbols.
  4840. (elf_linker_section{,_pointers}): New structures for creating
  4841. dynamic sections and symbols.
  4842. (elf_obj_tdata): Add linker_section_pointers and linker_section
  4843. fields.
  4844. (elf_local_ptr_offsets,elf_linker_section): New accessor macros.
  4845. (_bfd_elf_create_linker_section): New declarations.
  4846. (_bfd_elf_find_pointer_linker_section): Ditto.
  4847. (bfd_elf{32,64}_{create,finish}_pointer_linker_section): Ditto.
  4848. (_bfd_elf_make_linker_section_rela): Ditto.
  4849. * elf.c (_bfd_elf_link_hash_newfunc): Initialize new fields.
  4850. * elf32-ppc.c (ppc_elf_create_dynamic_sections): Delete.
  4851. (ppc_elf_create_linker_section): New function to create the
  4852. sections .got, .sdata, and .sdata2.
  4853. (ppc_elf_size_dynamic_sections): Zap .rela.{sdata,sdata2} if
  4854. needed.
  4855. (ppc_elf_check_relocs): Support more of the eabi relocations.
  4856. (ppc_elf_relocate_section): Ditto.
  4857. (ppc_elf_finish_dynamic_symbols): Adjust _SDA{,2}_BASE_ by 32768
  4858. if the .sdata{,2} + .sbss{,2} section size is > 32k.
  4859. * elflink.h (elf_create_pointer_linker_section): New function to
  4860. create initialized pointers in dynamic linker sections.
  4861. (elf_finish_pointer_linker_section): Actually intialize the
  4862. pointers created above.
  4863. * elfcode.h (bfd_elf{32,64}_create_pointer_linker_section): New
  4864. macros to provide both 32 and 64 bit versions of
  4865. elf_create_pointer_linker_section.
  4866. (bfd_elf{32,64}_finish_pointer_linker_section): New macros to
  4867. provide both 32 and 64 bit versions of
  4868. elf_finish_pointer_linker_section.
  4869. * elflink.c (_bfd_elf_create_linker_section): New function to
  4870. create a linker section.
  4871. (_bfd_elf_find_pointer_linker_section): Find a unique pointer to a
  4872. given address in the linker pointer offsets created for a given
  4873. symbol.
  4874. (_bfd_elf_make_linker_section_rela): Make a RELA section
  4875. corresponding to the generated linker section.
  4876. Sat Jan 20 08:36:10 1996 Doug Evans <dje@canuck.cygnus.com>
  4877. * elf32-sparc.c (ELF_MACHINE_ALT1): Define.
  4878. Thu Jan 18 18:25:34 1996 Kim Knuttila <krk@cygnus.com>
  4879. * coff-ppc.c (coff_ppc_relocate_section): changed TOCDEFN relocs.
  4880. (coff_ppc_relocate_section): Handle special values for gcc built dlls.
  4881. (dump_toc): fix diagnosing code to identify out-of-toc-bounds entries.
  4882. Also begin the toc at 4 as an eye catcher ('31313131' marks the first
  4883. toc entry in an objdump) for now.
  4884. (ppc_do_last, ppc_get_last): New function - needed to save processing
  4885. the toc owner to the end.
  4886. (ppc_coff_swap_sym_in_hook): Removed an incorrect hack for doing the
  4887. toc owner last.
  4888. * cofflink.c (_bfd_coff_final_link): Added a new hack to keep the
  4889. toc owner from being done till last. Must define POWERPC_LE_PC
  4890. to enable it.
  4891. * coffcode.h (coff_set_alignment_hook): alignment setting for .stab
  4892. * peicode.h (coff_swap_scnhdr_out): set section flags for stab/str
  4893. to INFO.
  4894. (coff_swap_aouthdr_out): Removed a non-working hack for computing the
  4895. SizeOfImage for PowerPC. Ignore the size of the .junk section.
  4896. Thu Jan 18 17:42:12 1996 Ian Lance Taylor <ian@cygnus.com>
  4897. * elfcore.h: Include <signal.h> before <sys/procfs.h>.
  4898. Wed Jan 17 12:40:14 1996 Ian Lance Taylor <ian@cygnus.com>
  4899. * cpu-powerpc.c (arch_info_struct): Change last entry to not point
  4900. back to first.
  4901. (bfd_powerpc_arch): Point at first entry in arch_info_struct.
  4902. Tue Jan 16 15:10:49 1996 Ian Lance Taylor <ian@cygnus.com>
  4903. * elf.c (assign_file_positions_for_segments): Don't increment file
  4904. offset for a segment which contains no loadable sections.
  4905. Mon Jan 15 17:46:27 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  4906. * reloc.c: Add new PowerPC relocations.
  4907. * {bfd-in2,libbfd}.h: Regenerate.
  4908. * elf32-ppc.c (ppc_elf_howto_raw): Add more PPC relocations.
  4909. (ppc_elf_reloc_type_lookup): Lookup new relocations.
  4910. Mon Jan 15 14:29:44 1996 Ian Lance Taylor <ian@cygnus.com>
  4911. * aoutx.h (howto_table_ext): Fix RELOC_BASE10 and RELOC_BASE22
  4912. entries.
  4913. * sunos.c (sunos_scan_ext_relocs): Don't fail assert if
  4914. info->shared.
  4915. * coffgen.c (coff_find_nearest_line): Don't try to cache
  4916. information in sections that are not owned by a BFD. From Richard
  4917. Henderson <richard@atheist.tamu.edu>.
  4918. * elf32-mips.c: Numerous changes to dynamic linking code, mostly
  4919. from Kazumoto Kojima <kkojima@info.kanagawa-u.ac.jp>.
  4920. * elflink.h (elf_link_output_extsym): Remove special check for
  4921. _rld_new_interface.
  4922. * ecoffswap.h: Add prototypes for static functions.
  4923. Sun Jan 14 21:36:08 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  4924. * elf32-ppc.c (ppc_elf_{unsupported,std}_reloc): Remove functions.
  4925. (ppc_elf_howto_raw): Remove ppc_elf_{unsupported,std}_reloc
  4926. references.
  4927. (ppc_elf_relocate_section): No longer allow .sdata/.sbss sections
  4928. to satisfy a TOC16 relocation. Rewrite unsupported relocation
  4929. support. Begin support for R_PPC_SDA{2,}REL.
  4930. Sat Jan 13 09:36:52 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  4931. * elf32-ppc.c (ppc_elf_create_dynamic_sections): New function to
  4932. create the .got and .got.neg sections.
  4933. (ppc_elf_size_dynamic_sections): Call it.
  4934. (ppc_elf_check_relocs): Call it.
  4935. (ppc_elf_size_dynamic_sections): Support .got.neg, just like .got.
  4936. (ppc_elf_check_relocs): Add error messages for relocations we
  4937. don't yet support. Do not include R_PPC_SDAREL16 like a GOT
  4938. relocation.
  4939. Fri Jan 12 15:27:59 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  4940. * elf32-ppc.c (ppc_elf_fake_sections): Define, and handle the new
  4941. section flags for V.4 and eabi.
  4942. Fri Jan 12 13:59:16 1996 Ian Lance Taylor <ian@cygnus.com>
  4943. * elf.c (assign_file_positions_for_segments): If a segment
  4944. contains no sections, don't mark it as readable.
  4945. * elf-bfd.h (_bfd_elf_section_from_bfd_section): Declare.
  4946. * elfcode.h (_bfd_elf_section_from_bfd_section): Don't declare.
  4947. * elf.c (_bfd_elf_print_private_bfd_data): Dump contents of
  4948. dynamic section, if there is one.
  4949. * elf-bfd.h (struct elf_size_info): Add swap_dyn_in field.
  4950. (bfd_elf32_swap_dyn_in): Change type of second parameter to PTR.
  4951. (bfd_elf64_swap_dyn_in): Likewise.
  4952. * elfcode.h (elf_swap_dyn_in): Change type of second parameter to
  4953. PTR.
  4954. (NAME(_bfd_elf,size_info)): Initialize swap_dyn_in field.
  4955. * elf32-i386.c (elf_i386_size_dynamic_sections): Don't create a
  4956. DT_TEXTREL entry because of .rel.plt. From Martin Pirker
  4957. <pirker@eiunix.tuwien.ac.at>.
  4958. Thu Jan 11 17:06:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  4959. * section.c (SEC_{EXCLUDE,SORT_ENTRIES}): New section flags for
  4960. PowerPC V.4 and eabi.
  4961. * bfd-in2.h: Regenerate.
  4962. * libfd.h: Regenerate.
  4963. * elfxx-target.h (TARGET_{BIG,LITTLE}_SYM): Add new flags.
  4964. * elf32-ppc.c (ppc_elf_section_from_shdr): Support SHT_ORDERED
  4965. section type and SHF_EXCLUDE section flag, turning them into the
  4966. appropriate bfd section flag.
  4967. Thu Jan 11 11:23:30 1996 Ian Lance Taylor <ian@cygnus.com>
  4968. * xcofflink.c (xcoff_link_add_symbols): Create the special
  4969. sections if we see a DYNAMIC object, in case that is the only
  4970. XCOFF input object we see.
  4971. * elf32-mips.c: Extensive changes for a start at dynamic linking
  4972. support, from Kazumoto Kojima <kkojima@info.kanagawa-u.ac.jp>.
  4973. * elf-bfd.h (struct elf_backend_data): Add type_change_ok field.
  4974. (struct elf_backend_data): Remove
  4975. elf_backend_create_program_headers field. Add
  4976. elf_backend_additional_program_headers and
  4977. elf_backend_modify_segment_map fields.
  4978. * elfxx-target.h (elf_backend_type_change_ok): Define if not
  4979. defined.
  4980. (elf_backend_additional_program_headers): Likewise.
  4981. (elf_backend_modify_segment_map): Likewise.
  4982. (elf_backend_create_program_headers): Don't define.
  4983. (elfNN_bed): Change to account for field changes.
  4984. * elf.c (assign_file_positions_for_segments): Call new
  4985. modify_segment_map backend function. Don't call old
  4986. create_program_headers backend function.
  4987. (get_program_header_size): Call additional_program_headers rather
  4988. than create_program_headers.
  4989. * elflink.h (elf_link_add_object_symbols): Initialize
  4990. type_change_ok from new backend field.
  4991. (elf_link_output_extsym): Don't warn if _rld_new_interface is
  4992. defined.
  4993. (elf_reloc_link_order): Treat a reloc against a defined symbol as
  4994. a reloc against the appropriate section.
  4995. * elf-bfd.h (struct bfd_elf_section_data): Add tdata field.
  4996. (struct elf_obj_tdata): Rename ppc_flags_init field to flags_init.
  4997. (elf_flags_init): Rename from elf_ppc_flags_init.
  4998. * elf32-ppc.c (ppc_elf_set_private_flags): Use elf_flags_init, not
  4999. elf_ppc_flags_init.
  5000. (ppc_elf_copy_private_bfd_data): Likewise.
  5001. (ppc_elf_merge_private_bfd_data): Likewise.
  5002. * elf32-m68k.c (howto_table): Change src_mask to 0 for all
  5003. relocation entries.
  5004. Tue Jan 9 15:22:53 1996 David Mosberger-Tang <davidm@azstarnet.com>
  5005. * coff-alpha.c (alpha_relocate_section): During final link, allow
  5006. output .lita section to be bigger than 64k by adjusting gp value
  5007. on a per-input section basis.
  5008. * libecoff.h (struct ecoff_tdata): Add issued_multiple_gp_warning
  5009. field.
  5010. (struct ecoff_section_tdata): Add gp field.
  5011. Tue Jan 9 12:00:36 1996 Ian Lance Taylor <ian@cygnus.com>
  5012. Handle Alpha ECOFF changes in OSF/1 3.2.
  5013. * libecoff.h (struct ecoff_backend_data): Add get_elt_at_filepos
  5014. field.
  5015. * coff-alpha.c: Include "aout/ar.h".
  5016. (alpha_ecoff_get_relocated_section_contents): Don't require an
  5017. ALPHA_R_IGNORE reloc after an ALPHA_R_GPDISP reloc, since OSF/1
  5018. 3.2 doesn't generate one.
  5019. (alpha_relocate_section): Likewise.
  5020. (alpha_ecoff_slurp_armap): Define.
  5021. (alpha_ecoff_slurp_extended_name_table): Define.
  5022. (alpha_ecoff_construct_extended_name_table): Define.
  5023. (alpha_ecoff_truncate_arname): Define.
  5024. (alpha_ecoff_write_armap): Define.
  5025. (alpha_ecoff_generic_stat_arch_elt): Define.
  5026. (alpha_ecoff_update_armap_timestamp): Define.
  5027. (ARFZMAG): Define.
  5028. (alpha_ecoff_read_ar_hdr): New static function.
  5029. (alpha_ecoff_get_elt_at_filepos): New static function.
  5030. (alpha_ecoff_openr_next_archived_file): New static function.
  5031. (alpha_ecoff_get_elt_at_index): New static function.
  5032. (alpha_ecoff_backend_data): Initialize get_elt_at_filepos field.
  5033. (ecoffalpha_little_vec): Change BFD_JUMP_TABLE_ARCHIVE from
  5034. _bfd_ecoff to alpha_ecoff.
  5035. * ecoff.c (ecoff_link_add_archive_symbols): Use get_elt_at_filepos
  5036. field from backend structure, rather than always calling
  5037. _bfd_get_elt_at_filepos.
  5038. * coff-mips.c (mips_ecoff_backend_data): Initialize
  5039. get_elt_at_filepos field.
  5040. * archive.c (_bfd_generic_read_ar_hdr_mag): New function, copied
  5041. from _bfd_generic_read_ar_hdr with minor changes.
  5042. (_bfd_generic_read_ar_hdr): Use _bfd_generic_read_ar_hdr_mag.
  5043. * libbfd-in.h (_bfd_generic_read_ar_hdr_mag): Declare.
  5044. * libbfd.h: Rebuild.
  5045. * bfd-in.h (BFD_IN_MEMORY): Define.
  5046. * libbfd-in.h (struct bfd_in_memory): Define.
  5047. * libbfd.c (bfd_read): Handle BFD_IN_MEMORY flag.
  5048. (bfd_get_file_window): Don't try to map a BFD_IN_MEMORY file.
  5049. (bfd_write, bfd_stat): Abort if BFD_IN_MEMORY is set.
  5050. (bfd_tell, bfd_flush, bfd_seek): Handle BFD_IN_MEMORY flag.
  5051. * bfd.c (struct _bfd): Change iostream field from char * to PTR.
  5052. (bfd_get_size): Handle BFD_IN_MEMORY flag.
  5053. * cache.c (bfd_cache_close): Ignore BFD_IN_MEMORY files.
  5054. (bfd_open_file): Cast to PTR, not char *, when setting iostream.
  5055. (bfd_cache_lookup_worker): Abort if BFD_IN_MEMORY is set.
  5056. * opncls.c (bfd_fdopenr): Cast to PTR, not char *, when setting
  5057. iostream.
  5058. (bfd_openstreamr): Likewise.
  5059. * aoutx.h (NAME(aout,some_aout_object_p)): Only fstat iostream if
  5060. BFD_IN_MEMORY is not set.
  5061. * riscix.c (riscix_some_aout_object_p): Likewise.
  5062. * bfd-in2.h, libbfd.h: Rebuild.
  5063. * targets.c (bfd_target): Add _bfd_get_elt_at_index field.
  5064. (BFD_JUMP_TABLE_ARCHIVE): Add _get_elt_at_index.
  5065. (bfd_get_elt_at_index): Define.
  5066. * archive.c (_bfd_generic_get_elt_at_index): Rename from
  5067. bfd_get_elt_at_index. Change index parameter from int to
  5068. symindex.
  5069. * libbfd-in.h (_bfd_generic_get_elt_at_index): Declare.
  5070. (_bfd_noarchive_get_elt_at_index): Define.
  5071. (_bfd_archive_bsd_get_elt_at_index): Define.
  5072. (_bfd_archive_coff_get_elt_at_index): Define.
  5073. * bfd-in2.h, libbfd.h: Rebuild.
  5074. * aout-target.h (MY_get_elt_at_index): Define if not defined.
  5075. * coff-rs6000.c (xcoff_get_elt_at_index): Define.
  5076. * ieee.c (ieee_get_elt_at_index): Define.
  5077. * libecoff.h (_bfd_ecoff_get_elt_at_index): Define.
  5078. * oasys.c (oasys_get_elt_at_index): Define.
  5079. * som.c (som_get_elt_at_index): Define.
  5080. * ecoff.c (_bfd_ecoff_find_nearest_line): Don't restrict line
  5081. numbers to the .text section.
  5082. Mon Jan 8 17:00:57 1996 Ian Lance Taylor <ian@cygnus.com>
  5083. * ieee.c (ieee_write_debug_part): Change return type to boolean.
  5084. If there is a SEC_DEBUGGING section, get the contents of the debug
  5085. information part from it.
  5086. (ieee_set_section_contents): Store the contents of a SEC_DEBUGGING
  5087. section in memory.
  5088. (ieee_write_object_contents): Check ieee_write_debug_part return.
  5089. Thu Jan 4 17:12:37 1996 Fred Fish <fnf@cygnus.com>
  5090. * config.bfd (i[345]86-*-freebsd*): Add target.
  5091. * configure.in (i386freebsd_vec): Add vec.
  5092. * configure: Regenerate.
  5093. * Makefile.in (BFD32_BACKENDS): Add i386freebsd.o.
  5094. (BFD32_BACKENDS_CFILES): Add i386freebsd.c.
  5095. Rebuild dependencies..
  5096. * freebsd.h: New file.
  5097. * i386freebsd.c: New file.
  5098. * targets.c (i386freebsd_vec): Declare.
  5099. (bfd_target_vector): Add i386freebsd_vec.
  5100. * i386linux.c (SEGMENT_SIZE): Define as TARGET_PAGE_SIZE
  5101. * i386netbsd.c (SEGMENT_SIZE): Define as TARGET_PAGE_SIZE
  5102. Thu Jan 4 16:27:46 1996 Ian Lance Taylor <ian@cygnus.com>
  5103. * ieee.c (ieee_slurp_debug): New static function.
  5104. (ieee_object_p): Call it.
  5105. (ieee_slurp_section_data): Skip debugging sections.
  5106. (ieee_get_reloc_upper_bound): Likewise.
  5107. (ieee_get_section_contents): Likewise.
  5108. (ieee_canonicalize_reloc): Likewise.
  5109. (ieee_write_section_part): Likewise.
  5110. (ieee_write_debug_part): Likewise.
  5111. (ieee_write_data_part): Likewise.
  5112. (init_for_output): Likewise.
  5113. Wed Jan 3 19:42:47 1996 Michael Meissner <meissner@wogglebug.tiac.net>
  5114. * elf32-ppc.c (ppc_elf_relocate_section): Make @GOT relocations
  5115. work.
  5116. (ppc_elf_howto_raw): Just use bfd_elf_generic_reloc for all howto
  5117. relocs, since ppc_elf_relocate_section handles the linker case.
  5118. (ppc_elf_{addr16_ha,got16,toc16,brtaken}_reloc): Delete, no longer
  5119. used.
  5120. (ppc_elf_{addr16_ha,got16,toc16,brtaken}_inner): Merge these into
  5121. ppc_elf_relocate_section since that is now the only caller.
  5122. (ppc_elf_relocate_section): Ditto.
  5123. Wed Jan 3 15:11:30 1996 Ian Lance Taylor <ian@cygnus.com>
  5124. * coffcode.h (coff_write_object_contents): If we don't know the
  5125. section of the entry point for an XCOFF executable, always set the
  5126. entry address to -1.
  5127. Tue Jan 2 14:17:15 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  5128. * elf.c (bfd_section_from_shdr): Add support for note sections.
  5129. Tue Jan 2 13:10:25 1996 Ian Lance Taylor <ian@cygnus.com>
  5130. * bfd-in.h (struct _symbol_info): Add stab_type field.
  5131. * bfd-in2.h: Rebuild.
  5132. * aoutx.h (NAME(aout,get_symbol_info)): Set stab_type.
  5133. * elf32-ppc.c: Remove trailing newline from calls to
  5134. _bfd_error_handler.
  5135. (ppc_elf_merge_private_bfd_data): Only warn about endianness
  5136. difference if target endianness is known.
  5137. For older changes see ChangeLog-9495
  5138. Copyright (C) 1996-1997 Free Software Foundation, Inc.
  5139. Copying and distribution of this file, with or without modification,
  5140. are permitted in any medium without royalty provided the copyright
  5141. notice and this notice are preserved.
  5142. Local Variables:
  5143. mode: change-log
  5144. left-margin: 8
  5145. fill-column: 74
  5146. version-control: never
  5147. End: